Change bootsequence with grub at every bootup

Matthias Fechner idefix at fechner.net
Wed May 25 08:23:29 UTC 2005


Hi,

im using grub and have windows and ubuntu on my machine.

I want to configure grub in the way, that it boot Ubuntu and at the
next reboot it should boot windows and the at next reboot ubuntu and
so on.

I searched the manual and found the two commandos:
default saved
savedefault

What i tried now is the following:
--- cut ---
default saved
# For booting Linux
title  Ubuntu
savedefault 2
root (hd1,2)
kernel (hd1,0)/vmlinuz root=/dev/hdb3

# Booting old Kernel with Debian
title Old Kernel
kernel (hd1,0)/vmlinuz.geht hde=scsi

# For booting Windows NT or Windows95
title Windows
savedefault 0
rootnoverify (hd0,0)
makeactive
chainloader  +1
--- cut ---

But grub will only boot one OS.
What is wrong here?

-- 
Bye
Matthias




More information about the ubuntu-users mailing list