LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 10-31-2007, 05:45 PM   #1
Zombie13
Member
 
Registered: Nov 2003
Posts: 70

Rep: Reputation: 15
Quick question about relabelling partitions...


Very simple. I just want to relabel my partitions as / instead of /1, /usr instead of /usr1 etc. I'm guessing this is an easy thing to do, but being as this is my main PC, I'd like to have as little downtime as possible - so thought I'd ask before playing...

Code:
LABEL=/1                /                       ext3    defaults        1 1
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
LABEL=/home1            /home                   ext3    defaults        1 2
proc                    /proc                   proc    defaults        0 0
sysfs                   /sys                    sysfs   defaults        0 0
LABEL=/usr1             /usr                    ext3    defaults        1 2
LABEL=/var1             /var                    ext3    defaults        1 2
LABEL=SWAP              swap                    swap    defaults        0 0
/dev/hda1               /mnt/winxp              ntfs-3g rw,defaults,umask=0000  0 0
/dev/hda7               /mnt/data               vfat    rw,defaults,umask=0000  0 0
/dev/hdd2               /mnt/media              vfat    rw,defaults,umask=0000  0 0
Cheers!
 
Old 10-31-2007, 06:04 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
just use the e2label program to change it to whatever you want. note that there is no need to use labels at all, they just make things a little prettier. so "e2label /dev/hda5 /usr" and then update fstab to reflect that.
 
Old 11-01-2007, 09:01 AM   #3
Zombie13
Member
 
Registered: Nov 2003
Posts: 70

Original Poster
Rep: Reputation: 15
Brilliant, many thanks!
 
  


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
Question on creating more partitions than default ones, i.e. /home,/root partitions casmac SUSE / openSUSE 1 12-20-2006 06:02 PM
In need of quick reminder for duplicating partitions wakeboarder3780 Slackware 1 09-23-2006 09:12 PM
help i am stupid and quick on deleting partitions :=) sibirski glodavac Linux - Software 5 06-28-2006 07:57 AM
Quick Question on Partitions Rawr101 Linux - Newbie 1 09-17-2004 09:45 PM
Relabelling drive letters? Jiblet Linux - Newbie 18 08-03-2004 12:02 AM


All times are GMT -5. The time now is 12:59 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