LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Configuring GRUB in a multi OS enviorment (https://www.linuxquestions.org/questions/linux-newbie-8/configuring-grub-in-a-multi-os-enviorment-111843/)

fhameed 11-03-2003 10:14 AM

Configuring GRUB in a multi OS enviorment
 
Hello

I've installed linux red hat 8.0 along with the windows OS...making my machine multi OS.
I've grub boot loader.
On startup linux starts as my default OS.
How can i reconfigure grub so that the next time i reboot my pc Windows starts as my default OS and not linux..

Thank you.

nirvanix 11-03-2003 10:34 AM

Hi, I think you just have to manually edit the /boot/grub/grub.conf file (may be called menu.lst in some distros) and either add or change the line that says default=?
Here is an example 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 do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,8)
# kernel /boot/vmlinuz-version ro root=/dev/hda9
# initrd /boot/initrd-version.img
#boot=/dev/hda
# By default boot the second entry
default=1
# Fallback to the first entry.
fallback 0
# Boot automatically after 2 minutes
timeout=120
splashimage=(hd0,8)/boot/grub/splash.xpm.gz
title Windows 2000
unhide (hd0,0)
hide (hd0,1)
hide (hd0,2)
rootnoverify (hd0,0)
chainloader +1
makeactive
title Red Hat Linux (2.4.18-19.8.0.19mar2003)
root (hd0,8)
kernel /boot/bzImage.2.4.18-19.8.0.19mar2003 ro root=LABEL=/ hdd=ide-scsi
initrd /boot/initrd-2.4.18-19.8.0custom.img.19mar03
title Red Hat Linux (2.4.18-19.8.0custom)
root (hd0,8)
kernel /boot/vmlinuz-2.4.18-19.8.0custom ro root=LABEL=/ hdd=ide-scsi
initrd /boot/initrd-2.4.18-19.8.0custom.img
title Red Hat Linux (2.4.18-14)
root (hd0,8)
kernel /boot/vmlinuz-2.4.18-14 ro root=LABEL=/ hdd=ide-scsi
initrd /boot/initrd-2.4.18-14.img
title MyKernel.26jan03 (Red Hat Linux 2.4.18-14)
root (hd0,8)
kernel /boot/bzImage.myker.26jan03 ro root=LABEL=/ hdd=ide-scsi
initrd /boot/initrd-2.4.18-19.8.0.img
title Windows 98
hide (hd0,0)
hide (hd0,1)
unhide (hd0,2)
rootnoverify (hd0,2)
chainloader +1
makeactive
title DOS 6.22
hide (hd0,0)
unhide (hd0,1)
hide (hd0,2)
rootnoverify (hd0,1)
chainloader +1
makeactive
title Partition 2 (floppy)
hide (hd0,0)
unhide (hd0,1)
hide (hd0,2)
chainloader (fd0)+1
title Partition 3 (floppy)
hide (hd0,0)
hide (hd0,1)
unhide (hd0,2)
chainloader (fd0)+1

fhameed 11-03-2003 12:58 PM

Hello

Thanks for the reply
I use command line linux
I'll get 2 the grub conf file as u mentioned.
How do i get 2 edit it..like we have notepad for editing in windows.

what's the default editor for linux and how do i use it(what are the commands 2 invoke the editor and check for it..install it bla bla)

Thank you.

fhameed.

nirvanix 11-03-2003 01:05 PM

from the console most people use vi. The command would be:

vi /boot/grub/grub.conf

From Gnome you could use gedit - a simple but good text editor.
From KDE try kedit - also a simple, nice text editor.


All times are GMT -5. The time now is 12:04 AM.