Mailinglist Archive: opensuse (3513 mails)

< Previous Next >
Re: [opensuse] Howto Consolidate/Change which /boot/grub gets booted first?
  • From: "David C. Rankin" <drankinatty@xxxxxxxxxxxxxxxxxx>
  • Date: Sat, 10 Jan 2009 00:49:29 -0600
  • Message-id: <496844F9.5020808@xxxxxxxxxxxxxxxxxx>
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
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
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-
drwxr-xr-x 2 root root 4096 2009-01-09 19:34 grub/


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-
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
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

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
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:

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
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >