View previous topic :: View next topic |
Author |
Message |
damonkohler n00b
Joined: 31 Jan 2005 Posts: 11
|
Posted: Sat Feb 12, 2005 3:48 pm Post subject: GRUB Error 13 |
|
|
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 |
|
|
damonkohler n00b
Joined: 31 Jan 2005 Posts: 11
|
Posted: Sat Feb 12, 2005 4:13 pm Post subject: |
|
|
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 |
|
|
loki99 Advocate
Joined: 10 Oct 2003 Posts: 2056 Location: Vienna, €urope
|
Posted: Sat Feb 12, 2005 6:04 pm Post subject: |
|
|
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 |
|
|
damonkohler n00b
Joined: 31 Jan 2005 Posts: 11
|
Posted: Sat Feb 12, 2005 8:00 pm Post subject: |
|
|
I'll check, but I don't know why a kernel option would have any effect on GRUB? |
|
Back to top |
|
|
damonkohler n00b
Joined: 31 Jan 2005 Posts: 11
|
Posted: Sat Feb 12, 2005 9:15 pm Post subject: |
|
|
I get CONFIG_BINFMT=y, so it's enabled. |
|
Back to top |
|
|
loki99 Advocate
Joined: 10 Oct 2003 Posts: 2056 Location: Vienna, €urope
|
Posted: Sun Feb 13, 2005 12:22 am Post subject: |
|
|
sorry, my mistake! slopy reading! |
|
Back to top |
|
|
slashdevslashtty Tux's lil' helper
Joined: 29 Aug 2004 Posts: 119 Location: 97219
|
Posted: Sun Feb 13, 2005 7:54 am Post subject: |
|
|
What happens if you remove/comment out:
Code: |
root (hd1,0) # Tell GRUB Windows is on /dev/hdb1 (No pretending here)
|
|
|
Back to top |
|
|
syg00 l33t
Joined: 23 Aug 2004 Posts: 907 Location: Brisbane, AUS
|
Posted: Sun Feb 13, 2005 8:59 am Post subject: |
|
|
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 |
|
|
damonkohler n00b
Joined: 31 Jan 2005 Posts: 11
|
Posted: Sun Feb 13, 2005 1:26 pm Post subject: |
|
|
I'll give that a shot. |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Sun Feb 13, 2005 1:32 pm Post subject: |
|
|
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 |
|
|
damonkohler n00b
Joined: 31 Jan 2005 Posts: 11
|
Posted: Sun Feb 13, 2005 1:40 pm Post subject: |
|
|
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 |
|
|
kimchi_sg Advocate
Joined: 26 Nov 2004 Posts: 2969
|
Posted: Sun Feb 13, 2005 2:04 pm Post subject: |
|
|
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 |
|
|
|