[opensuse-autoinstall] How to change the root disk in grub?
Hi, I'm using a bootable USB-Stick to boot the computer for autoinstallation. Everything works fine, but the grub boot-loader installation just before the first reboot is selecting the wrong harddisk as root device. I.e. it should be "root (hd0,1)", but actually it is set to "root (hd1,1)". Background: At inital boot, the USB-Stick is /dev/sda and the HDD is /dev/sdb. After kernel and initrd have been loaded from the USB-Stick, I'm removing the stick and the autoinstall continues. After 1st reboot, the HDD is /dev/sda and grub fails, because (hd1,1) is not present. How can I force autoyast to tell grub to use (hd0,0) as root? In SUSE 10.1 this problem did not exist. System: openSUSE-10.2 (final) on ASUS K8N-DER (Dual Opteron 275) Thanks, Peter. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Wednesday 14 February 2007 16:18, GUNREBEN, PETER (Peter) wrote:
How can I force autoyast to tell grub to use (hd0,0) as root? In SUSE 10.1 this problem did not exist.
I don't maintain the bootloader code and I can't say if a single XML config element would be enough, so I would suggest to use the autoyast UI to configure the complete bootloader section to your needs. -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug now playing Suicide Commando - Bleed for us all -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Uwe, Uwe Gansert wrote:
On Wednesday 14 February 2007 16:18, GUNREBEN, PETER (Peter) wrote:
How can I force autoyast to tell grub to use (hd0,0) as root? In SUSE 10.1 this problem did not exist.
I don't maintain the bootloader code and I can't say if a single XML config element would be enough, so I would suggest to use the autoyast UI to configure the complete bootloader section to your needs.
Unfortunately, I was not able to find a setting for the root device of grub. There is actually a root device field in the UI, but this is the root device for the kernel and not for grub. The only workaround I have found so far was to put the drive specification upfront the kernel and initrd settings like (hd0,1)/boot/vmlinuz and (hd0,1)/boot/initrd. This works, at least. Peter -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Thursday 15 February 2007 18:54, GUNREBEN, PETER (Peter) wrote:
Unfortunately, I was not able to find a setting for the root device of grub. There is actually a root device field in the UI, but this is the root device for the kernel and not for grub.
so "Boot Loader Installation" -> "Boot Loader Location" is not the right configuration option for your problem? -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug now playing Neurotic Fish - Inside -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Uwe, Uwe Gansert wrote:
On Thursday 15 February 2007 18:54, GUNREBEN, PETER (Peter) wrote:
Unfortunately, I was not able to find a setting for the root device of grub. There is actually a root device field in the UI, but this is the root device for the kernel and not for grub.
so "Boot Loader Installation" -> "Boot Loader Location" is not the right configuration option for your problem?
Hmmm, I can't select a device in "Boot Loader Location" as the pulldown menu of "Custom Boot Partition" is empty (at least in the autoyast UI). Peter. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Monday 19 February 2007 17:21, GUNREBEN, PETER (Peter) wrote:
so "Boot Loader Installation" -> "Boot Loader Location" is not the right configuration option for your problem?
Hmmm, I can't select a device in "Boot Loader Location" as the pulldown menu of "Custom Boot Partition" is empty (at least in the autoyast UI).
hm. A bug I would say.
Here is a global secion. The
Uwe, Uwe Gansert wrote:
On Monday 19 February 2007 17:21, GUNREBEN, PETER (Peter) wrote:
so "Boot Loader Installation" -> "Boot Loader Location" is not the right configuration option for your problem?
Hmmm, I can't select a device in "Boot Loader Location" as the pulldown menu of "Custom Boot Partition" is empty (at least in the autoyast UI).
hm. A bug I would say. Here is a global secion. The
might be the parameter you are looking for (not tested) <global>
/dev/sda6 <gfxmenu>/boot/message</gfxmenu>6 <timeout config:type="integer">8</timeout> </global>
Thanks, for the info. Unfortunately, this section will most likely not solve my initial problem. At installation time, the HDD is seen as /dev/sdb, but after 1st reboot it will be /dev/sda. I must admit, that this is really a tricky configuration and that I'm probably the only one who has that problem. I've recently tried to checked "Boot from Master Boot Record", which caused the grub installation to fail, because (hd0) is not present. I think, I'll go for the "kernel (hd0,1)/boot/vmlinuz" syntax for defining the kernel and initrd, which works fine for me. Thanks for all your support, Peter. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (2)
-
GUNREBEN, PETER (Peter)
-
Uwe Gansert