LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-03-2003, 10:14 AM   #1
fhameed
Member
 
Registered: Oct 2003
Location: Pakistan
Posts: 59

Rep: Reputation: 15
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.
 
Old 11-03-2003, 10:34 AM   #2
nirvanix
Member
 
Registered: May 2003
Location: Calgary, Canada
Distribution: Arch Linux
Posts: 194

Rep: Reputation: 30
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
 
Old 11-03-2003, 12:58 PM   #3
fhameed
Member
 
Registered: Oct 2003
Location: Pakistan
Posts: 59

Original Poster
Rep: Reputation: 15
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.
 
Old 11-03-2003, 01:05 PM   #4
nirvanix
Member
 
Registered: May 2003
Location: Calgary, Canada
Distribution: Arch Linux
Posts: 194

Rep: Reputation: 30
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub - multi OS boot hiteshmaisheri Linux - Software 3 01-15-2006 11:19 AM
How to multi boot by GRUB? jiapei100 Linux From Scratch 3 02-22-2005 09:22 PM
Grub with Multi-drives/Multi Redhats zuele Linux - Software 1 11-13-2003 04:59 PM
Linux Programming Enviorment hbktron Programming 7 05-06-2003 04:17 AM
GRUB, Multi Linux/Multi Disk Boot gtnorton Linux - Software 1 03-16-2003 03:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration