LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   linux should boot first (https://www.linuxquestions.org/questions/linux-newbie-8/linux-should-boot-first-596796/)

babu198649 11-03-2007 04:15 AM

linux should boot first
 
hi

i have two operating systems in my system. linux and windows,
whenever i switch on the computer if i does not select the operating system(windows or linux)by default it boots windows.

can i change this setting such that linux boots defaultly


thank u

steve02169 11-03-2007 04:36 AM

In the configuration file /boot/grub/grub.conf

find the section for Windows and change default=0 to default=1
and then change the linux section that has default=1 to default=0

babu198649 11-03-2007 05:44 AM

thanks steve

prachisa 11-03-2007 05:54 AM

default grub boot --value to change marked in red
 
hi babu

default=1
timeout=5
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.21-1.3194.fc7)
root (hd0,2)
kernel /vmlinuz-2.6.21-1.3194.fc7 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.21-1.3194.fc7.img
title Other
rootnoverify (hd0,0)
chainloader +1


make default=1
as i have marked it in red and bold.
i think it would be working

well i would like to know which second OS u r using(windows i guess??) (first is fedora i can see in ur grub file)

Here is the /boot/grub/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,1)
# kernel /vmlinuz-version ro root=/dev/hda3
# initrd /initrd-version.img
#boot=/dev/hda
default=2timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Linux (2.4.20-8smp)
root (hd0,1)
kernel /vmlinuz-2.4.20-8smp ro root=LABEL=/ hdd=ide-scsi
initrd /initrd-2.4.20-8smp.img
title Linux-up (2.4.20-8)
root (hd0,1)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdd=ide-scsi
initrd /initrd-2.4.20-8.img
title Windows
rootnoverify (hd0,4)
chainloader +1
==============


Regards..........Prachi


All times are GMT -5. The time now is 12:11 PM.