LinuxQuestions.org
Visit Jeremy's Blog.
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 08-24-2016, 05:04 PM   #1
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Rep: Reputation: Disabled
Slackware 14.2 kernel panic on boot fresh install


Slackware 14.2 with mdadm software RAID. I am using GPT drives and using GRUB2 instead of LILO. I can turn on the PC and I get to where grub boots. After that when I hit enter it loads some kernel text but then it panics and it says

Code:
VFS: Unable to mount root fs
Before that I am also getting "Invalid raid superblock on sdX" X for whatever partition.

My /etc/fstab looks like this

http://i.imgur.com/zzsGv1Ih.jpg

I would also like to note that I am using Metadata 1.2 on all partitions for the RAID....I hope this is not a problem. To give more info.

/dev/md0 is /var RAID1 with sda1 and sdb1.
/dev/md1 is /swap RAID10 on sd[c-f]1
/dev/md2 is /boot RAID10 on sd[c-f]2
/dev/md3 is / RAID10 on sd[c-f]3

I am in the process of making sure /boot/grub/grub.cfg is in all 4 hard drives/partitions and will be changing /etc/fstab to use UUIDs.

Last edited by Altiris; 08-24-2016 at 05:28 PM.
 
Old 08-24-2016, 05:45 PM   #2
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Original Poster
Rep: Reputation: Disabled
Here is my mkinitrd, http://i.imgur.com/uwvwCJ1h.jpg I made sure /dev/md2 was mounted as the is where /boot partition is located in the RAID. I also ran the grub mkconfig command again.

Last edited by Altiris; 08-24-2016 at 05:46 PM.
 
Old 08-24-2016, 05:54 PM   #3
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Original Poster
Rep: Reputation: Disabled
Now I am getting "mount: can't find /mnt in /etc/fstab"

"ERROR: No /sbin/init found on rootdev (or not mounted).
 
Old 08-24-2016, 06:13 PM   #4
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
Quote:
Originally Posted by Altiris
Code:
VFS: Unable to mount root fs
The kernel can't find your boot device. What kernel parameters are you passing?
 
Old 08-24-2016, 06:18 PM   #5
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Rinndalir View Post
The kernel can't find your boot device. What kernel parameters are you passing?
I don't have a clue, could you tell me where I could find such things? I Haven't Been Messing With slackware installations in about a year and I've forgotten where many things are...especially with grub as I normally just use lilo. Also please note that I am no longer getting that error now that I made the initramfs. I am getting

"mount: can't find /mnt in /etc/fstab"

"ERROR: No /sbin/init found on rootdev (or not mounted).

So I looked online at where I could see kernel parameters and I'll see if I can get a picture.

Last edited by Altiris; 08-24-2016 at 06:30 PM.
 
Old 08-24-2016, 07:18 PM   #6
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Rinndalir View Post
The kernel can't find your boot device. What kernel parameters are you passing?
Here are some of the kernel parameters...I think http://m.imgur.com/gyOeqS8,lQf1Hjq
 
Old 08-24-2016, 09:04 PM   #7
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
Have you tried /usr/share/mkinitrd/mkinitrd_command_generator.sh to see if you're using a decent mkinitrd command? It needs to specify the root partition and all modules your system needs to start.
 
Old 08-24-2016, 09:21 PM   #8
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
Have you tried /usr/share/mkinitrd/mkinitrd_command_generator.sh to see if you're using a decent mkinitrd command? It needs to specify the root partition and all modules your system needs to start.
I tried that and I think that's where the problem lied. I instead followed this post http://www.linuxquestions.org/questi...1/#post5307864 and how he made his mkinitrd. The kernel finally loads except I noticed a couple of "could not insert" while the kernel was loading and one of those was ext4, the other was jbd2 or something...I have no clue what these are but the ext4 scares me. I am also stuck using the huge kernel now.....I am afraid of changing anything lol, I'm afraid to upgrade to the 4.4.19 also loo.
 
Old 08-24-2016, 09:31 PM   #9
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
What was the output when you ran it?
 
Old 08-24-2016, 09:59 PM   #10
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Richard Cranium View Post
What was the output when you ran it?
I just ran it again and it shows those missing things, jb2, ext4, and now I notice mbcache with an "added" symbol. http://i.imgur.com/oZKMCxEh.jpg I'm going to rerun the grub-mkconfig command.
 
Old 08-24-2016, 10:28 PM   #11
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Maybe I'm doing something wrong, but that link shows almost nothing that is useful.

And I'll admit that my post was not specific enough.

What I should have asked (but did not) was...
Quote:
What is the output of the command
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -r -k 4.4.19
when it is run as root?
 
Old 08-24-2016, 11:34 PM   #12
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Richard Cranium View Post
Maybe I'm doing something wrong, but that link shows almost nothing that is useful.

And I'll admit that my post was not specific enough.

What I should have asked (but did not) was...
Sorry. Okay, lets get a few things clear to avoid confusion. So, I linked that post before, I believe #15 because I copied that method that he did to generate the mkinitrd, which involved making that /etc/mkinirtd file or whatever, editing it, and then doing mkinitrd -F or whatever the command was. Previously, I had tried to use the script from the Slackware docs beginners guide
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh
, and I got...strange...what is showing up is now (I just ran that command) is ENTIRELY different from what I got when I ran it before, possibly because I was using the livecd and chrooted (I had no choice as I couldn't boot into it directly). I am going to run what you want me to run now,
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -r -k 4.4.19
except note that I am only on kernel 4.4.14 and not 4.4.19 yet. When I run that command you told me to ran I get this, which is the same as the command in Slackware beginner's guide

Code:
mkinitrd -c -k 4.4.14 -f ext4 -r /dev/md3 -m usb-storage:ehci-hcd:ehci-pci:xhci-pci:ohci-pci:xhci-hcd:uhci-hcd:hid:usbhid:i2c-hid:hid_generic:hid-cherry:hid-logitech:hid-logitech-dj:hid-logitech-hidpp:hid-lenovo:hid-microsoft:hid_multitouch:jbd2:mbcache:ext4 -R -u -o /boot/initrd.gz
The last time I ran
Code:
usr/share/mkinitrd/mkinitrd_command_generator.sh
was when I was in the livecd chrooted, I had a lot of weird stuff showing up, a lot of "linux_raid_member" stuff, about 14 of them to be exact and nothing that I see here. That is probably why it wouldn't boot correctly, though I remember now I had some other weird issue that was preventing the boot procedure before I tried generating an initramfs. I am going to run the output I got above in a bit and see if I can boot.

Last edited by Altiris; 08-24-2016 at 11:36 PM.
 
Old 08-25-2016, 12:20 AM   #13
bormant
Member
 
Registered: Jan 2008
Posts: 426

Rep: Reputation: 240Reputation: 240Reputation: 240
The cause of mount error about /etc/fstab:
http://www.linuxquestions.org/questi...0/#post5574558
 
  


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
[SOLVED] Slackware 13.37 64bit, Kernel Panic Error, Fresh install KvK Slackware 13 03-24-2014 07:18 PM
Can't Boot Slack 12 From Fresh Install - Kernel Panic GuyWhoKilledBear Slackware - Installation 3 10-14-2007 02:04 AM
kernel panic after fresh install of 10.2 mosca Slackware 15 09-25-2005 02:03 PM
Kernel Panic on fresh install CyberLord_7 Linux - General 9 09-24-2003 09:38 AM

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

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