DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
default 0
You would use 1 instead of 0 there as you have linux before windows in your menu.lst.
I would think grub is grub in sarge or etch.
I did what your trying to do, but it was a long time ago.
I think I just put the windows entry above the linux entry in menu.lst
Can you post a copy of your entire /boot/grub/menu.lst?
title Microsoft Windows XP Home
root (hd1,0)
savedefault
boot
Once you get joy, it's good practice to cp your boot/grub/menu.lst to /boot/grub/menu.backup_lst. Reason being, when/if you upgrade your kernel, the windows stanza might get dropped. It happens.
Don't put the chainloader +1 part under the linux stanza. Just change the default number 1 close to the beginning of menu.lst. An alternative would be to put 0 there and move the windows stanza before the linux one.
Seeing as Windows is installed on the second disk, it should be mapped also.
Is there something else on the first drive? or should you have (hd0,0) instead of (hd1,0)?. If Windows is on the first drive and first partition, it should be (hd0,0) for the root entry.
EDIT: The word "savedefault" should only be present in the entry you want to be the default.
Last edited by Junior Hacker; 05-26-2007 at 06:19 PM.
Seeing as Windows is installed on the second disk, it should be mapped also.
Is there something else on the first drive? or should you have (hd0,0) instead of (hd1,0)?. If Windows is on the first drive and first partition, it should be (hd0,0) for the root entry.
EDIT: The word "savedefault" should only be present in the entry you want to be the default.
FWIW, I have an OEM Windows XP chainloaded on a slave drive and Etch installed on the master HD. My boot/grub is quoted below.
If it is desired that Windows boot passively on restarts, it would make some sense to configure (jumper) the HDs with Windows HD as master and Debian as slave. Whichever approach you decide upon,I trust you can configure the mapping appropriate to your needs from the following. It took me several attempts to get it just right, but it works perfectly for me.
title Debian GNU/Linux, kernel 2.6.18-4-686 (single-user mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-4-686 root=/dev/hda1 ro installgui install
standard" single
initrd /boot/initrd.img-2.6.18-4-686
savedefault
title Windows XP
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
### END DEBIAN AUTOMAGIC KERNELS LIST
#If windows boot stanza gets lost during upgrade, use:
#title Windows XP
# rootnoverify (hd1,0)
# map (hd0) (hd1)
# map (hd1) (hd0)
# chainloader +1
One issue you might encounter is (re)setting the computer clock times. When in Windows, I find the clock has auto set to GMT. If I correct it to my zone, the next boot into Linux (KDE) results in a wonky time/date setting and I need to reset it. I now leave the clock alone in Windows since nothing I do there is time sensitive. This prevents the 'wonk' when rebooting into Linux.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.