You are not logged in.

#1 2007-02-07 15:18:14

TheGrudge
Member
Registered: 2006-06-15
Posts: 206
Website

Volume Labels

Hi,

I was tired remembering the correct device name for my partitions.
I also use a USB hard disk for backup solutions and sometimes the disk couldn't be mounted by autofs because the device was named different as the autofs configuration was told (for example sda1 became sdb1).
So I decided to use Volume Labels for all my partitions and external devices (if possible).
It seems to work fine, but one thing is strange.

mtab:

LABEL=/ on / type ext3 (rw)
/dev/hda1 on /boot type ext3 (rw)
/dev/hda6 on /home type ext3 (rw)
/dev/hda7 on /mnt/data type ext3 (rw)

My root partition is always mounted as LABEL=/, but all the other partitions are mounted as /dev/hdxx.

fstab:

LABEL=/                /             ext3      defaults            0      1
LABEL=/boot            /boot         ext3      defaults            0      1
LABEL=/home            /home         ext3      defaults            0      1
LABEL=/data            /mnt/data     ext3      defaults            0      1

GRUB:

title  Arch Linux
root   (hd0,0)
kernel /vmlinuz26 root=/dev/hda5 ro vga=791 quiet
initrd /kernel26.img

Why is the root partition not displayed as /dev/hda5?? Is this a problem?

And another problem:
I thought GRUB is capable of using labels, but the Archlinux version seems to have problems with that. Am I doing something wrong?


digiKam developer - www.digikam.org

Offline

#2 2007-02-07 16:01:20

zeus
Member
From: Korolev / Russia
Registered: 2006-09-19
Posts: 117
Website

Re: Volume Labels

1) it's normal
2) try UUID in GRUB for root. like root=/dev/disk/by-uuid
or maybe /dev/disk/by-label

Last edited by zeus (2007-02-07 16:02:10)

Offline

#3 2007-02-08 15:54:53

TheGrudge
Member
Registered: 2006-06-15
Posts: 206
Website

Re: Volume Labels

OK I will try this...
Never heard of /dev/disk/by-label before... ;-)

Anyway my root label is not displayed:

ls /dev/disk/by-label/

boot data home

But I think this is normal...


digiKam developer - www.digikam.org

Offline

Board footer

Powered by FluxBB