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 05-05-2019, 12:20 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
kernel panic when booting Linux/GNU operating system.


Hi:
Code:
root@darkstar:~# mount -t ext2 /dev/sda7 /mnt
root@darkstar:~# ls -l /mnt/boot
total 139280
-rw------- 1 root root  4038188 Apr 24  2018 System.map-4.15.0-20-generic
-rw------- 1 root root  4052134 Apr  2 13:31 System.map-4.15.0-48-generic
-rw-r--r-- 1 root root  1536934 Apr 24  2018 abi-4.15.0-20-generic
-rw-r--r-- 1 root root   216807 Apr 24  2018 config-4.15.0-20-generic
-rw-r--r-- 1 root root   217278 Apr  2 13:31 config-4.15.0-48-generic
drwxr-xr-x 3 root root     4096 May  3 23:40 efi/
drwxr-xr-x 2 root root     4096 May  3 23:40 grub/
-rw-r--r-- 1 root root 57530086 May  3 23:40 initrd.img-4.15.0-20-generic
-rw-r--r-- 1 root root 57717238 May  3 23:39 initrd.img-4.15.0-48-generic
-rw-r--r-- 1 root root   182704 Jan 28  2016 memtest86+.bin
-rw-r--r-- 1 root root   184380 Jan 28  2016 memtest86+.elf
-rw-r--r-- 1 root root   184840 Jan 28  2016 memtest86+_multiboot.bin
-rw-r--r-- 1 root root        0 Apr 24  2018 retpoline-4.15.0-20-generic
-rw-r--r-- 1 root root  8249080 Apr 26  2018 vmlinuz-4.15.0-20-generic
-rw------- 1 root root  8298232 Apr  3 05:07 vmlinuz-4.15.0-48-generic
root@darkstar:~#
In lilo.conf I have:
Code:
image = /mnt/boot/vmlinuz-4.15.0-48-generic
        root = /dev/sda7
        label = OS_2
        read-only
And I get
Code:
Please append a correct "root =" boot option: here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,7).
 
Old 05-05-2019, 12:31 PM   #2
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
You need to add the initrd.img to the lilo config

Code:
image = /mnt/boot/vmlinuz-4.15.0-48-generic
initrd = /mnt/boot/initrd.img-4.15.0-48-generic
        root = /dev/sda7
        label = OS_2
        read-only
thenu run

Code:
lilo
shouldnt it be

Code:
image = /boot/vmlinuz-4.15.0-48-generic
initrd = /boot/initrd.img-4.15.0-48-generic
        root = /dev/sda7
        label = OS_2
        read-only
 
Old 05-05-2019, 01:02 PM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
I added it and booted successfully. But I have slackware running without an initrd!
 
Old 05-05-2019, 02:04 PM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Quote:
Originally Posted by stf92 View Post
I added it and booted successfully. But I have slackware running without an initrd!
Really you still do not know the difference between a huge and a generic kernel?

And during these years you didn't find the time to read this, found at the root of all Slackware ISO?

I am puzzled.

Last edited by Didier Spaier; 05-05-2019 at 03:03 PM. Reason: Added "during"
 
1 members found this post helpful.
Old 05-05-2019, 02:53 PM   #5
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
sf92 tsk tsk
lol
 
Old 05-05-2019, 06:26 PM   #6
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by Didier Spaier View Post
Really you still do not know the difference between a huge and a generic kernel?

And during these years you didn't find the time to read this, found at the root of all Slackware ISO?

I am puzzled.
I've read it a hundred times. So generic needs an initrd, it seems.
 
1 members found this post helpful.
Old 05-05-2019, 07:03 PM   #7
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
yeah bro and the commands for making a initrd vary between 14.2 and current.
Use /usr/share/mkinitrd/mkinitrd_command_generator.sh as root for an example out, then copy/paste that into terminal and it'll make a initrd for you.
Here's example output for my drives and kernels, I have both 14.2 and current

Code:
** Slackware 14.2

bash-4.3# /usr/share/mkinitrd/mkinitrd_command_generator.sh
#
# mkinitrd_command_generator.sh revision 1.45
#
# This script will now make a recommendation about the command to use
# in case you require an initrd image to boot a kernel that does not
# have support for your storage or root filesystem built in
# (such as the Slackware 'generic' kernels').
# A suitable 'mkinitrd' command will be:

mkinitrd -c -k 4.4.172l -f ext4 -r /dev/sda3 -m usb-storage:ums-realtek:ehci-hcd:ehci-pci:uhci-hcd:jbd2:mbcache:ext4 -u -o /boot/initrd.gz

** Slackware -current

bash-5.0# /usr/share/mkinitrd/mkinitrd_command_generator.sh
#
# mkinitrd_command_generator.sh revision 1.45
#
# This script will now make a recommendation about the command to use
# in case you require an initrd image to boot a kernel that does not
# have support for your storage or root filesystem built in
# (such as the Slackware 'generic' kernels').
# A suitable 'mkinitrd' command will be:

mkinitrd -c -k 4.19.37-xanmod19 -f ext4 -r /dev/sda5 -m usb-storage:ums-realtek:libahci:ahci:uhci-hcd:ext4 -u -o /boot/initrd.gz
 
Old 05-05-2019, 07:12 PM   #8
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
But I digress to this post by allend (thanks) in -current
Did it change back to original command? Alien Bob?

https://www.linuxquestions.org/quest...nt-4175650457/

For slackware current

Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -k 4.19.37-xanmod19:4.19.37-xanmod19
 
Old 05-05-2019, 07:16 PM   #9
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
In slackware I'm running huge for the moment. The machine is under test and has the minimum indispensable. For an initrd i follow Volkerdi's instructions which he gives in a certainfile.
 
  


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
problem operating command with DUAL operating system with ubuntu & windows 7 gne Linux - Newbie 2 02-01-2015 08:12 AM
LXer: Running GNU R on Linux operating system LXer Syndicated Linux News 0 01-24-2013 10:41 AM
LXer: Introduction to GNU R on Linux Operating System LXer Syndicated Linux News 0 01-21-2013 03:50 AM
LXer: The non-operating system operating system LXer Syndicated Linux News 0 06-26-2010 05:42 PM
'Operating system not found' Any operating system installed wont work. TechniSlave Linux - Newbie 55 02-09-2009 11:02 AM

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

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