[SWLUG] Renaming a device in Ubuntu
Mark Summerfield
mark at qtrac.eu
Tue Mar 1 17:37:40 UTC 2011
On Tue, 01 Mar 2011 16:45:37 +0000
Jonathan Wright <jonathan at netwrker.co.uk> wrote:
> On Tue, 1 Mar 2011 14:11:59 +0000, Mark Summerfield wrote:
> > $ df -h
> > dev/sdb1 230G 49G 181G 22% /media/2010_BLACK_
> >
> > $ e2label /dev/sdb1
> > 2010_BLACK
> >
> > It used to be called /media/2010_BLACK but there was an accident and
> > ever since Ubuntu now uses this new name with the underscore at the
> > end.
> >
> > Is is possible to force Ubuntu to use the original name again?
>
> What's
>
> ls -ld /media/*
>
> The mount points under /media are normally automatically created and
> destroyed, but if it still exists (for example after a crash or
> forced power cycle) then it will will need to rename it (and the
> first rename is to add _ to the end).
>
> If /media/2010_BLACK exists when there is no drive plugged in, run
>
> sudo rmdir /media/2010_BLACK
>
> to get rid of it.
Actually it had somehow managed to create a whole tree under there but
rm -rf did the trick.
Thanks!
--
Mark Summerfield, Qtrac Ltd, www.qtrac.eu
C++, Python, Qt, PyQt - training and consultancy
"Programming in Go" - http://www.qtrac.eu/gobook.html
More information about the Swlug
mailing list