Renaming a mount point

email.listen at googlemail.com email.listen at googlemail.com
Sun Mar 25 06:21:37 UTC 2007


On Sun, 25. March 2007 03:45:28 Matthew Flaschen wrote:
> Chris wrote:
> > Matthew Flaschen wrote:
> >> Chris wrote:
> >>> Question -
> >>>
> >>> 	Now that I added a new drive, mounted as /mp3 - what if I wish to
> >>> rename the mount point to something like /music (being that no mp3
> >>> really live there - nothing but oggs really).
> >>
> >> Cool.
> >>
> >>> 	How do I go about that without loosing data?
> >>
> >> 1. sudo mkdir /music
> >> 2. sudo umount /mp3
> >> 3. sudoedit /etc/fstab
> >>
> >> Replace mp3 with music
> >> 4. sudo mount /music
> >>
> >> Now, this may confuse up your music library metadata (e.g. ratings), but
> >> you won't lose anything on the drive.
> >>
> >> For more information, try man mount, man umount, man fstab .
> >>
> >> Matt Flaschen
> >
> > Ahh - once again Matt - you have come through! Thanks mate. You have no
> > idea how much hep you have been to me - thank you!
>
> Sure.  I forgot.  You probably want to remove /mp3 :
>
> sudo rmdir /mp3
>
> The above procedure would have left it as an empty directory (mountpoint).
And to avoid confusing music library metadata it might be an idea to create a 
link from /mp3 to /musik

sudo ln -s /musik /mp3

regards,
thomas





More information about the ubuntu-users mailing list