LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-13-2007, 03:11 PM   #1
cyberjean
LQ Newbie
 
Registered: Mar 2007
Distribution: Fedora Core 6
Posts: 5

Rep: Reputation: 0
Grub - dual boot.... not that easy


Hi all,

I have read and try quite a lot on this, alas it is still not working.

I have 2 IDE HD (hda = Fedora, hdc = windows data) (don't ask me why it is not hdb..) and one Sata Hd (sda = windows, 2 partitions).

I boot on the IDE drive and get Grub... no problem for launching Fedora, but Grub refuses to collaborate for windows.

---------
device.map
(fd0) /dev/fd0
(hd0) /dev/hda
(hd1) /dev/hdc
(hd2) /dev/sda
--------------
Grub.conf
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.22.9-61.fc6)
root (hd0,0)
kernel /vmlinuz-2.6.22.9-61.fc6 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.22.9-61.fc6.img
title Fedora Core (2.6.18-1.2798.fc6)
root (hd0,0)
kernel /vmlinuz-2.6.18-1.2798.fc6 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-1.2798.fc6.img
title Windows XP
map (hd0) (hd2)
map (hd2) (hd0)
rootnoverify (hd0,0)
savedefault
makeactive
chainloader +1
--------------------------------------------
fdisk -l

Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 4865 38973690 8e Linux LVM

Disk /dev/hdc: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 1 4864 39070048+ c W95 FAT32 (LBA)
/dev/hdc4 * 1 1 0 0 Empty
Partition 4 does not end on cylinder boundary.

Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 12748 102398278+ 7 HPFS/NTFS
/dev/sda2 12749 24320 92952090 f W95 Ext'd (LBA)
/dev/sda5 12749 24320 92952058+ 7 HPFS/NTFS

-------------------------------------------
boot.log
Empty file.
----------------

.. I'm getting desperate on this... any help would be GREATLY appreciated!!!

Jean
 
Old 10-13-2007, 04:10 PM   #2
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
I have no experience with SATA drives.
I do have experience with GRUB.
Quote:
I have 2 IDE HD (hda = Fedora, hdc = windows data) (don't ask me why it is not hdb..)
Because hda is in the primary master slot and hdc is in the secondary master slot? hdb would be in the primary slave slot.

It looks like GRUB is set to boot your Windows data partition instead of your Windows OS.

I am not sure exactally what the entry should be but comment out what is there now and try pointing GRUB to your SATA drive on sda.

There could be an issue with drivers at boot too, as I said I have not used SATA drives.
 
Old 10-13-2007, 11:18 PM   #3
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
According to what was posted, the SATA drive with Windows is hd2. If the boot files are in the first partition as is usually the case, the "rootnoverify" should be (hd2,0), not (hd0,0) which is the Fedora drive's first partition. Everything in the grub menu.lst looks good except for that.
 
Old 10-13-2007, 11:38 PM   #4
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Quote:
Originally Posted by Junior Hacker View Post
According to what was posted, the SATA drive with Windows is hd2. If the boot files are in the first partition as is usually the case, the "rootnoverify" should be (hd2,0), not (hd0,0) which is the Fedora drive's first partition. Everything in the grub menu.lst looks good except for that.
I think you are correct and I feel silly for missing the clues under the device.map heading and instead thinking GRUB counted the drives like Linux skipping the missing hdb as hd1.
 
Old 10-14-2007, 01:32 PM   #5
cyberjean
LQ Newbie
 
Registered: Mar 2007
Distribution: Fedora Core 6
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Junior Hacker View Post
According to what was posted, the SATA drive with Windows is hd2. If the boot files are in the first partition as is usually the case, the "rootnoverify" should be (hd2,0), not (hd0,0) which is the Fedora drive's first partition. Everything in the grub menu.lst looks good except for that.
Yes!!!! THANK YOU VERY MUCH!!!
I tried with only rootnoverify (hd2,0) and it hangs... but if I keep the mapping AND use hd2,
map (hd0) (hd2)
map (hd2) (hd0)
rootnoverify (hd2,0)

then it works perfectly!!
... I don't understand why, as with the mapping hd2 (win) is now hd0 (linux)... and in the bios the Sata drive is the 2nd one but at least it works well!!

Thank you again!
Solving in 5 minutes a problem I've fighting with for a few days makes me want to learn more!!!

Have a good day,
Jean
 
  


Reply

Tags
boot, dual, grub, ide, sata



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
Are they all this easy to dual boot? Fasn8n Linux - General 7 02-06-2006 10:34 PM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 01:44 PM
Dual Boot Solution --- Really Easy!!! altair401 LinuxQuestions.org Member Success Stories 10 07-09-2004 02:04 PM
Dual Boot Solution --- Really Easy!!! altair401 Linux - General 2 07-06-2004 03:54 AM
suse 8.2-dual boot-very easy ronss Linux - Distributions 0 01-27-2004 12:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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