LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-21-2005, 05:38 PM   #1
OrionOps
LQ Newbie
 
Registered: Dec 2005
Posts: 9

Rep: Reputation: 0
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
 
Old 12-21-2005, 06:12 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,674

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

Last edited by michaelk; 12-21-2005 at 06:14 PM.
 
Old 12-21-2005, 11:06 PM   #3
OrionOps
LQ Newbie
 
Registered: Dec 2005
Posts: 9

Original Poster
Rep: Reputation: 0
My device.map file is exactly as you stated. I did everything you said but it still gives me the same error.
 
Old 12-21-2005, 11:15 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
13 is a bit odd - open a terminal and post the output from
Code:
fdisk -l
(that's ell as in list).
 
Old 12-21-2005, 11:20 PM   #5
OrionOps
LQ Newbie
 
Registered: Dec 2005
Posts: 9

Original Poster
Rep: Reputation: 0
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
 
Old 12-22-2005, 01:46 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Dunno - pls list your grub.conf
 
Old 12-22-2005, 09:17 AM   #7
OrionOps
LQ Newbie
 
Registered: Dec 2005
Posts: 9

Original Poster
Rep: Reputation: 0
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
 
Old 12-22-2005, 11:33 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,674

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
Quote:
rootnoverity (hd1,0)
Is this a typo or a copy and paste? Should be rootnoverify.
 
Old 12-22-2005, 08:08 PM   #9
OrionOps
LQ Newbie
 
Registered: Dec 2005
Posts: 9

Original Poster
Rep: Reputation: 0
For the love of... It was a copy and paste that may be the problem I'll try.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
wireless Keyboard not working to select boot options (Grub boot loader) psrini_vasan Fedora 7 12-16-2009 05:45 PM
GRUB boot loader blocking windows boot julienroger Linux - Newbie 3 10-12-2004 01:11 PM
Grub boot loader menu shows two linux boot options pramos Linux - Newbie 3 09-12-2004 11:40 PM
Need help with boot loader. Multi boot questions. Grub? 1993gt40 Linux - Software 1 10-16-2003 08:28 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 07:31 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