Root FS not found with default kernel config

Asked by Ryan H

Hi, I recently built a base LFScript system using LFScript 4 rev 6. I am using VMWare with a SCSI hard drive. When attempting to boot the system, I get a kernel panic saying the root file system is not found (root=/dev/sda1). When this has happened to me before, it has typically been a kernel config issue. But I didn't want to use a non-standard kernel if at all possible. Has anyone seen this problem in LFScript's default kernel?

Note that /dev/sda1 is the device I used to mount my drive when booted from the LFScript-3.3 Live CD. When installing grub (using chroot command), I used /dev/sda and it installed without errors.

I tried the following with no success:
 - Used hda1, sdb1, sdc1, sdd1, sde1
 - Removed the CDROM drive from VMWare
 - Changed the grub root to hd(0,0), hd(2,0), hd(1,0)
 - Inserted several grub modules that were totally irrelevant

Question information

Language:
English Edit question
Status:
Solved
For:
LFScript Edit question
Assignee:
No assignee Edit question
Solved by:
Ryan H
Solved:
Last query:
Last reply:
Revision history for this message
Marcel van den Boer (synthehol) said :
#1

From what you say, I think your problem is either with the kernel or the boot loader configuration;

First of all, let me tell you that LFScript does not include a "default" kernel. If no configuration is provided it will simply call "make defconfig" when compiling a kernel, which does not guarantee a suitable configuration at all. Al though 'make defconfig' seems to work for most people, you should not rely on it.

So, in any case, you should reconfigure your kernel so you can make sure that the drivers for your disk and support for the file system you use are included (and not as modules). You probably use an Ext3 file system, but if you use Ext2; Ext2 is no longer selected by default. I mention the file system because I myself have had problems with not including Ext2 support in the past.

To make sure the problem is indeed with the kernel and not with the boot loader; You could copy the kernel from the LFScript 3.3 Live CD and try to boot your system from that. Because you have indicated you are able to access your drive from the Live CD, if your system is then still not able boot, something is wrong with your boot loader configuration and your kernel may be OK.

Revision history for this message
Ryan H (rhajdaj) said :
#2

Thanks for the reply. I tried the following:

1. Rebuilt kernel with native (non-module) support for ext2 fs. Note that this is the only thing I changed from defconfig. I got a kernel panic with the same error.

2. Created a new target file system as ext3 and copied (cp -a) all files into it. Kernel panic with the same error.

3. I copied the LFScript 3.3 Live CD kernel into the /boot directory and booted from it. I got past the kernel init, and entered SysV init. When it got to the /etc/fstab checking (mounting file systems in read only mode), I got a "no such file or directory" error when accessing /dev/sda1. I was able to scroll up and see that sda, sda1 (/) and sda2 (swap) were created according to kernel messages. Something may be removing these device nodes before fstab processing. I noticed that this kernel is configured to use an initrd, so I may try copying the initrd over tonight and seeing if this makes a difference.

I will also try reinstalling/regenerating config for grub and see if this helps.

Revision history for this message
Ryan H (rhajdaj) said :
#3

I was finally able to get it working. Strangely enough, I needed the following options to get the Linux kernel to recognize the VMWare hardware:

Device Drivers --->
   [*] Fusion MPT device support --->
         <*> Fusion MPT ScsiHost drivers for SPI
         <*> Fusion MPT ScsiHost drivers for FC
         <*> Fusion MPT ScsiHost drivers for SAS

I think if you enable these on top of the "make defconfig" kernel, it will work.

Revision history for this message
Syed Armani (dce3062) said :
#4

@Ryan H(rhajdaj): How did you enabled these options using lfscript.

Revision history for this message
Syed Armani (dce3062) said :
#5

@Ryan H(rhajdaj): How did you enabled these options using lfscript.

Revision history for this message
Marcel van den Boer (synthehol) said :
#6