Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GRUB Error 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
damonkohler
n00b
n00b


Joined: 31 Jan 2005
Posts: 11

PostPosted: Sat Feb 12, 2005 3:48 pm    Post subject: GRUB Error 13 Reply with quote

I get an error 13 when trying to dual boot my Windows XP drive. I'm using a AMD64 box and two seperate SATA drives. XP is on the second drive but was installed while it was the first hard drive. This is my GRUB conf for XP.

title=Windows XP
map (hd0) (hd1) # Tell the first hard drive to pretend to be the second
map (hd1) (hd0) # Tell the second hard drive to pretend to be the first
root (hd1,0) # Tell GRUB Windows is on /dev/hdb1 (No pretending here)
rootnoverify (hd1,0) # GRUB won't attempt to mount the Windows drive
makeactive # Sets the partition to active
chainloader +1 # Tells GRUB to load the Windows bootloader when done

Seems to work for everyone else, but not me :(
Back to top
View user's profile Send private message
damonkohler
n00b
n00b


Joined: 31 Jan 2005
Posts: 11

PostPosted: Sat Feb 12, 2005 4:13 pm    Post subject: Reply with quote

Done a little more reading in the mean time and I tried chainloader (hd1,0)+1 with no success. No error message, it just displays the chainloader text and a few blank lines before hanging. Any ideas?
Back to top
View user's profile Send private message
loki99
Advocate
Advocate


Joined: 10 Oct 2003
Posts: 2056
Location: Vienna, €urope

PostPosted: Sat Feb 12, 2005 6:04 pm    Post subject: Reply with quote

you seem to have the wrong binary format. did you compile your kernel with ELF support?

what does
Code:
cat /boot/config-2.6.x.x | grep CONFIG_BINFMT
tell you?

(config-2.6.x.x should state your current kernel version, of course)


Last edited by loki99 on Sat Feb 12, 2005 8:09 pm; edited 2 times in total
Back to top
View user's profile Send private message
damonkohler
n00b
n00b


Joined: 31 Jan 2005
Posts: 11

PostPosted: Sat Feb 12, 2005 8:00 pm    Post subject: Reply with quote

I'll check, but I don't know why a kernel option would have any effect on GRUB?
Back to top
View user's profile Send private message
damonkohler
n00b
n00b


Joined: 31 Jan 2005
Posts: 11

PostPosted: Sat Feb 12, 2005 9:15 pm    Post subject: Reply with quote

I get CONFIG_BINFMT=y, so it's enabled.
Back to top
View user's profile Send private message
loki99
Advocate
Advocate


Joined: 10 Oct 2003
Posts: 2056
Location: Vienna, €urope

PostPosted: Sun Feb 13, 2005 12:22 am    Post subject: Reply with quote

sorry, my mistake! slopy reading! :oops:
Back to top
View user's profile Send private message
slashdevslashtty
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2004
Posts: 119
Location: 97219

PostPosted: Sun Feb 13, 2005 7:54 am    Post subject: Reply with quote

What happens if you remove/comment out:
Code:

root (hd1,0) # Tell GRUB Windows is on /dev/hdb1 (No pretending here)
Back to top
View user's profile Send private message
syg00
l33t
l33t


Joined: 23 Aug 2004
Posts: 907
Location: Brisbane, AUS

PostPosted: Sun Feb 13, 2005 8:59 am    Post subject: Reply with quote

No, you need the root statement.
Any chance of a "mickey mouse" set-up partiton on that drive ???.
Try root(hd1,1)
Back to top
View user's profile Send private message
damonkohler
n00b
n00b


Joined: 31 Jan 2005
Posts: 11

PostPosted: Sun Feb 13, 2005 1:26 pm    Post subject: Reply with quote

I'll give that a shot.
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Sun Feb 13, 2005 1:32 pm    Post subject: Reply with quote

Try removing rootnoverify (hd1,0). You only need rootnoverify or root, so see if removing either makes any difference.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
damonkohler
n00b
n00b


Joined: 31 Jan 2005
Posts: 11

PostPosted: Sun Feb 13, 2005 1:40 pm    Post subject: Reply with quote

Actually, it looks like the problem was with my copying it over from this computer.

I assumed that:

map(hd0)(hd1)

Was the same as:

map (hd0) (hd1)

Whitespace matters. Only figured this out after making some of the changes you all suggested and it changed the error from 13 to 11. Then I noticed that you could edit the conf file from within GRUB to experiment and finally got it.

The final working config is:

map (hd0) (hd1)
map (hd1) (hd0)
root (hd1,0)
rootnoverify (hd1,0)
makeactive
chainloader (hd1,0)+1

Whether or not you can delete some of that, I'm not sure. But it would be easy enough to experiment with the GRUB editor :)

Thanks!
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2969

PostPosted: Sun Feb 13, 2005 2:04 pm    Post subject: Reply with quote

damonkohler wrote:
The final working config is:

Code:
map (hd0) (hd1)
map (hd1) (hd0)
root (hd1,0)
rootnoverify (hd1,0)
makeactive
chainloader (hd1,0)+1


Thanks!

Please insert [SOLVED] into the title of your first post in this topic.

Also, please use [code] ... [/code] to enclose the contents of files, for example: [code] this is the output of grub.conf [/code]
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