Renaming a mount point

Matthew Flaschen matthew.flaschen at gatech.edu
Sun Mar 25 01:45:28 UTC 2007


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).

Matthew Flaschen




More information about the ubuntu-users mailing list