LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Changing Partition Label on Ext3 (https://www.linuxquestions.org/questions/linux-general-1/changing-partition-label-on-ext3-634735/)

carlosinfl 04-11-2008 01:58 PM

Changing Partition Label on Ext3
 
OK - I have an external USB drive that is mounted on my system as ext3.

/dev/sdc1 which mounts as /media/MUSIC on my Debian system.

Now I am attempting to rename the label from MUSIC to stuff using the e2label command and for some reason I am doing something wrong. First off in order for this to work can I have the file system mounted or should I unmount the system before I make changes?

Would this command be correct?

Code:

tunafish:/home/carlos# e2label /dev/sdc1 stuff
e2label: Bad magic number in super-block while trying to open /dev/sdc1
Couldn't find valid filesystem superblock.

I tried this command with the device mounted and umounted and neither seem to work...

jay73 04-11-2008 03:10 PM

That should work although e2label seems to work primarily with ext2. Have you tried tune2fs -L label device?

carlosinfl 04-11-2008 05:33 PM

Oops - its FAT32. Will this still work?

jay73 04-11-2008 05:38 PM

That won't work. Try mlabel.

carlosinfl 04-12-2008 01:28 AM

mlabel has possibly the worst man page known to man (no pun intended)

jay73 04-12-2008 03:18 AM

mlabel -c drive:label ?


All times are GMT -5. The time now is 06:09 AM.