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 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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.