Bug#434596: grub-reboot gets stuck on its entry and doesn't revert back to default

Nadim Shaikli shaikli at yahoo.com
Wed Jul 25 03:19:59 UTC 2007


Package: grub
Version: 0.97-27
Severity: normal


I have two OSes which I'd like access to via 'grub-reboot' ordered
within my menu.lst file as,

  entry #0 - WinXP
  entry #1 - Debian's etch

I'd like to be able to switch from one OS to the other remotely via
'grub-reboot' (ie. to reboot into the OS of choice at the time).
I've modified my "default" entry in my menu.lst file to look like so,

 default saved

and I've run 'grub-set-default 1' which properly creates the following
file /boot/grub/default with '1' in it along with other misc text.
When I run 'grub-reboot 0' and I OK the reboot I do indeed get booted
into the windows partition but when I reboot my windows session I'd
expect to go back to my entry #1 (linux) but I don't - I'm stuck in
entry #0 (windows).  I've been able to replicate this a number of times
and it always fails.  I realize that there was a bug #254475 which was
fixed by Mr. Baitinger (in grub 0.97-24) but I could have sworn I'm
seeing very similar issues all over.  I'm using a stock debian etch box
which has two drives on it (sda and sdb - sda1 contains windows and sdb1
linux - my MBR is, of course, on sda and I might have installed it on
sdb by mistake awhile back too).  In other words, I've done the following
(in case this matters),

 % grub-install /dev/sdb
 % grub-install /dev/sda

Any help would be appreciated and I'd be more than happy to provide
further info...

Thanks.

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages grub depends on:
ii  libc6                       2.3.6.ds1-13 GNU C Library: Shared libraries
ii  libncurses5                 5.5-5        Shared libraries for terminal hand

grub recommends no packages.

-- no debconf information




More information about the Pkg-grub-devel mailing list