LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-28-2017, 05:38 AM   #1
blue_tao
LQ Newbie
 
Registered: Jul 2017
Posts: 9

Rep: Reputation: Disabled
My linux kernel boot meet the error "not syncing, Attempted to kill init! exit code=0x0000000b"


Hi Guys,

I compile one linux kernel, but while I boot it on the VMWare, I meet the panic error.

#########################################################
Freeing unused kernel memory: 1060K
Write protecting the kernel read-only data: 14336K
......
[end Kernel panic-not syncing, Attempted to kill init! exit code=0x0000000b".
************************************************************

Could anyone help me to take a look at this problem?
Thanks!
Attached Thumbnails
Click image for larger version

Name:	1.JPG
Views:	2119
Size:	63.6 KB
ID:	25594   Click image for larger version

Name:	2.JPG
Views:	1576
Size:	96.9 KB
ID:	25595  

Last edited by blue_tao; 07-28-2017 at 02:18 PM. Reason: Update the captured screen
 
Old 07-28-2017, 05:49 AM   #2
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
Welcome to LQ! Can you say more about your .config? (changed/added?) distro?
Might it be this? If not, can you post a picture of panic? And 'more info'
Is it trying to find&mount /? Again, details; try more web-searching and you will see what details! (Without the right/magic few keywords, it's like just the error "Command not found" without essential details, since, although verbose, the above error is generic, unfortunately)

Last edited by !!!; 07-28-2017 at 05:58 AM.
 
Old 07-28-2017, 05:52 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
Not syncing usually happens when the kernel can't read its root device. Are you using an initrd with this kernel? if not, you must build the sata driver and the filesystem driver directly into the kernel, not as modules.
 
1 members found this post helpful.
Old 07-28-2017, 01:52 PM   #4
blue_tao
LQ Newbie
 
Registered: Jul 2017
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by !!! View Post
Welcome to LQ! Can you say more about your .config? (changed/added?) distro?
Might it be this? If not, can you post a picture of panic? And 'more info'
Is it trying to find&mount /? Again, details; try more web-searching and you will see what details! (Without the right/magic few keywords, it's like just the error "Command not found" without essential details, since, although verbose, the above error is generic, unfortunately)
Thanks for you quick reply!

I attach the captured screen and .config file.
Attached Thumbnails
Click image for larger version

Name:	1.JPG
Views:	1420
Size:	63.6 KB
ID:	25590   Click image for larger version

Name:	2.JPG
Views:	1200
Size:	96.9 KB
ID:	25591  
Attached Files
File Type: txt menuconfig.txt (81.9 KB, 365 views)
 
Old 07-28-2017, 01:58 PM   #5
blue_tao
LQ Newbie
 
Registered: Jul 2017
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
Not syncing usually happens when the kernel can't read its root device. Are you using an initrd with this kernel? if not, you must build the sata driver and the filesystem driver directly into the kernel, not as modules.
I didn't use the initrd with my kernel, and SCSI driver and filesystem driver are compiled directly into the kernel.
The .config file is attached, please help me to check it, thanks so much!
Attached Files
File Type: txt menuconfig.txt (81.9 KB, 417 views)
 
1 members found this post helpful.
Old 07-28-2017, 07:10 PM   #6
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
Question VMware: how to capture ALL boot panic msgs AS TEXT??? (.config attached!!!)

Edit: ooops, I see you edit-added screen-shots to #1!!! I'll have a look, but I'm far from expert. Edit2: Looks like msgs between those 2 screenshots are missing web-searching some of the stack, finds mentions of LVM, but I doubt that's it, because it says root sda2 mounted ok!!! (see below: info asked for)

Well, those VMware things look enabled ok. And it sounds like you know this stuff!

Any way you can take a picture/snapshot of (edit:ALL the msgs before) the panic? Could you try running it in VirtualBox? (that would eliminate/implicate VMware) Is it LFS? Where did you get that .config?

Or maybe it's simply something wrong with GRUB spec of root... Or fstab... Can you post/attach those? (edit: no, it mounted sda2=root ok, but what did it say after that, before panic?) VMware version(&logs)?

Excellent that you posted the .config!!! But it's a bit like: here's my .iso: I get "Command not found" (edit: what happened in between?) The grub&fstab might help, but a screenshot (or actual messages, tho I don't know how to capture them as text when booting panics...can anyone else advise here???) is ideal. (VBox has right-ctrl+e, tho msgs may have scrolled off) And IF some generous LQ'er with VMware has ..., they could tryout your .config

Last edited by !!!; 07-28-2017 at 07:48 PM.
 
Old 07-29-2017, 12:00 AM   #7
blue_tao
LQ Newbie
 
Registered: Jul 2017
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by !!! View Post
Edit: ooops, I see you edit-added screen-shots to #1!!! I'll have a look, but I'm far from expert. Edit2: Looks like msgs between those 2 screenshots are missing web-searching some of the stack, finds mentions of LVM, but I doubt that's it, because it says root sda2 mounted ok!!! (see below: info asked for)

Well, those VMware things look enabled ok. And it sounds like you know this stuff!

Any way you can take a picture/snapshot of (edit:ALL the msgs before) the panic? Could you try running it in VirtualBox? (that would eliminate/implicate VMware) Is it LFS? Where did you get that .config?

Or maybe it's simply something wrong with GRUB spec of root... Or fstab... Can you post/attach those? (edit: no, it mounted sda2=root ok, but what did it say after that, before panic?) VMware version(&logs)?

Excellent that you posted the .config!!! But it's a bit like: here's my .iso: I get "Command not found" (edit: what happened in between?) The grub&fstab might help, but a screenshot (or actual messages, tho I don't know how to capture them as text when booting panics...can anyone else advise here???) is ideal. (VBox has right-ctrl+e, tho msgs may have scrolled off) And IF some generous LQ'er with VMware has ..., they could tryout your .config
Hi Sir,

Thanks for your suggestion!
I add one important captured screen besides 1.jpg and 2.jpg, it seems my init program (/bin/bash) meet the segfault error.
So strange, I use the bash source code to install the bash on the root device, why there is segfault error?
Yes, it's LFS. The .config is from the my linux kernel configuration by "make menuconfig" based on default config.

Here is the grub config for my linux kernel. it's very simple.
###############################
menuentry 'Test_Kernel' {
set root='hd0,2'
linux /boot/bzImage root=/dev/sda2 init=/bin/bash ro
}
###############################
Attached Thumbnails
Click image for larger version

Name:	3.JPG
Views:	1218
Size:	67.5 KB
ID:	25599  

Last edited by blue_tao; 07-29-2017 at 12:07 AM.
 
Old 07-29-2017, 11:07 AM   #8
blue_tao
LQ Newbie
 
Registered: Jul 2017
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by !!! View Post
Edit: ooops, I see you edit-added screen-shots to #1!!! I'll have a look, but I'm far from expert. Edit2: Looks like msgs between those 2 screenshots are missing web-searching some of the stack, finds mentions of LVM, but I doubt that's it, because it says root sda2 mounted ok!!! (see below: info asked for)

Well, those VMware things look enabled ok. And it sounds like you know this stuff!

Any way you can take a picture/snapshot of (edit:ALL the msgs before) the panic? Could you try running it in VirtualBox? (that would eliminate/implicate VMware) Is it LFS? Where did you get that .config?

Or maybe it's simply something wrong with GRUB spec of root... Or fstab... Can you post/attach those? (edit: no, it mounted sda2=root ok, but what did it say after that, before panic?) VMware version(&logs)?

Excellent that you posted the .config!!! But it's a bit like: here's my .iso: I get "Command not found" (edit: what happened in between?) The grub&fstab might help, but a screenshot (or actual messages, tho I don't know how to capture them as text when booting panics...can anyone else advise here???) is ideal. (VBox has right-ctrl+e, tho msgs may have scrolled off) And IF some generous LQ'er with VMware has ..., they could tryout your .config
Thanks very much for your tips!

I can boot my kernel successfully. The reason why this panic happens is that my libc-XXX.so has problems.

Best Regards!
Tao
 
Old 07-30-2017, 01:05 PM   #9
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Things to know about this message:
  • init refers to "process #1," which is hand-built by the kernel when it boots, and which must successfully start and thereafter must not die because the system cannot run without it.
  • This message appears in either case. (In this case, probably the former.)
  • "Not syncing" means that the kernel was not in the process of writing data to disk when the system died.

Inability to mount the root filesystem, disk driver issues and so forth can all lead to this message. Error messages immediately preceding the actual panic should point to the root cause.
 
1 members found this post helpful.
Old 08-16-2017, 04:14 AM   #10
blue_tao
LQ Newbie
 
Registered: Jul 2017
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sundialsvcs View Post
Things to know about this message:
  • init refers to "process #1," which is hand-built by the kernel when it boots, and which must successfully start and thereafter must not die because the system cannot run without it.
  • This message appears in either case. (In this case, probably the former.)
  • "Not syncing" means that the kernel was not in the process of writing data to disk when the system died.

Inability to mount the root filesystem, disk driver issues and so forth can all lead to this message. Error messages immediately preceding the actual panic should point to the root cause.
Thanks very much for your information!
 
Old 11-14-2019, 02:13 AM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by 哈哈哈233 View Post
hello,i've also met this problem and it really troubled me a lot.I just install the SSH on my lab server(i hadn't realized the SSH was already installed) and it caused i coundl't access to the server. With this Kernel panic, i've already tried two previous kernels with no effect.And i also tried adding enforing=0 or selinux=0 in GRUB control pannel when i press "e" ,no effect either. I don't want to reisntall the system,since data need to be saved.Besides, i could't not boot it in recovery mode or rescue mode.Could you help me getting through this prblem? Thanks a lot,some pictures are attached.<spam (or filth?) url removed>
post reported..........................................

edit:
no, this is legit. Sorry. OP should consider using a different image uploader...

Last edited by ondoho; 11-14-2019 at 02:19 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b olaoni Linux - Embedded & Single-board computer 9 02-07-2017 11:26 PM
[SOLVED] LFS 7.3 - kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b Luc1f3r Linux From Scratch 9 06-08-2016 02:39 AM
Backtrack 5 R3 error message "kernel panic not syncing- attempted to kill init"? sohilj23 Linux - Software 4 02-08-2014 02:24 PM
PXE Boot Error: "Kernel panic - not syncing: Attempted to kill init!" veeruk101 Linux - Networking 1 07-18-2007 03:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration