LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-05-2004, 10:52 PM   #1
OriginalMan
LQ Newbie
 
Registered: Jun 2004
Posts: 2

Rep: Reputation: 0
Problem with Grub


Hey guys I have a problem with my grub, i have windows and linux on my computer, but computer goes straight to linux, how can i modify my grub.conf file to make my system give me an option of both?
 
Old 06-05-2004, 10:58 PM   #2
MikeFoo1
Member
 
Registered: Apr 2004
Distribution: Slackware 9.1
Posts: 72

Rep: Reputation: 15
Find your grub.conf and edit to something similar :

Code:
boot=/dev/hda
map=/boot/map
vga=normal
default=linux
keytable=/boot/us.klt
prompt
nowarn
timeout=200
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
	label=linux
	root=/dev/hda6
	initrd=/boot/initrd.img
	append="devfs=mount hdd=ide-scsi"
	read-only
image=/boot/vmlinuz
	label=failsafe
	root=/dev/hda6
	initrd=/boot/initrd.img
	append="failsafe devfs=nomount hdd=ide-scsi"
	read-only
other=/dev/hda1 <---------------------------------------------- windows partition
	label=NT
	table=/dev/hda
other=/dev/fd0
	label=floppy
	unsafe
 
Old 06-06-2004, 03:02 AM   #3
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
With respect MikeFoo that looks like a lilo setup.
OriginalMan you need to be root and edit /boot/grub/menu.lst and add;

title Windows 95/98/NT/2000
root (hd0,0)
makeactive
chainloader +1

The line root (hd0,0) needs to be changed for your system. Grub sees drive one as 0 so this is telling the system to look at drive 1, partition 1. Having edited the file just save it and it should be written to the MBR.
 
Old 06-06-2004, 11:20 AM   #4
OriginalMan
LQ Newbie
 
Registered: Jun 2004
Posts: 2

Original Poster
Rep: Reputation: 0
TigerOC

I inserted the code at the end of my grub.conf file, and now the title Windows 95/98/NT/2000 appears at the boot prompt. However when I select it, it says booting...and then it says error : unrecognized device string.

I took the liberty of examining the grub code for booting Linux, and under root ( hd0, 1), there is much more information as opposed to where i have root ( hd1, 5) for windows XP. Could this be my problem?
 
Old 06-06-2004, 03:16 PM   #5
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
If you are saying hd1,5 then this is your second hard drive and partition 6. To set it up you need take one away from each value because grub starts at zero. eg. I have a debian system on hard drive 4 and partition 3 so the value is hd3,2. Hope this helps.
 
  


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
Yet another GRUB problem eqxro Linux - Software 3 08-04-2004 09:27 AM
HDD problem, scancode problem and grub EJ_INSIDE Debian 2 07-15-2004 09:36 AM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 08:13 PM
grub problem jigs Linux - Newbie 7 09-18-2003 12:16 PM
GRUB problem pupunk98 Linux - Newbie 7 12-26-2002 04:34 AM

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

All times are GMT -5. The time now is 09:57 PM.

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