On Mon, 1 Aug 2011 15:59:45 +0800 Frederick Muriithi <[email protected]> wrote:
> After installing grub according to chapter 8 of the LFS book (LFS > 6.8), I tried to boot into my new lfs system and got the following > sample output on the screen: > > [ 3.584997] VFS: Cannot open root device "hda6" or unknown-block(0,0) Are you sure that the root partition was hda6? These days libata handles almost all hard disks and it calls them sda, sdb, etc. Try putting root=/dev/sda6 in your grub.cfg > [ 3.585205] Please append a correct "root=" boot option; here are the > available partitions: > [ 3.585482] Kernel panic - not syncing: VFS: Unable to mount root fs > on unknown-block(0,0) > [ 3.585754] Pid: 1, comm: swapper Not tainted 2.6.37 #1 > [ 3.585911] Call Trace: > [ 3.586084] [<c145f114>] ? printk+0xf/0x11 > [ 3.586243] [<c145f00a>] panic+0x50/0x14b > [ 3.586404] [<c16a9b9d>] mount_block_root+0x1e3/0x1f2 > [ 3.586565] [<c10c0678>] ? sys_mknod+0x13/0x15 > [ 3.586722] [<c16a9cf3>] mount_root+0x8e/0x96 > [ 3.586880] [<c16a9e40>] prepare_namespace+0x145/0x16c > [ 3.587045] [<c16a98f7>] kernel_init+0x195/0x1a4 > [ 3.587204] [<c16a9762>] ? kernel_init+0x0/0x1a4 > [ 3.587363] [<c1002ef6>] kernel_thread_helper+0x6/0x10 > > I could not find the boot log file (/var/log/boot.log) If / isn't mounted then the kernel can't write to the disk. > I transcribed the screen output as faithfully as I could. > I'd appreciate any pointers to my error, so I may correct them. Make sure that you've compiled everything that your kernel needs to boot into the kernel (no modules, just say y not m). To find out what hardware you have use lspci and read through the kernel config help text to guide you (it takes hours). Another important source of information is to boot a live CD (ubunut, fedora, whatever) and use lsmod to see what modules their kernel has loaded. Compile them _all_into_ your kernel. Once you've got a basic kernel that boots you can then tweak it by recompiling with new options. Always keep an old one that works somewhere in your grub.cfg. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
