View previous topic :: View next topic |
Author |
Message |
Keiko Tux's lil' helper
Joined: 27 Dec 2005 Posts: 98
|
Posted: Fri Feb 24, 2006 2:28 am Post subject: kernel / booting problems, error 13: [solved] |
|
|
Hia,
This began when i started setting up samba following the how to guide, i reached the point to do a test mount of my first smb share, but i got an error, after looking it up, it meant that smbfs wasn't compiled in my kernel, which was odd, as i compiled it explicitedly myself... hmmm, so i went back double checked and compiled my kernel again, nope, i tried as a module nope...
I got a few people involved and went through it step by step, this time i created a new GrUB entry for a testing kernel and renamed my new bzImage appropriately for this new testing entry, and rebooted to try it... it didn't work, giving an error, i've tried various things includding and fsck reboots, more kernel re-compiles, and i'm rather lost, can anyone help me please, the boot error is as follows:
Booting Gentoo Testing Kernel
root(hd0,6)
Filesystem type is ext2fs, Partition type 0x83
Kernel / gentoo-testing
Error 13: Invalid or unsupportted executeable format.
I appreciate any help you can give, i've looked around the forum, various websites, and as yet havn't found a solutionn and desperately need asistance, it now appears i can't use any re-compiled kernels, and certainly can't get samba running until this is fixed.
Thanks - Keiko
Last edited by Keiko on Fri Feb 24, 2006 11:52 pm; edited 1 time in total |
|
Back to top |
|
|
TheRAt Veteran
Joined: 03 Jun 2002 Posts: 1580
|
Posted: Fri Feb 24, 2006 3:25 am Post subject: |
|
|
The error message you are getting is a grub stage 2 error...
Quote: | Invalid or unsupported executable format
This error is returned if the kernel image being loaded is not recognized as Multiboot or one of the supported native formats (Linux zImage or bzImage, FreeBSD, or NetBSD) |
Can you post your grub.conf, and your partition table (ie. hda1 = winxp, had2 = /, etc...) _________________ All reality is the construct of the observer.
Get Firefox and rediscover the web!
BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it. |
|
Back to top |
|
|
Keiko Tux's lil' helper
Joined: 27 Dec 2005 Posts: 98
|
Posted: Fri Feb 24, 2006 4:06 am Post subject: |
|
|
Hia, thanks for your reply,
My Grub.conf file is:
--------------------------------------------------------------------
# For booting GNU/Linux
title Gentoo-2.6.14-r5
root (hd0,6)
kernel /Gentoo-2.6.14-r5
vga=792
#video vesafb:mtrr,ywrap,1024x768-32@85
#initrd /initrd.img
# For booting Gentoo test kernel
title Gentoo-Testing-Kernel
root (hd0,6)
kernel /Gentoo-testing
vga=792
#video vesafb:mtrr,ywrap,1024x768-32@85
#initrd /initrd.img
# For booting Windows XP
title Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1
# For loading DOS if Windows NT is installed
# chainload /bootsect.dos
-----------------------------------------------------
And my partitions are:
=======================================================
All my partitions are on the same disk, its the only one i have, its a little complex i now, but i havn't had a problem before, i've managed to succesfully re-compile kernels before...
anyways... my partitions are:
======================================================
hda1 - Windows XP, root, NTFS
hda5 - Shared data, FAT32
hda6 - Gentoo, / , reiserFS
hda7 - Gentoo, boot , ex3fs
hda8 - Gentoo, /tmp , ex3fs
hda9 - Gentoo, /var , ex3fs
hda10 - Gentoo, /usr , ex3fs
hda11 - Gentoo, /home, ex3fs
hda12 - Gentoo, Swap , swap
hda13 - Shared Media, FAT32
========================================================
Hope this helps, Thank you
Keiko |
|
Back to top |
|
|
TheRAt Veteran
Joined: 03 Jun 2002 Posts: 1580
|
Posted: Fri Feb 24, 2006 5:41 am Post subject: |
|
|
Are you sure that there is a Gentoo-testing in your /boot partition?
Did you by chance not have the partition mounted when you copied the files across? _________________ All reality is the construct of the observer.
Get Firefox and rediscover the web!
BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it. |
|
Back to top |
|
|
Xaid Guru
Joined: 30 Oct 2004 Posts: 474 Location: Edmonton / Alberta
|
Posted: Fri Feb 24, 2006 5:45 am Post subject: |
|
|
I'm not sure how significant is this, but its worth checking as well. You have the "vga=792" on a line by itself in multiple locations, I think it should be on the same line as the kernel (or it doesn't make a difference?), so something like
Code: |
# For booting GNU/Linux
title Gentoo-2.6.14-r5
root (hd0,6)
kernel /Gentoo-2.6.14-r5 vga=792
|
Edit: now that I re-read your original post, I doubt this is the problem..
Edit2: Also, what does the following return (make sure /boot is mounted):
Code: |
file /boot/Gentoo-testing
|
|
|
Back to top |
|
|
Keiko Tux's lil' helper
Joined: 27 Dec 2005 Posts: 98
|
Posted: Fri Feb 24, 2006 3:11 pm Post subject: |
|
|
Hia, thanks for your repplies:
The RAT, well thats a mistake i could have made, so i got a friend, to talk me through each step, to see if i did something wrong, nope for this at least, /boot was mounted correctly.
and yes i'm sure that the 'Gentoo-testing' kernel is there, i've checked and tripple checked, when i've made that mistake before i've gotten Error 15: File not found.
Xaid, well i dont think its made an impact, certainly my normal kernel boots, maybe the vga option doesn't work on a line by itself, but i'll try it out, it will reduce the clutter of my conf file anyways..
Afer running the command "file /boot/Gentoo-testing" the following was returned:
/boot/Gentoo-testing ASCII English text
Hope this new info helps, thanks again for your response.
Keiko |
|
Back to top |
|
|
Keiko Tux's lil' helper
Joined: 27 Dec 2005 Posts: 98
|
Posted: Fri Feb 24, 2006 3:27 pm Post subject: |
|
|
Update
=======
I have just ran the command "file /boot/Gentoo-2.6.14-r5" (my nomal kernel)
which retunred:
Gentoo-2.6.14-r5: x86 boot sector, so theres deffinatley something wrong with my new kernel file, i just dont know what.
A mailing list, suggested that i run "cat /proc/filesystems" i dont understand the output really, but thought you guy's might be able to diagnose this proble better with it so here it is:
-----------------------------------------------------------------
nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev sockfs
nodev binfmt_misc
nodev usbfs
nodev pipefs
nodev futexfs
nodev tmpfs
nodev inotifyfs
nodev eventpollfs
nodev devpts
reiserfs
ext3
ext2
nodev ramfs
msdos
vfat
iso9660
nodev nfs
nodev nfsd
nodev cifs
ntfs
nodev autofs
udf
nodev mqueue
nodev oprofilefs
nodev rpc_pipefs
--------------------------------------------------------------
It was also reccomended that i change my new GrUB entry, so that it will boot my normal kernel, to make sure the problem wasn't with GrUB, i'm sure it isn't especially after the above command, but i did it anyway, and have successfully managed to boot into my normal kernel via the new GrUB entry.
Hope this helps - Keiko |
|
Back to top |
|
|
TheRAt Veteran
Joined: 03 Jun 2002 Posts: 1580
|
Posted: Fri Feb 24, 2006 9:58 pm Post subject: |
|
|
What steps (commands) are you using to build your new kernel? _________________ All reality is the construct of the observer.
Get Firefox and rediscover the web!
BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it. |
|
Back to top |
|
|
Keiko Tux's lil' helper
Joined: 27 Dec 2005 Posts: 98
|
Posted: Fri Feb 24, 2006 10:12 pm Post subject: |
|
|
Hia,
The usual i believe,
#cd /usr/src/linux
#make menuconfig
- save new configuration file
#make && modules install
#cp arch/i386/boot/bzImage /boot/Gentoo-testing
#cp .config /boot/config-Gentoo-testing |
|
Back to top |
|
|
TheRAt Veteran
Joined: 03 Jun 2002 Posts: 1580
|
Posted: Fri Feb 24, 2006 10:17 pm Post subject: |
|
|
so, what is the output from:
Code: | file /usr/src/linux/arch/i386/boot/bzImage |
_________________ All reality is the construct of the observer.
Get Firefox and rediscover the web!
BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it. |
|
Back to top |
|
|
Keiko Tux's lil' helper
Joined: 27 Dec 2005 Posts: 98
|
Posted: Fri Feb 24, 2006 10:41 pm Post subject: |
|
|
Hia,
This suprised me actually, i got:
/usr/src/linux/arch/i386/boot/bzImage: x86 boot sector
Keiko |
|
Back to top |
|
|
TheRAt Veteran
Joined: 03 Jun 2002 Posts: 1580
|
Posted: Fri Feb 24, 2006 11:08 pm Post subject: |
|
|
It seems then that something strange is happening when you copy the file..
Could you try to copy the file, then run the file command on the destination file?
Post your results... _________________ All reality is the construct of the observer.
Get Firefox and rediscover the web!
BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it. |
|
Back to top |
|
|
Keiko Tux's lil' helper
Joined: 27 Dec 2005 Posts: 98
|
Posted: Fri Feb 24, 2006 11:18 pm Post subject: |
|
|
Hia,
Just copied it over, named it Gentoo-Testing this time (capital T) and ran file, its worked, i'm still not sure why it didn't all those times before,
/usrc/src/linux/arch/i386/boot/bzImage/Gentoo-Testing x86 boot sector
I'm unsure on something though, will this kernel contain smbfs, which is what i tried to add last time, or will i have to run make menuconfig again, then again i guess i should do that anyway just to test hadn't i
Thanks - Keiko |
|
Back to top |
|
|
TheRAt Veteran
Joined: 03 Jun 2002 Posts: 1580
|
Posted: Fri Feb 24, 2006 11:51 pm Post subject: |
|
|
You will need to confirm by taking a look at the kernel configs... _________________ All reality is the construct of the observer.
Get Firefox and rediscover the web!
BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it. |
|
Back to top |
|
|
Keiko Tux's lil' helper
Joined: 27 Dec 2005 Posts: 98
|
Posted: Fri Feb 24, 2006 11:51 pm Post subject: |
|
|
Hia,
I'm delighted to say that its fixed, i still dont know why, but it works, i've now renamed each kernel file, so i boot into my new kernel by default, and as a huge bonus my samba config is working.
Thanks for all your help, i owe you a debt of gratitude.
Keiko |
|
Back to top |
|
|
TheRAt Veteran
Joined: 03 Jun 2002 Posts: 1580
|
Posted: Fri Feb 24, 2006 11:54 pm Post subject: |
|
|
np..
enjoy.. _________________ All reality is the construct of the observer.
Get Firefox and rediscover the web!
BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it. |
|
Back to top |
|
|
|
|
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
|
|