LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Howto change disk volume name? (https://www.linuxquestions.org/questions/linux-general-1/howto-change-disk-volume-name-548382/)

Quakeboy02 04-23-2007 04:15 PM

Howto change disk volume name?
 
This is a "nuisance level" issue. When using the gnome file browser and I go into a directory that is a mount, the file browser shows the volume name of that mount. I don't want to know that the system considers the mount to be "183.4 GB Volume". I want the system to know that "I" consider it to be "/data". Any way I can accomplish this?

Junior Hacker 04-23-2007 06:34 PM

I've re-named such items by just moving, for instance: 'mv /mnt/1843.4GB Volume /mnt/data. Then change this part in fstab also, the device will still be the same. Or mv /mnt/1843.4GB Volume /data if you don't want it under /mnt.

Quakeboy02 04-24-2007 07:30 PM

Hi Junior Hacker,
I didn't see your response till now for some reason. I don't quite understand what you're saying. I have the drive mounted as "/data". There is nothing in "/mnt". It's not a removable media device, and I have the following in /etc/fstab.
Code:

/dev/sdb1      /data          ext3    defaults        0      2

ramram29 04-24-2007 07:34 PM

You can change the partition label with the command mklabel

Quakeboy02 04-24-2007 07:38 PM

Quote:

Originally Posted by ramram29
You can change the partition label with the command mklabel

If you're talking about this bit in parted. Then this doesn't address the issue at all.
Quote:

mklabel label-type
Creates a new disklabel (partition table) of label-type. label-type should be one of "bsd", "gpt", "loop", "mac", "mips", "msdos", "pc98" or "sun".

rickh 04-24-2007 07:57 PM

tune2fs -L is what you want.

Quakeboy02 04-24-2007 09:09 PM

Quote:

Originally Posted by rickh
tune2fs -L is what you want.

Yes! I had to reboot to see it, but that did it!

thanks!

Quakeboy02 04-27-2007 12:34 PM

Aaaaargh! Rick, I've started having disk stability problems after I ran this. I'm also having problems with an xfs drive that I ran xfs_admin -L on.

mcrbids 06-13-2008 03:00 PM

Quote:

Originally Posted by rickh (Post 2724119)
tune2fs -L is what you want.

tune2fs is designed for ext2/ext3 filesystems, and didn't work on my USB flash drive using DOS f/s. Even dosfslabel didn't give me what I wanted. I ended up reformatting it mkfs.msdos -n MYNAME /dev/sdb1 and now it automounts with the right partition name.


All times are GMT -5. The time now is 07:50 PM.