[arch-general] Compiling my own kernel: IDE, SATA...

Attila attila at invalid.invalid
Sat May 10 03:37:43 EDT 2008


On Donnerstag, 8. Mai 2008 21:20 Carotinho wrote:

> Yes I think I'm going to switch to using labels! It's really clean and nice,
> indeed!

Sorry, i forgot in my first posting that this is only the half of the story
because you can use labels with grub too.

If you will have labels for your partitions than you should look for the names
in /dev.

$ ls -l /dev/disk/by-label/
insgesamt 0
lrwxrwxrwx 1 root root 11 10. Mai 09:19 DATEN32 -> ../../sda11
lrwxrwxrwx 1 root root 10 10. Mai 09:19 arch64boot -> ../../sda7
lrwxrwxrwx 1 root root 10 10. Mai 09:19 arch64root -> ../../sda8
lrwxrwxrwx 1 root root 10 10. Mai 09:19 archboot -> ../../sda5
lrwxrwxrwx 1 root root 10 10. Mai 09:19 archroot -> ../../sda6
lrwxrwxrwx 1 root root 11 10. Mai 09:19 home -> ../../sda10
lrwxrwxrwx 1 root root 10 10. Mai 09:19 system -> ../../sda1

Than use the editor of your choice and replace the value of "root=".

Example from my menu.lst (i cut my options to avoid line breaks):
# Arch Linux
title  Arch Kernel
root   (hd0,4)
kernel /vmlinuz26 root=/dev/disk/by-label/archroot ro
initrd /kernel26.img

After this it should not matter if the kernel devs decide to use other device
names in the future. -)

See you, Attila





More information about the arch-general mailing list