[SOLVED] lfs-8.1 kernel panic VFS can't mount root on "sda1" shown available partitions none.
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
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.
Distribution: Linux from Scratch (Debian / Ubuntu)
Posts: 15
Rep:
lfs-8.1 kernel panic VFS can't mount root on "sda1" shown available partitions none.
Hello all,
I'm beyond stumped. I've built the kernel more times than I can count. (LFS-8.1). I have tried the book, then 'oldconfig', 'localyesconfig', 'defconfig', tried copying the running kernel .config. I've run lsmod, lspci. The kernel builds just fine each time. My issue is the exact same Kernel Panic each time, nothing changes it. I've read through all the 'kernel panic' threads and tried many different things.
System: Diamond Systems Helix SBC, "DMP Vortex86DX3 SoC".
Here's 5 attachments of screen shots of my booting system. Below is the output of lspci and lsmod and grub.cfg.
Any help with this is greatly appreciated.
lsmod-----
00:00.0 Host bridge: RDC Semiconductor, Inc. Device 6023 (rev 02)
00:01.0 PCI bridge: RDC Semiconductor, Inc. Device 1031 (rev 01)
00:02.0 PCI bridge: RDC Semiconductor, Inc. Device 1031 (rev 01)
00:07.0 ISA bridge: RDC Semiconductor, Inc. Device 6035 (rev 01)
00:07.1 ISA bridge: RDC Semiconductor, Inc. Device 6035 (rev 01)
00:08.0 Ethernet controller: RDC Semiconductor, Inc. R6040 MAC Controller
00:0a.0 USB controller: RDC Semiconductor, Inc. R6060 USB 1.1 Controller (rev 14)
00:0a.1 USB controller: RDC Semiconductor, Inc. R6061 USB 2.0 Controller (rev 08)
00:0c.0 IDE interface: RDC Semiconductor, Inc. Device 1012 (rev 02)
00:0d.0 VGA compatible controller: RDC Semiconductor, Inc. Device 2015
00:0e.0 Audio device: RDC Semiconductor, Inc. Device 3010 (rev 01)
00:10.0 Unassigned class [ffff]: RDC Semiconductor, Inc. Device 1330
00:10.2 Unassigned class [ffff]: RDC Semiconductor, Inc. Device 1710
01:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)
02:00.0 IDE interface: ASMedia Technology Inc. ASM1061 SATA IDE Controller (rev 02)
Your SATA controller seems to be in IDE mode. Shouldn't be.
Anyhow, the only important piece of information is the (0,0) after kernel panic. This tells us your kernel is unable to access the hard drive. You should put your controller in AHCI mode and then enable the AHCI driver in kernel. Furthermore you need the partition table support and root filesystem support enabled in kernel as <*>, not as <M>.
Distribution: Linux from Scratch (Debian / Ubuntu)
Posts: 15
Original Poster
Rep:
Emerson,
My system has a funky BIOS and chipset I guess. It doesn't support AHCI, it is IDE only. It will boot from a SATA DOM, it will boot from CD/DVD and USB. As well as from an external mSATA drive when the SATA DOM is removed and a jumper for 5VDC changed.
There's only IDE settings in the BIOS.
So I'm not exactly sure then what I need to configure in the kernel to get this to work.
Any other ideas? I'm stubborn and want to figure this out.
Distribution: Linux from Scratch (Debian / Ubuntu)
Posts: 15
Original Poster
Rep:
Hi Emerson,
I got it to boot today, albeit not all the way, but past this problem. Thanks for the help. I hand edited the .config file (done this for years / I actually prefer it over the menuconfig), turned off AHCI and turned on all IDE and SATA.
The boot this morning stopped when fsck.ext4 failed, can't find the file. Disk has errors which couldn't be auto-fixed. So I'm working on this.
Thanks for your help and suggestions, they really helped.
Not good. First, you should not edit the .config by hand, there are dependencies in the kernel config and you are breaking them by manual edit. Second, IDE code is deprecated, it should not be used (don't know why it is not removed from kernel). There are PATA drivers to use with IDE devices. Third, cluttering your kernel with all possible drivers is not the idea of a nice clean and lean custom kernel.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.