LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-09-2017, 06:35 PM   #1
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Kernel panic after system freeze


Hi all,

My Sid system locked up on me and after a hard reset I get a kernel panic. I have two older kernels on the partition and neither of them will boot either, even in recovery mode.
Quote:
Kernel panic attempted to kill init! exitcode=0x100
call trace:
? dump_stack+0x5c/0x85
? panic+0xe4/0x23a
? do_exit+0xb2d/0xb30
? SyS_exit+0x13/0x20
? system_call_fast_compare_end
Kernel Offset:0x3be00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff
The other odd thing is that I cannot chroot to the Sid partition. I have Ubuntu and two LFS systems on this ssd. Each system boots and I am able to chroot from any one to the other partitions without the above errors.
Code:
root@ubuntu:/# mount /dev/sdc1 /mnt

root@ubuntu:/# mount | grep sdc1
/dev/sdc1 on /mnt type ext4 (rw,relatime,data=ordered)

root@ubuntu:/# chroot /mnt
chroot: failed to run command ‘/bin/bash’: No such file or directory
Yet bash on the partition will execute:
Code:
root@ubuntu:/# bash --version
GNU bash, version 4.4.7(1)-release (x86_64-pc-linux-gnu)

root@ubuntu:/# /mnt/bin/bash --version
GNU bash, version 4.4.12(1)-release (x86_64-pc-linux-gnu)
Even tried the full path to bash, which of course failed:
Code:
root@ubuntu:/# chroot /mnt /mnt/bin/bash
chroot: failed to run command ‘/mnt/bin/bash’: No such file or directory
Any ideas on how to resolve these issues? Appreciate any help.
 
Old 10-09-2017, 07:32 PM   #2
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
I think exitcode=0x00000100 is: can't find init,
but Idk how kernel/exit.c turns ENOENT=2 into 0x100=256 (anybody???)

Look around sdc1 more, for /mnt/sbin/init and sh or bash. Try bootparam init=/bin/sh
(I think it's missing!!! Wth is going on with sdc1?)

Last edited by !!!; 10-10-2017 at 05:33 AM.
 
1 members found this post helpful.
Old 10-09-2017, 09:32 PM   #3
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Original Poster
Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Thanks for replying.

Quote:
Originally Posted by !!! View Post
(...!!! Wth is going on with sdc1?)
Beats me.

I added init=/bin/sh as a kernel prameter and got '/bin/sh' : no such file or directory.

The reason that I am trying to chroot is to regenerate the initrd although it would be odd for the initrds of all three kernels to be corrupt.

My first thought was that grub might have been corrupted so I checked the UUID in grub.cfg and reinstalled. Didn't help.

Puzzling!
 
Old 10-09-2017, 10:29 PM   #4
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
Try ls -l /mnt/*bin /mnt/usr/*bin to compare with running /...
Is the 'basic stuff' still there in sdc1 and ok? Check: df /mnt

Or maybe I'm confused about what exactly sdc1 is (supposed to be).
Is it the rootfs of Deb? Or is it just the few /boot things?
(And your mention of "initrd on all 3": you mount'ed sdc1 ok, so n/a)

Try to get the line just before the Panic. vga=ask to select a mode with 30-60 lines

Last edited by !!!; 10-10-2017 at 04:02 AM.
 
Old 10-09-2017, 11:06 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,139

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
So fsck has been run ?.
What's in lost+found ?.

As a general principle, I reformat and restore if I have any reason not to trust a filesystem. That includes hard shutdowns - not all, just the iffy ones.
 
  


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
[SOLVED] Serious bluetooth issue - system freeze/kernel panic guyonearth Linux - Hardware 5 11-23-2012 09:53 AM
CentOS 6.2 system kernel panic(dead or freeze) on new hardware dumashu Linux - Server 13 07-21-2012 09:43 AM
[SOLVED] System Freeze, flashing power light then panic on reboot. ScottReed Linux - Hardware 0 09-18-2008 09:54 PM
"make clean" caused system freeze, kernel panic on reboot jwhill2000 Linux - General 3 02-08-2005 07:59 PM
Copy Files Between Drives Causes Kernel Panic/Freeze of the System php Slackware 7 08-14-2003 07:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:46 AM.

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