rename a disk label

Asked by Wladston Viana

I would like to rename of my partions, who gets the "music" name to another name.

When I right-click on it, there is a rename option, but it's grayed out.

What do I have to do to rename the partition ?

And why is the option grayed out ?

Thanks !

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Alan Pope 🍺🐧🐱 πŸ¦„
Solved:
Last query:
Last reply:
Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) said :
#1

The following guide explains how to re-label a partition:-

https://help.ubuntu.com/community/RenameUSBDrive

Revision history for this message
Wladston Viana (wladston) said :
#2

Wow!

Alan, thanks for the help! But, Is it really THAT hard to make a simple action such as renaming s disk label ??

Ubuntu should focus on usability in this case, imo!

Why doesn't the "rename" button work ? Maybe I should fire a bug in here against nautilus?!

Revision history for this message
Wladston Viana (wladston) said :
#3

Also - tried to follow this method, and it didn't work for me!

Maybe that's not precisely what may work with me
it mounts on : /dev/sdb5 on /media/music type vfat (rw,utf8,umask=007,gid=46)

Maybe this is why it gets the music name ...

I just want to rename the folders/names from music to media (as now I'm also placing videos on the folder).

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) said :
#4

How exactly are you trying to change the name?

You open nautilus, then navigate where, and click on what?

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) said :
#5

Can you please explain what you did and what didn't work when you tried it? It's almost impossible to suggest what you should do next without knowing what you did and what happened.

The name "music" is the volume label on the device, and that is what's used as the mount point "/media/music". if you change the volume label as per the instructions to "media", it will in the future be mounted as /media/media

Revision history for this message
Wladston Viana (wladston) said :
#6

On the top menu, hit my drave, named "music" (this opens nautilus). On the left side, there is a "places" column . On it, there is an icon for the "music" partition. If you right click this icon, it shows the options "Remove" and "Rename" grayed out. I suppose those should be clicable and operational.

now explaining why the method did't work :

1) enter mount :

/dev/sdb5 on /media/music type vfat (rw,utf8,umask=007,gid=46)

2) enter sudo mlabel -i /dev/sdb5 -s ::

Total number of sectors not a multiple of sectors per track!
Add mtools_skip_check=1 to your .mtoolsrc file to skip this test

3) wladston@wlad-desktop:~$ sudo mlabel -i /dev/sdb5 ::media
Total number of sectors not a multiple of sectors per track!
Add mtools_skip_check=1 to your .mtoolsrc file to skip this test

4) wladston@wlad-desktop:~$ sudo mlabel -i /dev/sdb5 -s ::
Total number of sectors not a multiple of sectors per track!
Add mtools_skip_check=1 to your .mtoolsrc file to skip this test

When I reboot, the partition is still detected and mounted as music.

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) said :
#7

You need to do what it says.

"Add mtools_skip_check=1 to your .mtoolsrc file to skip this test"

Open the text editor in Applications --> Accessories, and use the file menu to open a file in your home directory called .mtoolsrc, if it doesn't exist, create it and paste this line in as instructed:-

mtools_skip_check=1

Then try again and report back.

Revision history for this message
Wladston Viana (wladston) said :
#8

Done that, now it works!

Bue there is a problem - the name gets written ALL CAPS... is there a way to make it low-cap ? I hate all caps....

And the rename function on nautilus still doesn't work ....

And the partition is still being mounted at /media/music ...

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) said :
#9

I dont think you can make it lower case, no.

The rename issue is a known bug in nautilus, bug 41011.

Is the partition listed in /etc/fstab?
Is it a removable USB disk?

Have you tried unmounting it, unplugging then plugging it back in?

Revision history for this message
Wladston Viana (wladston) said :
#10

oh - thanks!

it is listed there : # /dev/sda5
UUID=4508-8BC9 /media/music vfat defaults,utf8,umask=007,gid=46 0 1

It's a FAT32 partition from my second hard drive.

Revision history for this message
Best Alan Pope 🍺🐧🐱 πŸ¦„ (popey) said :
#11

Interesting. Usually removable devices are under /media, fixed disks are under /mnt.

You can edit that file and just change the word "music" to whatever you want.

sudo gedit /etc/fstab

Change it then save. Then:-

sudo umount /dev/sdb5
(I assume you mean sdb5 not sda5? you made a minor typo)
sudo mount -a

Should re-mount it under the new name.

be careful editing fstab :)

Revision history for this message
Wladston Viana (wladston) said :
#12

Thanks Alan Pope, that solved my question.

Revision history for this message
Wladston Viana (wladston) said :
#13

The device is mounted on media probably because it's a sata drive, and linux seems to treat them like pen drives...

let's hope now they manage to get the bug fixed soon ;)

Revision history for this message
Ampers (ampers) said :
#14

Amen to "let's hope now they manage to get the bug fixed soon ;)"

I have three 500gb SATAY drives and a total of 7 partitions which I would really like to rename.

In MSwindows, I click and type. Now that a 69 year old can handle.

But the above? I wouldn't even know where to begin. So I have to refer to a sheet of paper every time I want to save music, photographs and a host of other items. This takes me back to pre computer days when I had a sheet of paper telling me what all the pigeon hole boxes should contain.

Whoever designed this was a sandwich short of a picnic.

Revision history for this message
Ampers (ampers) said :
#15

Have just discovered this

http://linux.about.com/library/cmd/blcmdl8_e2label.htm

I did a "man" command on this in Ubuntu and the command is there.

This really seems simple but before trying it out I would like advice from others.

As it seems so simple, I, being the cynic that I am, am worried that it might be a dangerous command to use, otherwise why has it not cropped up here?

Ampers.

Revision history for this message
Ampers (ampers) said :
#16

PS to the above:

I know it says ex2, but it is also for ex3, here is what the Ubuntu manual says about it:

(my user details)~$ man -k e2label
e2label (8) - Change the label on an ext2/ext3 filesystem

Revision history for this message
marpallysrikanth (marpallysrikanth) said :
#17

i want to rename my partions, all partions are of same name. When I right-click on it, there is a rename option, but it's grayed out.

What do I have to do to rename the partition ?When I right-click on it, there is a rename option, but it's grayed out.

What do I have to do to rename the partition ? i want to install java, java is vin synaptic package manager.how to install it ,so that should run java programs in it.