Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help w/ grub errors.. (22 & 13)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
seaninseattle
n00b
n00b


Joined: 24 Aug 2007
Posts: 4
Location: Seattle, WA

PostPosted: Sun Aug 26, 2007 8:20 pm    Post subject: Help w/ grub errors.. (22 & 13) Reply with quote

So, I've got an actual error msg now: 13 on the WinXP Pro boot attempt, and then error # 22 when at.

I have dual SATA 120gb drives in my laptop. I have a HP Pavillion dv9428nr laptop.

Here's the fdisk -l sd*

Table for /dev/SDA

/dev/sda1 - Bootable - 1..40 - 321268+ Blocks - ID 83 - Linux
/dev/sda2 - not bootable - 40..500 - 3694950 Blocks - ID 82 - Linux Swap / Solaris
/dev/sda3 - not bootable - 500..14593 - 113202022 Blocks - ID 83 - Linux

Table for /dev/SDB

/dev/sdb1 - not bootable - 1..14592 - 117210208+ Blocks - ID 7 - NTFS



Here's my Grub.conf file:

timeout 10
default 0
fallback 1

title=Gentoo
kernel (hd0,0)/boot/kernel-2.6.19-gentoo-r5
root (hd0,3)

title=Windows XP Pro
rootnoverify (hd1,0)
chainloader +1

------------------

So, the windows boot attempt is giving an error # 13 saying invalid or unsupported executable format. The linux boot attempt reported error # 22 saying no such partition.

I'm not sure what I should do. Any help would be appreciated.
_________________
-- so
Back to top
View user's profile Send private message
Rob1n
l33t
l33t


Joined: 29 Nov 2003
Posts: 714
Location: Cambridge, UK

PostPosted: Sun Aug 26, 2007 8:37 pm    Post subject: Reply with quote

Your windows probably needs to be a bootable partition, and your linux setup is wrong. You're getting confused between what grub sets as a root device and what the kernel sets as a root device. The root device for grub is where it expects to start looking for its files - hd0,0 in your case. The kernel root device needs to be passed in as a parameter using the standard linux format, so /dev/sda3. Try:

Code:

timeout 10
default 0
fallback 1

title=Gentoo
root (hd0,0)
kernel (hd0,0)/boot/kernel-2.6.19-gentoo-r5 root=/dev/sda3

title=Windows XP Pro
rootnoverify (hd1,0)
chainloader +1
makeactive
Back to top
View user's profile Send private message
seaninseattle
n00b
n00b


Joined: 24 Aug 2007
Posts: 4
Location: Seattle, WA

PostPosted: Sun Aug 26, 2007 8:50 pm    Post subject: Reply with quote

So, I switched the windows partition to bootable, and made the edits to the grub.conf file... and got an Error 11: unrecognized device string. The windows partition is still giving an error 13, unrecognized executable format.
_________________
-- so
Back to top
View user's profile Send private message
ptero
Apprentice
Apprentice


Joined: 02 Mar 2007
Posts: 164

PostPosted: Sun Aug 26, 2007 9:51 pm    Post subject: Reply with quote

err... you don't need the (hd0,0) after kernel. try to remove it and look what will happen.
as for windows... i always saw (and put) makeactive before chainloader +1. i don't know if it matters (probably not), but you can try to do it that way.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum