LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-29-2011, 08:36 AM   #1
nnjond
Member
 
Registered: Feb 2007
Distribution: Ubuntu 10.04
Posts: 281

Rep: Reputation: 31
Change HD 'Label'


Hi,

I have to additional HDs which are mounted at

/media/xx...a

and

/media/xx...b

Can you tell me how I might shorten their 'names' ?

Thanks
 
Old 07-29-2011, 08:39 AM   #2
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Use gparted to edit the labels on the partitions.
 
Old 07-29-2011, 08:41 AM   #3
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
If they're ext2/3/4 you can unmount them and use 'e2label /dev/sdX <new_label>', if they're fat32 you can use dosfslabel and if they're ntfs you can use ntfslabel.

cheers
 
Old 07-29-2011, 09:00 AM   #4
nnjond
Member
 
Registered: Feb 2007
Distribution: Ubuntu 10.04
Posts: 281

Original Poster
Rep: Reputation: 31
Thanks for your help. I see now It's the UUID I want to shorten. Do you offer the same advice?
 
Old 07-29-2011, 09:19 AM   #5
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Check the contents of /etc/fstab to see if the mount points are hard-coded in there. If so, modify the mount points of your partitions (the /media/xx...a and /media/xx...b columns) in /etc/fstab. You will need to create the directories yourself otherwise the mount will fail (if you're using the command line program "mount"). I don't know whether GUI tools (e.g. nautilus and dolphin) honour the contents of /etc/fstab when mounting drives.

Make a backup of /etc/fstab (cp /etc/fstab $HOME/fstab.bak) BEFORE you make any changes to fstab so if you break something, you can easily fix it.
 
Old 07-30-2011, 12:49 AM   #6
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
When drives are auto-mounted and have no label, the auto-generated mount point will be /media/<UUID>. If a disk is labelled then that is used as the mount point - /media/<label>

hth
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change the font color of a label Jcooper Programming 0 08-30-2006 06:46 PM
change partition label w/o format gjo Linux - General 5 06-28-2005 12:50 PM
How to change the label of a disk dtournas Red Hat 0 08-17-2004 08:02 AM
Change disk label sizes? hypodermic *BSD 5 03-12-2004 06:44 PM
I don't like the LILO label - How to change it? vijayaramanl Linux - Newbie 5 10-22-2003 06:00 PM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration