LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Quick question about relabelling partitions... (https://www.linuxquestions.org/questions/linux-newbie-8/quick-question-about-relabelling-partitions-596175/)

Zombie13 10-31-2007 04:45 PM

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!

acid_kewpie 10-31-2007 05:04 PM

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.

Zombie13 11-01-2007 08:01 AM

Brilliant, many thanks!


All times are GMT -5. The time now is 06:10 PM.