LinuxQuestions.org
Visit Jeremy's Blog.
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 05-03-2021, 07:47 AM   #1
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,740

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Exclamation Post-update error: "end kernel panic not syncing vfs unable to mount fs on unknown-block(0,0)"


Hi.

I'm on Debian 10 Stable. I recently did an update (about 3 weeks since the previous one). I was using a backported kernel.

Perhaps the update went awry?

The laptop (it's a secondary PC) keeps shutting off and rebooting itself.

I can boot from a live USB. I can also enter the Grub menu and select the oldest kernel, then unlock the system (I'm using LUKS). It then asks me to put in the sudo password to become root. I tried removing some kernels to save space in /boot. I can get a GUI for root (not for my normal user) by entering startx - the WiFi is not available though.

I'm wondering what's the best fix or should I just reinstall the whole OS?

Thanks.
Attached Thumbnails
Click image for larger version

Name:	2021-05-03_13-46.jpg
Views:	127
Size:	170.0 KB
ID:	36297   Click image for larger version

Name:	2021-05-03_13-45.jpg
Views:	106
Size:	142.5 KB
ID:	36298  

Last edited by linustalman; 05-03-2021 at 07:49 AM.
 
Old 05-03-2021, 08:24 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
vfs unable to mount fs on unknown-block(0,0)

This error means your kernel cannot access HDD controller and any disks connected to it.
You get this error if your kernel relies on initramfs and it is unavailable. For instance, kernel upgrade was interrupted and did not complete properly, then you get this error.
You need to reinstall kernel, not OS. And while at it pay close attention to what it is doing, take notes if you see any errors or anomalies. You have CLI root access working, this is enough to fix it.
 
1 members found this post helpful.
Old 05-03-2021, 11:39 AM   #3
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,740

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Lightbulb

Quote:
Originally Posted by Emerson View Post
vfs unable to mount fs on unknown-block(0,0)

This error means your kernel cannot access HDD controller and any disks connected to it.
You get this error if your kernel relies on initramfs and it is unavailable. For instance, kernel upgrade was interrupted and did not complete properly, then you get this error.
You need to reinstall kernel, not OS. And while at it pay close attention to what it is doing, take notes if you see any errors or anomalies. You have CLI root access working, this is enough to fix it.
Hi Emerson.

So I could just find an ethernet cable and connected to my wifi router, via it and the laptop will pick up the network while I'm in the root CLI?

How about this to then run? --
Code:
apt install linux-image-amd64
 
Old 05-03-2021, 12:16 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
If this was a botched install you already should have all .deb files downloaded and no net connection is necessary. Why don't you try it.

Edit: often problems like this occur when running out of disk space or inodes.

Last edited by Emerson; 05-03-2021 at 12:31 PM.
 
Old 05-03-2021, 12:36 PM   #5
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,740

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by Emerson View Post
If this was a botched install you already should have all .deb files downloaded and no net connection is necessary. Why don't you try it.

Edit: often problems like this occur when running out of disk space or inodes.
Ok.
Is my command from post #3 correct if I cannot reinstall from the .deb files?
If I go the .deb files offline route - what command(s) would be required?
 
Old 05-03-2021, 12:43 PM   #6
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,678

Rep: Reputation: Disabled
Just
Code:
update-initramfs -u
may be enough. But you never know.

Last edited by shruggy; 05-03-2021 at 12:45 PM.
 
Old 05-03-2021, 01:38 PM   #7
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,740

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by shruggy View Post
Just
Code:
update-initramfs -u
may be enough. But you never know.
Hi shruggy. I ran the command and it returned no errors but no joy.

Last edited by linustalman; 05-03-2021 at 01:47 PM.
 
Old 05-03-2021, 01:52 PM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
What version of kernel you built it for, the one you are running? (My Debian experience is rusty, I believe by default it builds for running kernel, not what you want.)
 
Old 05-03-2021, 01:57 PM   #9
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,740

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Post

Quote:
Originally Posted by Emerson View Post
What version of kernel you built it for, the one you are running? (My Debian experience is rusty, I believe by default it builds for running kernel, not what you want.)
The only kernel that I can get anywhere with is by booting with 5.10.0-0.bpo.3-amd64. It's the oldest kernel on my system.
 
Old 05-03-2021, 02:01 PM   #10
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,678

Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
I believe by default it builds for running kernel, not what you want.
To update initramfs for all installed kernels, run
Code:
update-initramfs -u -k all
 
1 members found this post helpful.
Old 05-03-2021, 02:02 PM   #11
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
linustalman,

Yes, I understand that, but you need to rebuild the initramfs for your failing kernel, that's the idea. BTW, you can use your old kernel for normally operating your Debian, just edit the Grub line when at Grub menu and remove the part what puts it in single user mode.
 
Old 05-08-2021, 08:29 AM   #12
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,740

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by shruggy View Post
To update initramfs for all installed kernels, run
Code:
update-initramfs -u -k all
No error was returned. I can only run that command on my oldest kernel.
 
Old 05-08-2021, 08:30 AM   #13
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,740

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Post

Quote:
Originally Posted by Emerson View Post
linustalman,

Yes, I understand that, but you need to rebuild the initramfs for your failing kernel, that's the idea. BTW, you can use your old kernel for normally operating your Debian, just edit the Grub line when at Grub menu and remove the part what puts it in single user mode.
There was no mention of single user mode. Just 'ro' and 'quiet' the end of the line.
 
Old 05-09-2021, 06:26 AM   #14
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,740

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Post

I connected the laptop to my wireless modem-router via an Ethernet cable. I went into the oldest kernel. I entered my root password and tried to update and ping - no joy. I then dropped to my user account on the terminal with 'su myusername' - still no joy -- both cases returned some issue with DNS. With Debian 11 out soon, I may just leave this be and wait for Bullseye or just install something like Peppermint 10.
 
Old 05-13-2021, 06:12 AM   #15
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,740

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
I've since wiped the HDD and installed Peppermint OS 10.
 
  


Reply

Tags
buster, debian 10, kernel panic, update



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
LFS error: boot lfs, Kernel panic -not syncing:VFS unable to mount root fs on unknown-block(0,0) XinyuLi Linux From Scratch 4 05-16-2017 01:17 AM
End kernel panic -not syncing : VFS: unable to mount root fs on unknown-block(2,0) Justinstout1414 Linux - Newbie 3 12-25-2016 07:32 PM
kernel panic - not syncing : VFS: unable to mount root FS on unknown-block Dankles Slackware 23 01-28-2011 03:01 AM
CRC error/Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block red13hat Linux - Enterprise 2 05-03-2007 08:57 PM

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

All times are GMT -5. The time now is 04:58 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