Kernel panic after installation via tar and chroot
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Kernel panic after installation via tar and chroot
Hello everyone, I'm trying to install a slackware system on a PC with a live usb of Ubuntu 18.04.
PC has 2 disk: SDD and a Flash memory.
At boot Ubuntu see SDD as /dev/sda, Flash as /dev/sdc and Live USB as /dev/sdb.
I'm trying to install system on /dev/sdc (Flash memory).
So I formatted /dev/sdc1 to ext4 and mounted on /mnt
Code:
# mount /dev/sdc1 /mnt
and then extracted compressed system in /mnt
Code:
# tar -xvpzf /dir/with/tar/MySystem.tar.gz -C /mnt
Then I mounted proc, dev, sys:
Code:
# mount -t proc /proc /mnt/proc
# mount -o bind /dev /mnt/dev
# mount -o bind /sys /mnt/sys
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,070
Rep:
You write that Ubuntu sees both your Flash and your USB as dev/sdc ?
Can't understand how this can occur, but my tuppence is that it has created some confusion so that your boot setup is dependent on one thing or another that resides on your USB stick.
You write that Ubuntu sees both your Flash and your USB as dev/sdc ?
Can't understand how this can occur, but my tuppence is that it has created some confusion so that your boot setup is dependent on one thing or another that resides on your USB stick.
Sorry, I correct my question:
SSD: sda
USB: sdb
FLASH: sdc
I want to install on sdc1 the system and my live system is on USB (sdb1)
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,070
Rep:
Another tuppence:
This might be dependent on your BIOS, but I've experienced (with an old Asus eee) that USB sticks always take precedence over Flash (SD) cards.
With the flash in its slot (and no USB stick attached), it was recognised as sdb. If I booted from a USB, the stick was sdb and flash became sdc.
So my guess is that with the USB removed, there is no sdc.
As Lysander666 writes' you should check fstab and lilo and see what they contain.
Another tuppence:
This might be dependent on your BIOS, but I've experienced (with an old Asus eee) that USB sticks always take precedence over Flash (SD) cards.
With the flash in its slot (and no USB stick attached), it was recognised as sdb. If I booted from a USB, the stick was sdb and flash became sdc.
So my guess is that with the USB removed, there is no sdc.
As Lysander666 writes' you should check fstab and lilo and see what they contain.
Ok, but I would be device name independent and refers to devices by their ids and uuids
Not sure it's the issue but the kernel per se doesn't know the file system UUIDs, so to find / you need to rely on an initrd that will run udev. I don't see "initrd=...' lines in your lilo.conf.
Not sure it's the issue but the kernel per se doesn't know the file system UUIDs, so to find / you need to rely on an initrd that will run udev. I don't see "initrd=...' lines in your lilo.conf.
You may be onto something. As far as I remember persistent naming prefers a generic kernel if using UUIDs.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.