LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Grub Boot Loader Help (https://www.linuxquestions.org/questions/linux-general-1/grub-boot-loader-help-395415/)

OrionOps 12-21-2005 05:38 PM

Grub Boot Loader Help
 
I am having some problems duel booting windows and linux.

I am using Linux Fedora Core 4 and Windows XP Pro SP2.

Linux is on an IDE hard drive and Windows is on a serial ata hard drive on the first controller.

I keep getting error 13 when I try to boot into Windows.

Here is my grub.conf file.

default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.6.11-1.1369_FC4)
root (hd0,0)
kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.11-1.1369_FC4.img
#title Windows XP Pro
# rootnoverity (sda1,0)
# rootnoverify (hd0,0)
# chainloader +1

I tried some things and just commented them out. So I guess in short my question is, what entries to I use boot Windows on a serial ata hard drive on the first controller, so SATA1.

Any help would be greatly appretiated.

Thanks,
OrionOps

michaelk 12-21-2005 06:12 PM

Look at the device.map file in the /boot/grub directory. I would guess it is something like:
(fd0) /dev/fd0
(hd0) /dev/hda
(hd1) /dev/sda

so:
title Windows XP Pro
rootnoverify (hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
chainloader +1

The map lines are necessary because windows wants to be the first drive. See grub documentation for additional details. The first hard drive found will be hd0, the next hd1 and so on. Partitions IDs start at 0 i.e. hd0 is hda1.

Welcome to LinuxQuestions. You can find lots of help by searching the web and this website. As a newbie the difficult part is knowing what to search for.

OrionOps 12-21-2005 11:06 PM

My device.map file is exactly as you stated. I did everything you said but it still gives me the same error.

syg00 12-21-2005 11:15 PM

13 is a bit odd - open a terminal and post the output from
Code:

fdisk -l
(that's ell as in list).

OrionOps 12-21-2005 11:20 PM

Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 13 104391 83 Linux
/dev/hdb2 14 9729 78043770 8e Linux LVM

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 2550 20482843+ 7 HPFS/NTFS
/dev/sda2 2551 24320 174867525 f W95 Ext'd (LBA)
/dev/sda5 2551 24320 174867493+ 7 HPFS/NTFS

syg00 12-22-2005 01:46 AM

Dunno - pls list your grub.conf

OrionOps 12-22-2005 09:17 AM

This is my device.map file
(fd0) /dev/fd0
(hd0) /dev/hdb
(hd1) /dev/sda



default=2
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core 4 (2.6.11-1.1369_FC4)
root (hd0,0)
kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.11-1.1369_FC4.img
title Windows XP Pro
rootnoverity (hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
chainloader +1

michaelk 12-22-2005 11:33 AM

Quote:

rootnoverity (hd1,0)
Is this a typo or a copy and paste? Should be rootnoverify.

OrionOps 12-22-2005 08:08 PM

For the love of... It was a copy and paste that may be the problem I'll try.


All times are GMT -5. The time now is 04:22 PM.