Ken Moffat wrote:
On Tue, Jul 25, 2017 at 06:09:43PM +0200, John D. Hefele wrote:
Kernel panic: VFS: unable to mount root fs There are several reasons why the kernel might be unable to mount the root filesystem. - Did you specify the correct partition in /boot/grub/menu.lst?So, the FAQ is old - you are right that grub2 uses grub.cfg. At this point a linux kernel has loaded (I assume your host system still boots, therefore the failing kernel must be for LFS. And that means that your stanza for this kernel in grub.cfg is probably good enough.
With the the exception that the root= value may be incorrect. It should be /dev/sda4 from the info below, but worth a double check.
We don't usually bother with lshw - lspci (with some verbosity) is usually better for tuning the kernel config. In particular, it can tell you which kernel driver is being used for each item. You may then need to google for the name of the config option which builds that driver. A less-efficient alternative is to begin by looking at which modules are loaded and in use (lsmod). I'm a bit surprised that 'allyesconfig' did not work. Both ATA and SATA drives have used /dev/sdX for a few years, and I don't know anything about your hardware. If it really is SCSI, you would need to build some SCSI driver. But if it is common SATA or ATA, the following config options ought to be enough if you can't get the details of what is in use : CONFIG_SCSI CONFIG_SCSI_DMA CONFIG_BLK_DEV_SD (other options needed if cdrom is present) CONFIG_ATA and all options CONFIG_SATA and all options It's probably easiest to start with your current config, then in menuconfig search for those options using '/' and set them all to 'y'.
I agree with Ken's recommendation. The problem you describe is almost always due to not having the correct disk drivers built into the kernel. Kernel modules are not sufficient without an initrd.
-- Bruce -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
