LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Making windows7 default boot (https://www.linuxquestions.org/questions/linux-general-1/making-windows7-default-boot-891348/)

moonmoth 07-12-2011 02:36 PM

Making windows7 default boot
 
I have a dual-boot system, with Windows 7 and Fedora 15. I would like for Windows 7 to be the default boot, and I thought that I knew how to do that. But apparently I do not. I have the default as 1, and Windows 7 is the first title. But it still boots up Fedora 15 if I just let it time out. Here is my /etc/grub.conf file:


# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,4)
# kernel /vmlinuz-version ro root=/dev/mapper/VolGroup-lv_root
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=1
timeout=60
splashimage=(hd0,4)/grub/splash.xpm.gz
hiddenmenu
title Windows7
rootnoverify (hd0,1)
chainloader +1
title GNU GRUB 2, (1.98)
kernel /grub2/core.img
title Fedora (2.6.38.8-32.fc15.i686.PAE)
root (hd0,4)
kernel /vmlinuz-2.6.38.8-32.fc15.i686.PAE ro root=/dev/mapper/VolGroup-lv_root rd_LVM_LV=VolGroup/lv_root rd_LVM_LV=VolGroup/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.38.8-32.fc15.i686.PAE.img
title Fedora (2.6.35.13-92.fc14.i686.PAE)
root (hd0,4)
kernel /vmlinuz-2.6.35.13-92.fc14.i686.PAE ro root=/dev/mapper/VolGroup-lv_root rd_LVM_LV=VolGroup/lv_root rd_LVM_LV=VolGroup/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.35.13-92.fc14.i686.PAE.img
title Fedora (2.6.34.9-69.fc13.i686.PAE)
root (hd0,4)
kernel /vmlinuz-2.6.34.9-69.fc13.i686.PAE ro root=/dev/mapper/VolGroup-lv_root rd_LVM_LV=VolGroup/lv_root rd_LVM_LV=VolGroup/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.34.9-69.fc13.i686.PAE.img

colucix 07-12-2011 02:46 PM

They are numbered starting from 0. default 0 will boot Windows.

moonmoth 07-12-2011 03:04 PM

Yup, that works. For some weird reason I thought they started with 1. Guess that is what I get for thinking. :-)


All times are GMT -5. The time now is 10:14 PM.