Hi all, I've completed most of LFS 6.6. I'm on Chapter 8 of the final stages of trying to get it to boot independently of the host Linux system. It keeps stopping with a kernel panic message and/or "error: invalid signature" depending on how I try to launch it. Here are some background details.
- Periodically do LFS builds primarily to maintain and increase my Linux knowledge. - Using VMware Workstation 7.1 - Installed Ubuntu 10.4 onto one virtual disk. System sees this disk as /dev/sda - Ran through LFS 6.6. - Added another Vmware disk for LFS. Ubuntu and LFS see this disk as /dev/sdb. All of the LFS is on this disk. (sdb1) - Added another VMware disk for LFS swap. Ubuntu and LFS see this disk as /dev/sdc - Aside from some minor build issues, build went ok. Unfortunately, I'm up against my knowledge of GRUB and Linux kernel. Here is how I'm executing the final steps: # Begin /etc/fstab # file system mount-point type options dump fsck # order /dev/sdb1 / ext3 defaults 1 1 /dev/sdc1 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 Executed 8.3 steps. The file set is as follows: root:/boot# more /boot/ System.map-2.6.32.8 config-2.6.32.8 vmlinux-2.6.32.8 root:/boot# grub-mkdevicemap --device-map=device.map root:/boot# cat device.map (fd0) /dev/fd0 (hd0) /dev/sda (hd1) /dev/sdb (hd2) /dev/sdc root:/boot# grub-install --grub-setup=/bin/true /dev/sdb Installation finished. No error reported. This is the contents of the device map /boot/grub/device.map. Check if this is correct or not. If any of the lines is incorrect, fix it and re-run the script `grub-install'. (fd0) /dev/fd0 (hd0) /dev/sda (hd1) /dev/sdb (hd2) /dev/sdc root:/boot# grub-mkconfig -o /boot/grub/grub.cfg Generating grub.cfg ... Found linux image: /boot/vmlinux-2.6.32.8 done ..snip.. menuentry "GNU/Linux, with Linux 2.6.32.8" { insmod ext2 set root=(hd1,1) search --no-floppy --fs-uuid --set b9103db0-c62f-4977-837b-e78ca7c85780 linux /boot/vmlinux-2.6.32.8 root=/dev/sdb1 ro } ..snip.. root:/boot# grub-setup /dev/sdb At this point, my understanding is that the system should be in a state to boot. In order to get Ubuntu to boot it, I'm altering the GRUB2 config file on Ubuntu and adding a chain loader as follows: ### 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. menuentry "LFS" { set root=(hd1,1) chainloader +1 } ### END /etc/grub.d/40_custom ### When I reboot to the Ubuntu GRUB2 loader screen and choose the LFS entry, the only error message displayed is "error: invalid signature press any key to continue.." If I then try to manually enter commands as follows, I get: grub> root (hd1,1) grub> linux /boot/vmlinux-2.6.32.8 root=/dev/sdb1 grub> boot VFS: Unable to mount root fs via NFS, trying floppy. VFS: Cannot open root device "sdb1" or unknown-block(2,0) Please append a correct "root=" boot option; here are the available partitions: 0b00 1048575 sr0 driver: sr Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0?) Could someone point me in the right direction? Thanks for the help, Chris
-- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page