< If you followed the the chapter about compiling and then configuring < grub you will have a menu.lst file in boot/grub your entry for root < might look something like root=/dev/hda# if you are doing lfs 6.5 and < using kernel 2.6.30.2 change your root entry to root=/dev/sd# and also < in your fstab file change all your hd entries to sd example /dev/hda1 < and /dev/hda5 will be /dev/sda1 and /dev/sda5
i did not install grub, it does not support my 64 bit system so i had to follow this guide to install grub2 http://www.linuxfromscratch.org/hints/downloads/files/grub2.txt but i used grub-install --root-directory=/ /dev/sda because i want to boot from sda1. > Just for clarity: the drivers are compiled in the kernel statically? how do you mean statically? > So you could start a grub shell when booting LFS and try "root (hd<TAB> > to see what's there, then fix it accordingly. Partition hd0,1: Filesystem type ext2, Last modification time............... Partition hd0,2: Unknown filesystem Partition hd0,3: Unknown filesystem > Can you show me the last few lines of the screen when the machine hangs? Root-NFS: no NFS server available, giving up. VFS: Unable to mount root fd via NFS, trying floppy. VFS: Cannot open root device "sda1" 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) Pid: 1, comm: swapper Not tainted 2.6.30.2 #1 do you want to see the call trace too? This is my fstab =============== /etc/fstab begin =================== # Begin /etc/fstab # file system mount-point type options dump fsck # order /dev/sda1 / ext3 defaults 1 1 /dev/sda2 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 =============== /etc/fstab end ====================== fdisk -l ===================================================== Device Boot Start End Blocks Id System /dev/sda1 * 1 487 3911796 83 Linux /dev/sda2 488 549 498015 82 Linux Swap / Solaris /dev/sda3 550 1044 3976087+ 83 Linux the script looks like this: ============== grub.cfg begin ======================== # # 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, Linux 2.6.30.2" { insmod ext2 set root=(hd0,1) search --no-floppy --fs-uuid --set e4adbac2-a338-4305-bafe-73f2adb307da linux /boot/vmlinux-2.6.30.2 root=/dev/sda1 ro } menuentry "GNU/Linux, Linux 2.6.30.2 (recovery mode)" { insmod ext2 set root=(hd0,1) search --no-floppy --fs-uuid --set e4adbac2-a338-4305-bafe-73f2adb307da linux /boot/vmlinux-2.6.30.2 root=/dev/sda1 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 ### =============== grub.cfg end ======================= Thanks for the help -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page