Hi i got this error when i tried to boot in to my LFS system.
could it be that my fstab is screwed up, or is it something i forgot to
do with the kernel?
I'm using the LFS 6.6 book, and i am doing this in vmware.
This is how my filesystem looks:
sda1 100mb: this one will be /boot
sda2 58gb: this one will be /
sda3 swap
fixed the fstab:
# Begin /etc/fstab
#file system mount-point type options dump fsck
# order
/dev/sda1 /boot ext3 defaults 1 1
/dev/sda2 / ext3 defaults 1
2
/dev/sda3 swap swap pri=1 0 0
proc /proc proc defaults 0
0
sysfs /sys sysfs defaults 0
0
devpts /dev/pts devpts gid=4,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
# End /etc/fstab
I installed the kernel and took every driver for SATA and SCSI just to
be sure that wont be an issue.
Then i mounted sda1 as /boot and copied the boot files System.map,
config-2.6.32.8, vmlinux-2.6.32.8-lfs-6.6.
This is my grub.cfg:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using
templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "GNU/Linux, with Linux 2.6.32.8-lfs-6.6" {
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set
dd263110-8c28-48f1-bb0e-5c779c97e9ac
linux /vmlinux-2.6.32.8-lfs-6.6 root=/dev/sda2 ro
}
menuentry "GNU/Linux, with Linux 2.6.32.8-lfs-6.6 (recovery mode)" {
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set
dd263110-8c28-48f1-bb0e-5c779c97e9ac
linux /vmlinux-2.6.32.8-lfs-6.6 root=/dev/sda2 ro single
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply
type the
# menu entries you want to add after this comment. Be careful not to
change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
i set the grub MBR to /dev/sda
when i reboot i get:
Kernel panic - not syncing: VFS; Unable to mount root fs on
unknown-block(2.0)
VFS: Cannot open root device "sda2" or unknown-block(2.0)
Please append a correct "root=" boot option; here are the available
partitions:
0b00 1048575 sr0 driver: sr
What could be the problem?
please help, i'm to close to fail now.
Thanks
// Mastah
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page