I have two SATA drives, but their names /dev/sda
and /dev/sdb
are chosen randomly by Linux.
How can I correctly set up LILO? How can I put a stable reference to the hard drives in lilo.conf
?
ADDED. Can I use udev's names (like /dev/disk/by-id/*) in lilo.conf? LILO doesn't read lilo.conf at each boot, but only once on setup MBR when I run 'lilo' without arguments. At this stage udev names are available. But how do LILO store information about disks to MBR and boot-files?
I use dual-boot with Windows, but NTFS disks have no UUID. I want to use udev's id.
lilo.conf
will be read once when installing and whether it contains root entries by UUID or by dev doesnt matter - its the kernel that understands the "UUID=" options, not lilo. There are even scripts to automatically convert yourlilo.conf
to using UUIDs, like this one – didster Oct 19 '12 at 13:15