LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-10-2015, 07:36 AM   #1
dalgrim
Member
 
Registered: Nov 2014
Location: Michigan, USA
Distribution: slackware14.1 x64
Posts: 37

Rep: Reputation: Disabled
System wont boot - Kernel Panic Error


I had my video card fail in my system and had to replace it. In the process of doing that I had to update my bios to support the new card. This of course cleared my settings. I changed everything back to what I had but now my slackware 14.1 system will not boot.
The final error gets cut off but what I can see is:
"Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,18)"
"Comm: swapper/0 Not tainted 3.10.17 #2"

I am able to boot from the slackware14.1 DVD and mount the drive and read all contents. I also forced a fsck -F on that drive and it is fine. I am using the default huge kernel from initial install. I tried making an initrd and that didn't help. I re-ran lilo and still get the exact same error.

*My window7 partition still boots fine... eww

I'll post a 10 second vid I took on my phone of the boot process.
edit: Video
http://www.dalgrim.com/files/slack/20151010_080420.mp4
edit2: images of just before death
http://www.dalgrim.com/files/slack/2...080907_012.jpg
http://www.dalgrim.com/files/slack/2...080907_013.jpg
http://www.dalgrim.com/files/slack/2...080907_014.jpg

-Brian

Last edited by dalgrim; 10-10-2015 at 07:40 AM.
 
Old 10-10-2015, 07:43 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
It is looking for root on sdb2, is this where your / is?
 
1 members found this post helpful.
Old 10-10-2015, 07:46 AM   #3
dalgrim
Member
 
Registered: Nov 2014
Location: Michigan, USA
Distribution: slackware14.1 x64
Posts: 37

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
It is looking for root on sdb2, is this where your / is?
yes this is where it is, well it should be....

I'll verify. I didn't touch the partition tables on the drive. I'll edit this in 5 min with a result.

-Brian
 
Old 10-10-2015, 08:04 AM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Output of these commands, typed from the DVD installer (just after logging in as "root") could help investigate:
Code:
mount /dev/sdb2 /mnt # chek if /mnt is your installed system's /)
lsblk -o model,name,fstype,mountpoint,size
cat /mnt/etc/fstab
cat /mnt/etc/lilo.conf
PS you could store the results on a mounted USB key.

Last edited by Didier Spaier; 10-10-2015 at 08:05 AM.
 
1 members found this post helpful.
Old 10-10-2015, 08:22 AM   #5
dalgrim
Member
 
Registered: Nov 2014
Location: Michigan, USA
Distribution: slackware14.1 x64
Posts: 37

Original Poster
Rep: Reputation: Disabled
ok, so my hard drives for reordered.

sda and adb got swapped in the BIOS update it seems.

I updated lilo.conf to:
http://www.dalgrim.com/files/slack/lilo1.jpg
http://www.dalgrim.com/files/slack/lilo2.jpg

Here is my fdisk
http://www.dalgrim.com/files/slack/fdisk.jpg

A note on my setup:
I have a marvell 9128 controller for the now "sda" drive, sdb is in IDE mode and is an older sata2 3gbs drive. I have lilo installed to that drive.

I'll reboot again and get the results of "cat etc/fstab" but I'm guessing that I'll have to fix that now that I know the drives got swapped.

even with the updated lilo conf with
boot=/dev/sdb
#Linux
image=/dev/sda2

It still doesn't boot, giving the exact same kernel panic error at the end
(maybe the fstab)

What I did do:
booted from DVD
mkdir /mnt/hddsda1
mkdir /mnt/hddsda2
mount /dev/sda1 /mount/hddsda1
mount /dev/sda2 /mount/hddsda2

a quick "ls" in /mnt/hddsda2 shows that it is my linux partition
I did a chroot /mnt/hddsda2
everything looked correct there /etc/lilo.conf is what I posted in the images.


I'll reboot now and get the fstab file and post it.

Thanks for the quick responses!

-Brian
 
Old 10-10-2015, 08:30 AM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Do not use IDE mode. It was meant only for Windows users to enable Windows boot and installing AHCI drivers.
 
1 members found this post helpful.
Old 10-10-2015, 09:04 AM   #7
dalgrim
Member
 
Registered: Nov 2014
Location: Michigan, USA
Distribution: slackware14.1 x64
Posts: 37

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
Do not use IDE mode. It was meant only for Windows users to enable Windows boot and installing AHCI drivers.
I changed the second drive to AHCI. *the marvell one already was

This improved the situation. now it'll get 1/2way through the boot before giving a bad superblock error:
http://www.dalgrim.com/files/slack/newerror.jpg

I enter the root password and it enters singleuser mode:

trying to run fsck gives this error:
http://www.dalgrim.com/files/slack/newerror2.jpg



Didier Spaier:
here is the command output you asked for:
http://www.dalgrim.com/files/slack/lsblk.jpg

*after seeing this I did change the /dev/sda to sdb / and changed what was sdb to sda

-Brian
 
Old 10-10-2015, 09:16 AM   #8
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by dalgrim View Post
Didier Spaier:
here is the command output you asked for:
http://www.dalgrim.com/files/slack/lsblk.jpg
Well, two remarks:
  • In the output of lsblk I see that you have an ext4 file system on /dev/sda2, so there lies your Linux / partition, but in /etc/fstab /dev/sda2 is supposed to be your swap partition and / is supposed to be mounted on /dev/sdb2 that is actually a swap partition. This is inconsistent and can't work.
  • I don't see the point in putting / and swap on two different disks. But maybe that doesn't hurt.
 
1 members found this post helpful.
Old 10-10-2015, 09:29 AM   #9
dalgrim
Member
 
Registered: Nov 2014
Location: Michigan, USA
Distribution: slackware14.1 x64
Posts: 37

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
Well, two remarks:
  • In the output of lsblk I see that you have an ext4 file system on /dev/sda2, so there lies your Linux / partition, but in /etc/fstab /dev/sda2 is supposed to be your swap partition and / is supposed to be mounted on /dev/sdb2 that is actually a swap partition. This is inconsistent and can't work.
  • I don't see the point in putting / and swap on two different disks. But maybe that doesn't hurt.
It seems the disks got reordered when I had to flash my BIOS. The system was on sdb2 before. ugh It looks like I missed updating that fstab line for my swap partition. I'll update that and try again to boot.

The reason the swap is on another drive is just a space issue. The / drive only has 146GB space. so I put the swap on the other slower drive. I have 12GB RAM anyways so Swap should rarely be used.

I'll update if fixing that fstab entry for swap fixes the problem.

-Brian
 
Old 10-10-2015, 09:38 AM   #10
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
In case you need to run fsck do it from a liveCD and make sure the filesystem you are checking is not mounted.
 
1 members found this post helpful.
Old 10-10-2015, 10:01 AM   #11
dalgrim
Member
 
Registered: Nov 2014
Location: Michigan, USA
Distribution: slackware14.1 x64
Posts: 37

Original Poster
Rep: Reputation: Disabled
Smile

Yay, it's working, for the most part.

I don't know why my BIOS decided to renumber the hard drives but after the lilo.conf edit and fstab changes the system boots now.

You guys all rock, I'm in awe of the knowledge on this forum. Thanks!

-Brian
 
Old 10-13-2015, 06:36 AM   #12
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
It might be worth looking into converting your lilo.conf and fstab.conf to using UUIDs instead of the locations. UUIDs only change when you reformat the drive and won't be affected by changing computer hardware/bios. This would've prevented your problem completely.
 
1 members found this post helpful.
  


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] Kernel Panic during first boot for fresh system leopold75 Linux From Scratch 15 12-03-2014 02:25 PM
System will panic as soon as the kernel is loaded, with the following error: tshepang Linux - General 1 05-17-2014 02:43 PM
Fedora 16 Kernel upgrade broke system - kernel panic and unable to boot itsjustarumour Fedora 7 05-15-2012 09:51 AM
Kernel panic on system boot kaplan71 Red Hat 1 04-27-2009 04:10 PM
Kernel Panic / System wont boot phatboyz Linux - Hardware 5 01-25-2005 07:39 AM

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

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