LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   My linux kernel boot meet the error "not syncing, Attempted to kill init! exit code=0x0000000b" (https://www.linuxquestions.org/questions/linux-kernel-70/my-linux-kernel-boot-meet-the-error-not-syncing-attempted-to-kill-init-exit-code%3D0x0000000b-4175610787/)

blue_tao 07-28-2017 05:38 AM

My linux kernel boot meet the error "not syncing, Attempted to kill init! exit code=0x0000000b"
 
2 Attachment(s)
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!

!!! 07-28-2017 05:49 AM

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)

hazel 07-28-2017 05:52 AM

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.

blue_tao 07-28-2017 01:52 PM

3 Attachment(s)
Quote:

Originally Posted by !!! (Post 5740953)
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.

blue_tao 07-28-2017 01:58 PM

1 Attachment(s)
Quote:

Originally Posted by hazel (Post 5740954)
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!

!!! 07-28-2017 07:10 PM

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":eek: (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:party:

blue_tao 07-29-2017 12:00 AM

1 Attachment(s)
Quote:

Originally Posted by !!! (Post 5741243)
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":eek: (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:party:

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
}
###############################

blue_tao 07-29-2017 11:07 AM

Quote:

Originally Posted by !!! (Post 5741243)
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":eek: (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:party:

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

sundialsvcs 07-30-2017 01:05 PM

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.

blue_tao 08-16-2017 04:14 AM

Quote:

Originally Posted by sundialsvcs (Post 5741794)
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!

ondoho 11-14-2019 02:13 AM

Quote:

Originally Posted by 哈哈哈233 (Post 6057174)
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...


All times are GMT -5. The time now is 02:41 AM.