[opensuse] Howto Consolidate/Change which /boot/grub gets booted first?
Listmates, I have an 11.0 server with RAID1 that I added a spare 500G drive to in order to load 11.1 on the new drive. The 11.1 install created a new /boot/grub/menu.lst and attempted to add an entry to boot the 11.0 install. Now grub boots the 11.1 install (on sdc1) and then if selected will boot 11.0 on dm-2 (sda5 + sdb5). I now want to remove sdc from the system leaving the original 11.0 install. How do I tell grub to boot the 11.0 install first instead of booting from sdc so that when I remove the drive I'm not left unable to boot? Even if I wasn't removing sdc, I would still like to know how to make grub boot from my original /boot instead of the last installed /boot. Can somebody point me in the right direction to get this fixed? Thanks. -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 2009 January 09 21:50:50 David C. Rankin wrote:
How do I tell grub to boot the 11.0 install first instead of booting from sdc so that when I remove the drive I'm not left unable to boot?
There might be a YaST way to do this, and I don't know it. However, I would simply edit /boot/grub/menu.lst and change "default 0" to "default 1". Documentation for grub is in info pages; "info grub" at the command-line or info:grub in konqueror. In specific you need node "default".
Even if I wasn't removing sdc, I would still like to know how to make grub boot from my original /boot instead of the last installed /boot. Can somebody point me in the right direction to get this fixed? Thanks.
You can also just remove the new entr(y|ies), if you like. -- Boyd Stephen Smith Jr. ,= ,-_-. =. bss@iguanasuicide.net ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.net/ \_/
Boyd Stephen Smith Jr. wrote:
On Friday 2009 January 09 21:50:50 David C. Rankin wrote:
How do I tell grub to boot the 11.0 install first instead of booting from sdc so that when I remove the drive I'm not left unable to boot?
There might be a YaST way to do this, and I don't know it.
However, I would simply edit /boot/grub/menu.lst and change "default 0" to "default 1". Documentation for grub is in info pages; "info grub" at the command-line or info:grub in konqueror. In specific you need node "default".
Even if I wasn't removing sdc, I would still like to know how to make grub boot from my original /boot instead of the last installed /boot. Can somebody point me in the right direction to get this fixed? Thanks.
You can also just remove the new entr(y|ies), if you like.
Thanks Boyd, But my problem is a little different than that. I am currently booted into 11.1 and the boot process utilized /boot/grub/menu.lst on /dev/sdc1. I also have my original /boot partition on /dev/dm-2. In order to boot 11.0 the boot process 1st boots /dev/sdc1 and uses the /boot/grub/menu.lst to pass control to the boot partition on /dev/dm-2 where my original /boot/grub/menu.lst resides. My problem is that /dev/sdc1 did not exist on this machine until I decided to add it and install 11.1. The current quandary is this: 00:31 arete:~> l /boot total 14220 drwxr-xr-x 3 root root 4096 2008-12-20 00:34 ./ drwxr-xr-x 21 root root 4096 2009-01-09 19:36 ../ -rw------- 1 root root 512 2008-12-20 00:34 backup_mbr lrwxrwxrwx 1 root root 1 2008-12-20 00:00 boot -> ./ -rw-r--r-- 1 root root 1236 2008-12-03 04:24 boot.readme -rw-r--r-- 1 root root 89741 2008-12-04 21:03 config-2.6.27.7-9-default drwxr-xr-x 2 root root 4096 2009-01-09 19:34 grub/ <snip> and 00:46 arete:~> mount /dev/dm-2 /mnt/ecstasyb 00:46 arete:~> l /mnt/ecstasyb/boot/ total 13373 drwxr-xr-x 4 root root 3072 2008-10-28 03:43 ./ drwxr-xr-x 13 root root 4096 2009-01-10 00:31 ../ -rw------- 1 root root 512 2008-10-17 22:25 backup_mbr lrwxrwxrwx 1 root root 1 2008-10-17 22:02 boot -> ./ -rw-r--r-- 1 root root 83039 2008-10-22 10:12 config-2.6.25.18-0.2-default drwxr-xr-x 2 root root 1024 2009-01-09 19:33 grub/ two boot partitions and two grubs on the same box and I want initial boot control to be given to the second one (my original). The installer should have used my existing /boot partition and provided a grub entry to pass control to /dev/sdc1 to boot 11.1. But instead, the installer configured the box to boot from /dev/sdc1 and then pass control back to /dev/dm-2. I want to fix it so initial boot control is handled by /dev/dm-2 so that I can remove /dev/sdc1 without being left unable to boot. I'm more than comfortable editing the menu.lst to specify which install gets booted by default. In fact I do that often depending on whether I want to boot 11.0 or 11.1 without walking over to the machine. I usually just command a reboot via ssh from my laptop, thus I'm required to specify which install boots by default. The question is how do I fix the boot process so boot control is given to dm-2 first. Markus has the suggestion that grub-install may do it. I've used grub-install a number of times in the past to put the boot loader on a specific drive, but this time I'm putting on a raid1 array and I am hesitant about doing it since the 11.1 installer hosed my ability to boot 11.0 to begin with. See: https://bugzilla.novell.com/show_bug.cgi?id=445602 I guess it can't hurt to try, so will give the grub-install suggestion a whirl and go from there. -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Am Samstag, 10. Januar 2009 schrieb David C. Rankin:
Listmates,
I have an 11.0 server with RAID1 that I added a spare 500G drive to in order to load 11.1 on the new drive. The 11.1 install created a new /boot/grub/menu.lst and attempted to add an entry to boot the 11.0 install. Now grub boots the 11.1 install (on sdc1) and then if selected will boot 11.0 on dm-2 (sda5 + sdb5). I now want to remove sdc from the system leaving the original 11.0 install. How do I tell grub to boot the 11.0 install first instead of booting from sdc so that when I remove the drive I'm not left unable to boot?
Boot into 11.0, check /etc/grub.conf where it installs grub and /boot/grub/menu if it includes all entries, you want to have. Then run "grub- install" as root . That should reinstall the 11.0 version of grub. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Markus Koßmann wrote:
Am Samstag, 10. Januar 2009 schrieb David C. Rankin:
Listmates,
I have an 11.0 server with RAID1 that I added a spare 500G drive to in order to load 11.1 on the new drive. The 11.1 install created a new /boot/grub/menu.lst and attempted to add an entry to boot the 11.0 install. Now grub boots the 11.1 install (on sdc1) and then if selected will boot 11.0 on dm-2 (sda5 + sdb5). I now want to remove sdc from the system leaving the original 11.0 install. How do I tell grub to boot the 11.0 install first instead of booting from sdc so that when I remove the drive I'm not left unable to boot?
Boot into 11.0, check /etc/grub.conf where it installs grub and /boot/grub/menu if it includes all entries, you want to have. Then run "grub- install" as root . That should reinstall the 11.0 version of grub.
Ok, That seems simple enough. Wouldn't I have to use?: grub-install md-2 to tell grub-install which device I want it to install the boot loader on? -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 9 Jan 2009, David C. Rankin wrote:-
Listmates,
I have an 11.0 server with RAID1 that I added a spare 500G drive to in order to load 11.1 on the new drive. The 11.1 install created a new /boot/grub/menu.lst and attempted to add an entry to boot the 11.0 install. Now grub boots the 11.1 install (on sdc1) and then if selected will boot 11.0 on dm-2 (sda5 + sdb5). I now want to remove sdc from the system leaving the original 11.0 install. How do I tell grub to boot the 11.0 install first instead of booting from sdc so that when I remove the drive I'm not left unable to boot?
Even if I wasn't removing sdc, I would still like to know how to make grub boot from my original /boot instead of the last installed /boot. Can somebody point me in the right direction to get this fixed? Thanks.
As it appears that you're going to be removing sdc, have you tried booting the system after doing just that? If 11.1 has created a new /boot/* and written grub to sdc, the original 11.0 grub should still be exactly as it was before you installed 11.1, and so should boot the system into 11.0. Regards, David Bolt -- Team Acorn: http://www.distributed.net/ OGR-NG @ ~100Mnodes RC5-72 @ ~1Mkeys/s | openSUSE 10.3 32b | openSUSE 11.0 32b | openSUSE 10.2 64b | openSUSE 10.3 64b | openSUSE 11.0 64b | openSUSE 11.1 64b TOS 4.02 | openSUSE 10.3 PPC | RISC OS 3.6 | RISC OS 3.11 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
David C. Rankin wrote:
Listmates,
I have an 11.0 server with RAID1 that I added a spare 500G drive to in order to load 11.1 on the new drive. The 11.1 install created a new /boot/grub/menu.lst and attempted to add an entry to boot the 11.0 install. Now grub boots the 11.1 install (on sdc1) and then if selected will boot 11.0 on dm-2 (sda5 + sdb5). I now want to remove sdc from the system leaving the original 11.0 install. How do I tell grub to boot the 11.0 install first instead of booting from sdc so that when I remove the drive I'm not left unable to boot?
Even if I wasn't removing sdc, I would still like to know how to make grub boot from my original /boot instead of the last installed /boot. Can somebody point me in the right direction to get this fixed? Thanks.
It is not so easy. It depends on one think. What is your primary boot disk? If it is sdc, then after remove it primary boot disc became sda and if you doesn't change that MBR you normally boot 11.0. If it is sda, then it depends what is in MBR of disc. I think it is GRUB stage1 code...so what you must done is point that stage to your 11.0 /boot instead of 11.1...easiest way is boot to 11.0 and look what you ahve in /etc/grub.conf and if it is setup 'path to stage1' (hd0) (hd0,somehink) that you can easily run grub-install (it run as batch /etc/grub.conf) (I would like say, that suse doesn't have normal grub-install but specified version). If you have at first place anythink different then (hd0), then rewrite it to (hd0) and run grub-install. I hope I describe it clear...and don't forget add entry for 11.1 to your 11.0 menu. JR -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Josef Reidinger wrote:
David C. Rankin wrote:
Listmates,
I have an 11.0 server with RAID1 that I added a spare 500G drive to in order to load 11.1 on the new drive. The 11.1 install created a new /boot/grub/menu.lst and attempted to add an entry to boot the 11.0 install. Now grub boots the 11.1 install (on sdc1) and then if selected will boot 11.0 on dm-2 (sda5 + sdb5). I now want to remove sdc from the system leaving the original 11.0 install. How do I tell grub to boot the 11.0 install first instead of booting from sdc so that when I remove the drive I'm not left unable to boot?
Even if I wasn't removing sdc, I would still like to know how to make grub boot from my original /boot instead of the last installed /boot. Can somebody point me in the right direction to get this fixed? Thanks.
It is not so easy. It depends on one think. What is your primary boot disk? If it is sdc, then after remove it primary boot disc became sda and if you doesn't change that MBR you normally boot 11.0. If it is sda, then it depends what is in MBR of disc. I think it is GRUB stage1 code...so what you must done is point that stage to your 11.0 /boot instead of 11.1...easiest way is boot to 11.0 and look what you ahve in /etc/grub.conf and if it is setup 'path to stage1' (hd0) (hd0,somehink) that you can easily run grub-install (it run as batch /etc/grub.conf) (I would like say, that suse doesn't have normal grub-install but specified version). If you have at first place anythink different then (hd0), then rewrite it to (hd0) and run grub-install. I hope I describe it clear...and don't forget add entry for 11.1 to your 11.0 menu. JR
JR, Yes, it was clear. Thank You! -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Boyd Stephen Smith Jr.
-
David Bolt
-
David C. Rankin
-
Josef Reidinger
-
Markus Koßmann