help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grub does not boot when disk order changes


From: Andrey Borzenkov
Subject: Re: grub does not boot when disk order changes
Date: Mon, 26 Nov 2012 14:17:14 +0400

On Mon, Nov 26, 2012 at 1:05 PM, Oguz Yilmaz <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]