Kernel panic not syncing attempted to kill init exitcode 0x00007f00 как исправить

Asked
7 years, 5 months ago

Viewed
28k times

While I was upgrading to Ubuntu 15 (the development version), my system crashed. After I restarted the laptop, I saw a kernel panic. I also did a memtestx86 which didn’t find any error.

Screenshot of error message

more info :

Before doing upgrade i have changed my default desktop to gnome which by entering wrong commands i lost some packages .to revert the previous desktop i removed all the packages and then installed them then i face that some packages weren’t still installed . after i run terminal and started to upgrade ( i found it good to troubleshot the problem by upgrading somehow ) however after crash i got that screen by the way i have faced another screen after this one which backed to the first again

asked Dec 5, 2015 at 19:44

Artnect's user avatar

ArtnectArtnect

1431 gold badge2 silver badges8 bronze badges

2

This is not «memory issues or BIOS stuff» at all. The panic screen — which you have not transcribed in full in your question but really should so that the text will be indexed and people will find it in the future — says Comm: sh. That, plus the knowledge that this is the panic screen that results when process #1 exits with status code 127, tells us that you booted with init=/bin/sh, or that this is an init shell script that is provided in an initramfs.

In the former case, you explicitly did something to cause the shell to exit. In the latter case, something aborted within the shell script, which would have most likely printed an error message that has unfortunately scrolled off the screen.

You need to find out what that error is. Without it, you cannot diagnose this problem, as it could be any one of a number of very different things. Here are just some of the various possibilities:

  • kernel panic error in ubuntu 12.10 —
    /bin/sh: error while loading shared libraries:libc.so.6 cannot open shared object file:no such file or directory
  • https://bbs.archlinux.org/viewtopic.php?id=159565 —
    /bin/sh: nodevfs: No such file or directory
  • https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1421117 —
    /init: line 325: chroot: not found
    /bin/sh: 0: Can't open splash
  • https://unix.stackexchange.com/questions/244750/ —
    Targeted filesystem doesn't have requested /sbin/init.

Booting with a serial console (that can scroll back or display more than the 24 lines that your laptop’s console does) attached is one way to find this out. Persuading the boot loader to switch the screen into, say, 50 line mode would be another.

Further reading

  • https://unix.stackexchange.com/a/195978/5132
  • https://unix.stackexchange.com/a/197472/5132

Community's user avatar

answered Dec 6, 2015 at 12:09

JdeBP's user avatar

JdeBPJdeBP

3,92224 silver badges38 bronze badges

3

I was trying to update libc in our Ubuntu server but it failed and now when I reboot the server I get a error message:

Kernel panic — not syncing — Attempted to kill init!

and it just hangs.

What is the solution to this problem? The server is used by 10 people so I don’t want to reinstall erasing their data.

RzR's user avatar

RzR

3,05028 silver badges26 bronze badges

asked Oct 12, 2012 at 21:50

Slayer's user avatar

6

if the full message is:

kernel panic - not syncing: Attempted to kill inint !
PId: 1, comm: init not tainted 2.6.32.-279-5.2.e16.x86_64 #1

then you should have disabled selinux and after that you have rebooted the system.

The easier way is to use a live OS and re-enable it

vim /etc/selinux/config
    ...
    SELINUX=enforcing
    ...

Second choice is to disable selinux in the kernel arguments by adding selinux=0

vim /boot/grub/grub.conf
    ...
    kernel /boot/vmlinuz-2.4.20-selinux-2003040709 ro root=/dev/hda1 nousb selinux=0
    ...

source kernel panic — not syncing: Attempted to kill inint !

Henry Ecker's user avatar

Henry Ecker

34k18 gold badges37 silver badges55 bronze badges

answered Nov 7, 2013 at 15:07

gustavodiazjaimes's user avatar

3

  1. Mount the centos live cd and boot
  2. Go into rescue mode and wait for it load up
  3. Read the terminal to see where it mounted the OS
  4. Go into OS
  5. vim or nano /etc/selinux/config
  6. Make sure SELINUX=enforcing or disabled

answered Apr 18, 2014 at 6:42

Michael Mikhjian's user avatar

Michael MikhjianMichael Mikhjian

2,7324 gold badges35 silver badges51 bronze badges

Solution is :-

  1. Restart
  2. Go to advanced menu and then click on ‘e'(edit the boot parameters)
  3. Go down to the line which starts with linux and press End
  4. Press space
  5. Add the following at the end -> kernel.panic=1
  6. Press F10 to restart

This basically forces your PC to restart because by default it does not restart after a kernel panic.

answered Mar 1, 2016 at 7:04

Pranshu's user avatar

3

Booting from CD to rescue the installation and editing /etc/selinux/config: changed SELINUX from enforcing to permissive. Rebooted and system booted

/etc/selinux/config before change:

SELINUX=enforcing and SELINUXTYPE=permissive

/etc/selinux/config after change:
SELINUX=permissive and SELINUXTYPE=permissive

cubbuk's user avatar

cubbuk

7,7904 gold badges35 silver badges62 bronze badges

answered Dec 10, 2014 at 14:27

Foued GR.'s user avatar

I just came across this problem when I replaced a failing disk. I had copied over the system files to the new disk, and was good about replacing the old disk’s UUID entry with the new disk’s UUID in fstab.

However I had not replaced the UUID in the grub.conf (sometimes menu.lst) file in /boot/grub. So check your grub.conf file, and if the «kernel» line has something like

kernel ... root=UUID=906eaa97-f66a-4d39-a39d-5091c7095987 

it likely has the old disk’s UUID. Replace it with the new disk’s UUID and run grub-install (if you’re in a live CD rescue you may need to chroot or specify the grub directory).

answered Apr 27, 2015 at 1:01

Ethan Brown's user avatar

Ethan BrownEthan Brown

6836 silver badges11 bronze badges

Mount remount the /
Eg.

  1. mount -o remount,rw /dev/xyz /
  2. sed -i 's/1 1/0 0/' /etc/fstab
  3. sed -i 's/1 2/0 0/' /etc/fstab
  4. reboot

benka's user avatar

benka

4,72235 gold badges47 silver badges58 bronze badges

answered Aug 17, 2015 at 16:41

Kuldeep patil's user avatar

At grub screen goto boot in recovery.

As booting hold ESC

It should take you into a gui menu. Open command and fix selinux.

Also I suggest run the clean broken packages

answered Jul 25, 2016 at 0:02

Adam Micheal Lee Barnhart's user avatar

1

The kernel panic is a bit of a red herring here, as it’s a consequence of a previous error. In your screenshot, the first abnormal boot message is:

/sbin/init: error while loading shared libraries: libselinux.so.1: cannot open shared object file: No such file or directory

So it looks like the file libselinux.so.1 is now missing.

According to Ubuntu package search engine,libselinux.so.1 is in package libselinux1 and the file should be located at /lib/x86_64-linux-gnu/libselinux.so.1.

(The Hardware name: line in your screenshot and the presence of do_syscall_64 and Rxx register names in the call trace tell me that you are using the 64-bit x86 version of Ubuntu, so the «Architecture» of any package you’ll need to download will need to be amd64.)

You should download that package to some media you can use together with the recovery boot media, perform steps 1, 2 and 3 of the instructions you already found to gain access to the root filesystem of the damaged Ubuntu installation:

<boot using external media>
mount /path/to/disk /mnt
mount --rbind /proc /mnt/proc
mount --rbind /sys /mnt/sys
mount --rbind /dev /mnt/dev

Then reinstall the package that contains the missing/damaged library to the installation that is currently mounted at /mnt:

dpkg --root=/mnt -i <path to the package>/libselinux1_3.0-1build2_amd64.deb

Obviously, replace <path to the package> to the actual path to where you have the downloaded libselinux1_3.0-1build2_amd64.deb file.

Then see if you can now successfully use the mount command of the damaged installation:

chroot /mnt mount -a

If that results in another error message about a different missing library, use the «Search the contents of packages» section of the package search page to find the package containing that library, then download and reinstall it in the same way.

(If you find that a large number of libraries have been damaged, this can become rather tedious. In that case, you might consider backing up your home directory and /mnt/etc and reinstalling. Your home directory will now be under /mnt/home if you have all on a single filesystem; otherwise see /mnt/etc/fstab to figure out which filesystem you’ll need to mount in order to gain access to your home directory.)

If the chrooted mount -a command is successful, you can use chroot /mnt to enter the chroot environment and then rebuild the initramfs of the latest kernel:

update-initramfs -u -k 5.13.0-30-generic

Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

Hermis_hb

Level 1
Level 1
Posts: 7
Joined: Sat Jun 29, 2019 9:34 am

Kernel panic — not syncing: Attempted to kill init! exitcode=0x00007f00

Hello,

I get a Kernel Panic sometimes during shutdown of my PC.

Kernel panic — not syncing: Attempted to kill init! exitcode=0x00007f00
Image

Can you guide me through this?

Thank you in advance.

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.

Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

User avatar

SMG

Level 24
Level 24
Posts: 23490
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Kernel panic — not syncing: Attempted to kill init! exitcode=0x00007f00

Post

by SMG » Tue Dec 08, 2020 11:29 pm

Please give us information about your install by entering this command in a terminal:

Select </> from the mini toolbar above the textbox where you type your reply and enclose the results of the command between the code markers [code]Results[/code]. This will let us know how Mint sees your hardware.

Also, your image is not showing.

Image
A woman typing on a laptop with LM20.3 Cinnamon.

Hermis_hb

Level 1
Level 1
Posts: 7
Joined: Sat Jun 29, 2019 9:34 am

Re: Kernel panic — not syncing: Attempted to kill init! exitcode=0x00007f00

Post

by Hermis_hb » Wed Dec 09, 2020 1:11 pm

Hello SMG,
Thank you for your help.

Here is what you asked!

Code: Select all

System:
  Kernel: 5.4.0-56-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 
  Desktop: Cinnamon 4.6.7 wm: muffin 4.6.3 dm: LightDM 1.30.0 
  Distro: Linux Mint 20 Ulyana base: Ubuntu 20.04 focal 
Machine:
  Type: Desktop Mobo: Gigabyte model: G31M-S2L v: x.x serial: <filter> 
  BIOS: Award v: F3 date: 11/20/2007 
CPU:
  Topology: Dual Core model: Intel Core2 Duo E6750 bits: 64 type: MCP 
  arch: Core Merom rev: B L2 cache: 4096 KiB 
  flags: lm nx pae sse sse2 sse3 ssse3 vmx bogomips: 10667 
  Speed: 2000 MHz min/max: 2000/2667 MHz Core speeds (MHz): 1: 2000 2: 2000 
Graphics:
  Device-1: AMD Redwood XT [Radeon HD 5670/5690/5730] 
  vendor: PC Partner Limited driver: radeon v: kernel bus ID: 01:00.0 
  chip ID: 1002:68d8 
  Display: x11 server: X.Org 1.20.8 driver: ati,radeon 
  unloaded: fbdev,modesetting,vesa resolution: 1920x1080~60Hz 
  OpenGL: renderer: AMD REDWOOD (DRM 2.50.0 / 5.4.0-56-generic LLVM 10.0.0) 
  v: 3.3 Mesa 20.0.8 compat-v: 3.1 direct render: Yes 
Audio:
  Device-1: Intel NM10/ICH7 Family High Definition Audio 
  vendor: Gigabyte GA-D525TUD driver: snd_hda_intel v: kernel 
  bus ID: 00:1b.0 chip ID: 8086:27d8 
  Device-2: AMD Redwood HDMI Audio [Radeon HD 5000 Series] 
  vendor: PC Partner Limited driver: snd_hda_intel v: kernel bus ID: 01:00.1 
  chip ID: 1002:aa60 
  Sound Server: ALSA v: k5.4.0-56-generic 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Gigabyte driver: r8169 v: kernel port: d000 bus ID: 03:00.0 
  chip ID: 10ec:8168 
  IF: enp3s0 state: up speed: 100 Mbps duplex: full mac: <filter> 
Drives:
  Local Storage: total: 149.05 GiB used: 49.75 GiB (33.4%) 
  ID-1: /dev/sda vendor: Samsung model: HD161HJ size: 149.05 GiB 
  speed: <unknown> serial: <filter> rev: 0-19 scheme: MBR 
Partition:
  ID-1: / size: 145.21 GiB used: 49.75 GiB (34.3%) fs: ext4 dev: /dev/sda5 
Sensors:
  System Temperatures: cpu: 37.0 C mobo: N/A gpu: radeon temp: 44 C 
  Fan Speeds (RPM): N/A 
Repos:
  No active apt repos in: /etc/apt/sources.list 
  Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
  1: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
  1: deb http://ftp.cc.uoc.gr/mirrors/linux/linuxmint/packages ulyana main upstream import backport
  2: deb http://ftp.cc.uoc.gr/mirrors/linux/ubuntu/packages focal main restricted universe multiverse
  3: deb http://ftp.cc.uoc.gr/mirrors/linux/ubuntu/packages focal-updates main restricted universe multiverse
  4: deb http://ftp.cc.uoc.gr/mirrors/linux/ubuntu/packages focal-backports main restricted universe multiverse
  5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
  6: deb http://archive.canonical.com/ubuntu/ focal partner
Info:
  Processes: 194 Uptime: 7m Memory: 2.92 GiB used: 1.29 GiB (44.3%) 
  Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Shell: bash 
  v: 5.0.17 running in: gnome-terminal inxi: 3.0.38 

I hope that’s more helpful.

I tried to upload a photo of the screen during that Kernel Panic several times but I couldn’t.

Please bear in mind that this happens sometimes, not always, during the shutdown process.

Thanks again mate!

User avatar

SMG

Level 24
Level 24
Posts: 23490
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Kernel panic — not syncing: Attempted to kill init! exitcode=0x00007f00

Post

by SMG » Wed Dec 09, 2020 7:55 pm

I assume the process does eventually shut down even though you see a kernel panic? Or are you having to kill the power for it to shut down?

I didn’t see anything in your hardware which might indicate a problem. The fact that it does not happen all the time may make it harder to tract down, but checking the log files may give a clue as to what the source might be.

You will want to get a copy of the log for a boot cycle which ended with the kernel panic. You can do that after you boot up the next time with the following:

Code: Select all

journalctl -b -1 | tee >(gzip --stdout > journalctl_$USER.gz)

This command will write the prior system log to the file journalctl_(yourname).gz and to your screen. The file will be located in your /home/login_name directory. The file will contain the entire boot cycle from start-up through shutdown, so you will probably want to start at the end of the file and then go back to the point of the panic and see what happened before it.

The -b -1 part tells it to not use the current boot cycle, but to go back to the prior one.

Image
A woman typing on a laptop with LM20.3 Cinnamon.

Hermis_hb

Level 1
Level 1
Posts: 7
Joined: Sat Jun 29, 2019 9:34 am

Re: Kernel panic — not syncing: Attempted to kill init! exitcode=0x00007f00

Post

by Hermis_hb » Fri Dec 11, 2020 6:42 am

Hello again SMG,

Thank you for your time.

The PC stacks on the Kernel Panic screen and nothing happens afterwards. I have to force the shutdown by keeping pressed the power button.

Shall I do this after the next kernel Panic or can I do that now?
So far there is no other kernel Panic.

Someone recommended me to go jump to LMDE 4. Does it worth it? Should I go back LM 19.3?

Another problem I face is that I cannot see the local Windows machines and Server but I can see my Linux Mint 19.3 laptop and the laptop can see both the server and Windows machines.

Do you think that all these problems can be solved by moving back either to LMDE 4 or LM 19.3?

Thank again!

Last edited by Hermis_hb on Fri Dec 11, 2020 12:47 pm, edited 1 time in total.

johnwgpaton

Level 1
Level 1
Posts: 16
Joined: Thu Jan 17, 2013 5:56 pm

Re: Kernel panic — not syncing: Attempted to kill init! exitcode=0x00007f00

Post

by johnwgpaton » Fri Dec 11, 2020 7:09 am

I have been experiencing the same intermittent problem. Sometimes the shutdown process simply hangs at the ‘washing machine’ screen, sometimes I see the kernel panic screen and sometimes it all shuts down properly. This has only started happening since I upgraded to Mint 20. I am running Mint 20 Ulyana on a 64 bit dual core Dell Inspiron desktop.

I also have a Packard Bell, 64 bit, dual core laptop which has NEVER shut down properly since Mint 16 (I think) but which did shut down properly on prior versions.

Is there an error in the grub process or in the kernel itself which is causing these problems?

User avatar

SMG

Level 24
Level 24
Posts: 23490
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Kernel panic — not syncing: Attempted to kill init! exitcode=0x00007f00

Post

by SMG » Fri Dec 11, 2020 12:37 pm

johnwgpaton wrote: ⤴Fri Dec 11, 2020 7:09 am
I have been experiencing the same intermittent problem. Sometimes the shutdown process simply hangs at the ‘washing machine’ screen, sometimes I see the kernel panic screen and sometimes it all shuts down properly. This has only started happening since I upgraded to Mint 20. I am running Mint 20 Ulyana on a 64 bit dual core Dell Inspiron desktop.

I also have a Packard Bell, 64 bit, dual core laptop which has NEVER shut down properly since Mint 16 (I think) but which did shut down properly on prior versions.

Is there an error in the grub process or in the kernel itself which is causing these problems?

You have different hardware, so please follow forum rules and create your own thread for your issues. In that thread, make sure to supply the information requested in Section 5 of READ: How To Get Help!.

Image
A woman typing on a laptop with LM20.3 Cinnamon.

User avatar

SMG

Level 24
Level 24
Posts: 23490
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Kernel panic — not syncing: Attempted to kill init! exitcode=0x00007f00

Post

by SMG » Fri Dec 11, 2020 12:52 pm

Hermis_hb wrote: ⤴Fri Dec 11, 2020 6:42 amThe PC stacks on the Kernel Panic screen and nothing happens afterwards. I have to force the shutdown by keeping pressed the power button.

Shall I do this after the next kernel Panic or can I do that now?

If a panic happened recently then we could probably do this now. We would just need to get an idea of when it happened so we are looking at the correct timeframe. Am I correct to assume you see the word «panic» on the screen when this happens? Let me know and I’ll make another post on how we can get to the log information that relates to the kernel panic.

Hermis_hb wrote: ⤴Fri Dec 11, 2020 6:42 amSo far there is no other kernel Panic.

In another thread a person was having issues where the laptop would reboot instead of shutting down, but it would only do it sometimes. Turns out it would happen when a certain dock was connected to the laptop. I do not know if there are different pieces of hardware that you attach to your computer that might be why sometimes this happens and other times it does not. That is something to consider until we get a chance to look at the logs.

Hermis_hb wrote: ⤴Fri Dec 11, 2020 6:42 amSomeone recommended me to go jump to LMDE 4. Does it worth it? Should I go back LM 19.3?

I do not know the reason for those recommendations unless someone thinks an older kernel might work better on your older hardware. Because we do not yet know the source of the problem, there is no way to know if that would be better.

Hermis_hb wrote: ⤴Fri Dec 11, 2020 6:42 amAnother problem I face is that I cannot see the local Windows machines and Server but I can see my Linux Mint 19.3 laptop and the laptop can both see the server and Windows machines.

That is a different issue and you should make a separate thread for it.

Image
A woman typing on a laptop with LM20.3 Cinnamon.

User avatar

SMG

Level 24
Level 24
Posts: 23490
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Kernel panic — not syncing: Attempted to kill init! exitcode=0x00007f00

Post

by SMG » Fri Dec 11, 2020 1:17 pm

If you saw the word «panic», we can search the logs for it now. However, we may have to do a couple of searches to find the information leading up to the panic.

Code: Select all

journalctl | grep -i "panic" | tee >(gzip --stdout > journalctl_$USER.gz)

This command will write any logged issues relating to panic to the file journalctl_(yourname).gz and to your screen. The file will be located in your /home/login_name directory.

If the results are not very long, you can post them within code tags in your next replay. If they are long, just attach the file to your next post.

Image
A woman typing on a laptop with LM20.3 Cinnamon.

User avatar

SMG

Level 24
Level 24
Posts: 23490
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Kernel panic — not syncing: Attempted to kill init! exitcode=0x00007f00

Post

by SMG » Fri Dec 11, 2020 2:21 pm

Hermis_hb wrote: ⤴Fri Dec 11, 2020 2:07 pm
I’ve done but the txt file is empty.

I try again when panic is happens.

Thank you again mate.

Try it again, only this time use exitcode instead of panic. You did list the word exitcode in your title. I thought a kernel panic listed the word panic in the log line, but it’s possible I am wrong.

It is also possible it has been a while since it happened and those older log messages rolled off what is being saved.

Image
A woman typing on a laptop with LM20.3 Cinnamon.

  • Home
  • Forum
  • The Ubuntu Forum Community
  • Ubuntu Official Flavours Support
  • General Help
  • [ubuntu] Kernel panic — not syncing: Attempted to kill init! exitcode=0x00007f00

  1. Exclamation Kernel panic — not syncing: Attempted to kill init! exitcode=0x00007f00

    Good afternoon,

    I am encountering the following error when trying to boot Ubuntu:

    Code:

    Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00

    It initially required a manual fsck, but after performing it and restarting, I get the message above, none of the kernels can be booted, not even recovery, full pic:

    View post on imgur.com

    I am running out of ideas, what went wrong and how can I recover it please?

    Thanks a lot.


  2. Re: Kernel panic — not syncing: Attempted to kill init! exitcode=0x00007f00

    z3132; Hello — Welcome to the forum

    Hardware issues ?

    What results when you boot up a liveUSB/DVD ?

    If good in the live environment — well maybe next is to look at the boot code on the hard drive.


  3. Re: Kernel panic — not syncing: Attempted to kill init! exitcode=0x00007f00

    Booting from liveusb works fine. How can I do that and cannot the kernel be repaired using chroot?


  4. Re: Kernel panic — not syncing: Attempted to kill init! exitcode=0x00007f00

    Quote Originally Posted by z3132
    View Post

    Booting from liveusb works fine. How can I do that and cannot the kernel be repaired using chroot?

    Check this out if you can’t get boot-repair to work…..https://ubuntuforums.org/showthread….5#post13932625

    Tony.

    Asus Z270i7 16gb rm 8tb GT1660 Haupp Quad tunr Kubuntu Jammy/Win 11 Be/FE mythtv 0.32Homerun dual netwk tunr 55� Smsng QN95B55″ Lap Smsng NP R580 i5 nvidia linux Ultimate/Win 10


Bookmarks

Bookmarks


Posting Permissions

Понравилась статья? Поделить с друзьями:
  • Как найти все чертежи школы волка
  • Как найти топливо в метро эксодус
  • Minecraft как найти кота
  • Err 03 gorenje как исправить
  • Как найти вектор электрического смещения