В Mon, 26 Nov 2012 21:51:38 +0200
Oguz Yilmaz <[email protected]> пишет:

> 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 <[email protected]> wrote:
> > 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

Reply via email to