Tony Hartzell wrote:
> VFS: Cannot open root device "hda2" or unknown-block(2,0)
> Please append a correct "root=" boot option; here are the available
> partitions:
> Kernel panic - not syncing: VFS: unable to mount root fs on
> unknown-block(2,0)
> 
> I think my problem is that /dev isn't being populated. During the build,
> when I mount /mnt/lfs, the dev and sys directories are empty until I mount
> the host /dev & /sys as per section 6.2.3.  How do /dev & /sys get
> populated?

It looks like the kernel is not mounting the root directory long before 
udev starts.

/dev/hda is pretty old.  Most systems use /dev/sda.  Make sure you have 
the disk controller driver compiled into the kernel (not a module).

Your post is pretty thin on details.  What does the kernel command line 
look like?  What does /dev look like in the host system?  (only /dev/hda*)

`lspci -v` from the host system would be helpful.

Also, the driver for the file system needs to compiled in.  Generally 
for a first build, I'd recommend ext3.

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to