LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-28-2005, 06:30 PM   #1
search66
LQ Newbie
 
Registered: Feb 2005
Location: Baltimore, MD USA
Distribution: SUSE 9.2
Posts: 22

Rep: Reputation: 15
GRUB help needed to boot to windows


Ok here is my info maybe someone can se my problem

REALLY appreciate any help!!

Mount info for windows:

/dev/hdb1 on windows/C type NTFS


Device Map:

(hd0). /dev/hda
(hd1). /dev/hdb
(hd2). /dev/hdb1


menu.lst:

title Windows
rootnoverify (hd1,0)
makeactive
chainloader +1


I have two hard drives and Windows is on the primary drive... LBA is set on, btw.


Again, Im stuck not getting into Windows. THANKS!!!
 
Old 02-28-2005, 08:04 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Hi,

While you are booted into linux, type the command: /sbin/fdisk -l
Post the results back here please.
 
Old 02-28-2005, 08:23 PM   #3
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
If your Windows partition is /dev/hda1 then change your line to rootnoverify (hd0,0). If hda2 then (hd0,1). 1st drive is always 0, 2nd is 1, and so on.

Brian1
" Google the Linux way @ http://www.google.com/linux "
 
Old 02-28-2005, 08:41 PM   #4
search66
LQ Newbie
 
Registered: Feb 2005
Location: Baltimore, MD USA
Distribution: SUSE 9.2
Posts: 22

Original Poster
Rep: Reputation: 15
/dev/hda1 W95 ext'd (LBA) <- boot
/dev/hda5 HPFS/NTFS
/dev/hda6 Linux Swap
/dev/hda7 Linux

/dev/hdb1 HPFS/NTFS
 
Old 02-28-2005, 08:59 PM   #5
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Quote:
/dev/hda1 W95 ext'd (LBA) <- boot
/dev/hda5 HPFS/NTFS
/dev/hda6 Linux Swap
/dev/hda7 Linux

/dev/hdb1 HPFS/NTFS
You might have success using the map command in the menu.lst. This is used to fool windows into thinking it is on the first drive where it always wants to assume it is located.
Code:
menu.lst:

title Windows
rootnoverify (hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
makeactive
chainloader +1
 
Old 02-28-2005, 09:03 PM   #6
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
If you say Windows is on the master the master drive is it the /dev/hda5 partition. If it is actually the /dev/hdb1 then to me it means the Windows drive is the slave. Windows does not like to boot unless it is C. We need to trick grub to make windoes happy.

Try this.

title Windows
root = (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1

Brian1
" Google the Linux way @ http://www.google.com/linux "
 
Old 03-01-2005, 05:12 AM   #7
search66
LQ Newbie
 
Registered: Feb 2005
Location: Baltimore, MD USA
Distribution: SUSE 9.2
Posts: 22

Original Poster
Rep: Reputation: 15
Homey! Yer truly a champ! That map trick worked great. Thanks a ton...
 
Old 03-01-2005, 07:01 AM   #8
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Thumbs up

Cool! I'm glad ya got it working.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
grub question changing boot order making windows boot first nfsutim Linux - Newbie 29 10-27-2012 12:53 PM
grub guru needed: XP/FC3 dual boot FC3noob Linux - Newbie 4 02-13-2005 03:15 AM
grub help needed cmd/menu mode boot prob/setup vlinux Linux - Software 3 11-13-2004 12:34 PM
GRUB using /boot partition for multiple Linux/Windows boot? cpv204 Linux - Newbie 7 04-01-2003 03:54 PM
How to add a boot record which used to startup windows under my Grub boot loader? yunxiang Linux - Newbie 6 02-01-2003 02:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:24 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