Results 1 to 10 of 11
Hi all,
I want to build and boot an own kernel (v.2.6.39.4). But i got an kernel panic while booting the new kernel:
Code:
Failed to execute /bin/bash. Attempting defaults
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-07-2011 #1Just Joined!
- Join Date
- Aug 2011
- Posts
- 5
Kernel panic
Hi all,
I want to build and boot an own kernel (v.2.6.39.4). But i got an kernel panic while booting the new kernel:
Can anyone help me out?Code:Failed to execute /bin/bash. Attempting defaults Kernel panic - not syncing: No init found. Try passing init= option to kernel. See linux documentation/init.txt for guidance Pid: 1, comm: swapper Not tainted 3.0.0 #1
Last edited by sentmen; 08-07-2011 at 01:10 PM. Reason: kernel version
- 08-08-2011 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,233
1. What was the old kernel?
2. How did you build and install the new kernel?Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 08-09-2011 #3Just Joined!
- Join Date
- Aug 2011
- Posts
- 5
- 08-09-2011 #4
- 08-09-2011 #5Just Joined!
- Join Date
- Aug 2011
- Posts
- 5
Sometimes if i look at the screen i get with some files errors (or warnings) but it don't stop with compiling. I tried it on more devices. And also in an virtual machine. I tried ubuntu and debian. The exact steps including what i used in the menuconfig?
- 08-09-2011 #6Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,233
Your problem is not likely due to changes made with menuconfig, but how you built and installed the kernel. IE:
make menuconfig
make
make headers_install
make modules_install
make install
and any errors (warnings are not at issue at this point) you got while doing the above.Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 08-09-2011 #7Just Joined!
- Join Date
- Jul 2011
- Posts
- 16
In your case the kernel is booted up normally, I think it is not able to mount the root file system correctly, where the init executable file is stored. Do one thing, boot up the system with the working kernel and use mount command to find out which is the root file system. The one which is mounted on /. Say, for example, that is /dev/sda2. While booting the system with new kernel specify /dev/sda2 as root file system partion, using the root option at grup menu.
Last edited by oz; 08-09-2011 at 03:37 PM. Reason: removed spam redirect
- 08-09-2011 #8Just Joined!
- Join Date
- Aug 2011
- Posts
- 5
- 08-10-2011 #9Linux Guru
- Join Date
- Oct 2007
- Location
- Tucson AZ
- Posts
- 2,563
Your original post shows "No init found". Your grub menuentry has no initrd line. That's the problem. Do you have an initrd file on sdb1.
I don't really know the solution, maybe re-read the tutorial you used?
- 08-10-2011 #10Just Joined!
- Join Date
- Aug 2011
- Posts
- 5


Reply With Quote

