LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-23-2007, 04:15 PM   #1
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
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?
 
Old 04-23-2007, 06:34 PM   #2
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
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.

Last edited by Junior Hacker; 04-23-2007 at 06:36 PM.
 
Old 04-24-2007, 07:30 PM   #3
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Original Poster
Rep: Reputation: 121Reputation: 121
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
 
Old 04-24-2007, 07:34 PM   #4
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
You can change the partition label with the command mklabel
 
Old 04-24-2007, 07:38 PM   #5
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Original Poster
Rep: Reputation: 121Reputation: 121
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".
 
Old 04-24-2007, 07:57 PM   #6
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 60
tune2fs -L is what you want.
 
Old 04-24-2007, 09:09 PM   #7
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Original Poster
Rep: Reputation: 121Reputation: 121
Quote:
Originally Posted by rickh
tune2fs -L is what you want.
Yes! I had to reboot to see it, but that did it!

thanks!
 
Old 04-27-2007, 12:34 PM   #8
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Original Poster
Rep: Reputation: 121Reputation: 121
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.
 
Old 06-13-2008, 03:00 PM   #9
mcrbids
LQ Newbie
 
Registered: Jan 2006
Posts: 9

Rep: Reputation: 0
Quote:
Originally Posted by rickh View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyboard volume knob configuration-cannot change volume. Ariox Ubuntu 1 03-22-2007 02:06 PM
change volume using console welery Linux - Software 5 02-05-2005 05:37 PM
Can't change volume levels corbis_demon Linux - Newbie 0 10-11-2004 02:34 AM
Only Root can change volume dushkinup Linux - Software 2 04-21-2004 10:46 AM
how do i change system volume? ShawnD Linux - General 3 09-01-2002 12:24 AM


All times are GMT -5. The time now is 01:32 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration