[Top][All Lists]
[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: |
Tue, 27 Nov 2012 06:54:03 +0400 |
В Mon, 26 Nov 2012 21:51:38 +0200
Oguz Yilmaz <address@hidden> пишет:
> Can you provide sample use of search command in grub.conf(unattended). all
> online samples are for attended uses.
>
Oh, sorry, I automatically assumed you are using grub2. I do not think
it is possible in grub legacy.
> 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
> >
>