View previous topic :: View next topic |
Author |
Message |
pratbrat n00b
Joined: 10 Apr 2005 Posts: 30 Location: Toronto
|
Posted: Thu Sep 22, 2005 5:26 am Post subject: Cannot dual-boot into Gentoo. Kernel image not Multiboot. |
|
|
Hi all.
Having some issues dual booting into my Gentoo installation.
Grub gives the following error:
Code: | grub> kernel /vmlinuz-2.6.12-gentoo-r9
grub error 13: invalid or unsupported executable format |
I was able to boot into Gentoo initially without any problems. I admit I was mucking around with the kernel in ways I shouldn't have.
After a little research on google, I decided to check the multiboot functionality of the kernel using mbchk. It returned the following message:
Code: | #mbchk /boot/vmlinuz-2.6.12-gentoo-r9
/boot/vmlinuz-2.6.12-gentoo-r9: No Multiboot header |
Could this be the issue? If it is, how do I add the multiboot header?
I have run:
Code: | #make && make modules_install && make install |
I have also tried copying the bzImage /boot manually. Same issue.
Any and all help is much appreciated. Cheers. |
|
Back to top |
|
|
oumpah-pah Guru
Joined: 18 Jul 2004 Posts: 575 Location: Lausanne, Switzerland
|
Posted: Thu Sep 22, 2005 8:59 am Post subject: |
|
|
Are you sure your boot partition was mounted when you copied your kernel? |
|
Back to top |
|
|
pratbrat n00b
Joined: 10 Apr 2005 Posts: 30 Location: Toronto
|
Posted: Thu Sep 22, 2005 10:33 am Post subject: |
|
|
It should be. My Gentoo install is on hdc5, my boot on hdc0 and FC4 on hdc2. /dev/hdc5 has my Gentoo / and /boot. As you may have guessed, I have an extended partition /dev/hdc4. Swap is /dev/hdc3.
My /etc/fstab (more or less; booted in FC4 at the moment, writing from recollection):
Code: |
/dev/hdc5 /boot reiserfs notail 0 1
/dev/hdc5 / reiserfs notail 0 1
/dev/shm /dev/shm tmpfs 0 0
/dev/proc /proc proc defaults 0 0
/dev/sys /sys sysfs defaults 0 0
/dev/hdb /media/cdrecorder auto exec,noauto 0 0
|
I wonder if repeating the mount and dump options for /boot is necessary in /etc/fstab. I would assume /boot would inherit these options from / as it is. As long as the redundancy does not affect anything, I do not see any harm done. Would anyone care to comment on that? |
|
Back to top |
|
|
kimchi_sg Advocate
Joined: 26 Nov 2004 Posts: 2969
|
Posted: Thu Sep 22, 2005 10:43 am Post subject: |
|
|
pratbrat wrote: | Code: | /dev/hdc5 /boot reiserfs notail 0 1
/dev/hdc5 / reiserfs notail 0 1 |
|
Repeating the same partition on different lines in /etc/fstab is a big, red no-no.
The / line will be sufficient. |
|
Back to top |
|
|
pratbrat n00b
Joined: 10 Apr 2005 Posts: 30 Location: Toronto
|
Posted: Thu Sep 22, 2005 10:06 pm Post subject: |
|
|
Ok. Made the appropriate changes in /etc/fstab.
And that has not resolved the booting issue. And as I mentioned earlier, I was able to boot into Gentoo previously.
Any other suggestions would be appreciated. |
|
Back to top |
|
|
|