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.
I'm on 14.1, 32-bit, with a generic smp kernel and initrd. I'm using lvm and ext4. I tried creating a usb boot stick with the Slackware setup script, but when I try booting it I get the following error:
kernel panic - not syncing: VFS: unable to mount root fs on unknown block (0,0)
I'm thinking that maybe the USB stick needs an initrd, but the script doesn't create one? Does that sound right? If that's the issue, is there a good way to create a boot stick that won't cause the kernel panic? Any thoughts?
I tried booting with a special kernel command with the rootwait option, and the boot messages did show that it was waiting for root. Unfortunately, after waiting a few minutes, nothing happened, so that doesn't seem to be the issue.
The script that creates the boot stick is /var/log/setup/setup80-make-bootdisk.
It copies vmlinuz to the USB stick, but no initrd.
Rationale as I understand it:
This script's main purpose is to make an "emergency" boot stick, allowing you to start Slackware in case where the boot loader can't do that for some reason after installation. When you run it during the "CONFIGURE" step after a fresh installation, vmlinuz is a symlink to a huge kernel, so there is no need for an initrd.
If you want to run this script after installation (for instance from "pkgtool") you could:
either tentatively make of /boot/vmlinuz a symlink to a huge kernel,
or modify the script to make it copy your initrd to the boot stick and adapt the config files of the boot loaders accordingly.
The first way is simpler and faster, the second could be a learning exercise
Last edited by Didier Spaier; 06-02-2016 at 05:37 AM.
OK, I tried making a boot disk with the huge kernel, but I still got the same error.
The second option of copying the initrd over and updating the config - is that the only way to make this work? Has anyone else had trouble with an LVM/ext4 boot disk, or does this work for everyone else?
OK, I tried making a boot disk with the huge kernel, but I still got the same error.
The second option of copying the initrd over and updating the config - is that the only way to make this work? Has anyone else had trouble with an LVM/ext4 boot disk, or does this work for everyone else?
We miss precise information to help you. Please indicate at least the content of /etc/fstab and of /etc/lilo.conf and the output of "df -h".
kernel panic - not syncing: VFS: unable to mount root fs on unknown block (0,0)
This is clear message kernel has no drivers to access root device, what's in fstab is irrelevant at this stage of boot. You need all modules loaded which are needed to mount USB and access the root filesystem and you probably still need the rootwait option.
kernel panic - not syncing: VFS: unable to mount root fs on unknown block (0,0)
This is clear message kernel has no drivers to access root device, what's in fstab is irrelevant at this stage of boot. You need all modules loaded which are needed to mount USB and access the root filesystem and you probably still need the rootwait option.
At this time we do not know what the problem is. So please do not provide "solutions" not knowing what the problem is (the kernel panic is a symptom, no more) and do not discourage the OP to provide information that could be useful. The content of /etc/fstab is relevant.
@tubaaku: knowing how LVM is set is needed as well.
Kernel panic for vfs means that the root file system driver doesn't exist at boot, which is why I directed you to use the Huge kernel. The vmlinuz copied should be the vmlinuz-huge version. Checksum the huge kernel with the copied file and make sure its equal. If needed, try using the initrd with busybox and mdev to preload a few tools and extra modules if needed.
At this time we do not know what the problem is. So please do not provide "solutions" not knowing what the problem is (the kernel panic is a symptom, no more) and do not discourage the OP to provide information that could be useful. The content of /etc/fstab is relevant.
@tubaaku: knowing how LVM is set is needed as well.
Please do not talk unless you know what you are talking about.
Code:
unable to mount root fs on unknown block (0,0)
This (0,0) indicates the device is not accessible. Or, in case of UEFI boot root= parameter is not passed to the kernel. In case the partition table is not recognized or root filesystem is not supported by given kernel the numbers are not zero any more.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.