On Mon, Nov 26, 2012 at 1:05 PM, Oguz Yilmaz <[email protected]> wrote: > | root (hd0,0) | > | kernel /boot/vmlinuz-3.5.3 ro root=LABEL=/ console=ttyS0,19200n8 | > | initrd /boot/initrd-3.5.3.img > > If I change grub line "root (hd0,0)" to "root (hd1,0)" it boots > correctly. However, this should work without admin intervention. >
It does work by default if you use grub-mkconfig to generate configuration. If you edit it manually, you are responsible for finding correct disk. > How can I build such a self working grub boot on case of a disk order change? > Use GRUB2 "search" command to find correct partition using UUID, LABEL or file name. grub-mkconfig by default adds UUID search, it should find filesystem even if physical disk enumeration order is changed. -andrey _______________________________________________ Help-grub mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-grub
