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: Oguz Yilmaz
Subject: Re: grub does not boot when disk order changes
Date: Mon, 26 Nov 2012 21:51:38 +0200

Can you provide sample use of search command in grub.conf(unattended). all online samples are for attended uses.

On Monday, November 26, 2012, Andrey Borzenkov <address@hidden> wrote:
> 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
>

--
--
Oguz YILMAZ

reply via email to

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