First I want to say that LFS is a masterful piece of work.  I remain in awe
of the effort as I complete each chapter.

Unfortunately, when I got to Chapter 9.3 "shutdown -r now" LFS didn't boot.
Instead I get a grub rescue> prompt. 

 

Host System Info:

-          Dell Dimension 9200 Intel Quad Core Q6600 (~10 years old)

-          Host OS 64 bit Lubuntu 14.01

-          Partition Table msdos, not GPT

-          Boot files currently in host OS sda1 (not dedicated /boot
partition)

-          Lubuntu on sda1.  Swap sda5.

 

Target LFS:

-          64 bit only

-          On sda3, shares Swap (sda5)

 

Everything appeared to go well up to Chap. 8 - Making LFS System Bootable.
At kernel build I was

Careful to use "make defconfig" first and to select the two recommended
Generic Driver Option settings.

Examination of the saved .config file confirmed those settings.  Also
enabled most Kernel settings related

To SATA/PATA support. 

 

After executing grub-install and creating the modified grub.cfg for my
config I followed the remaining steps to restart.  I expected to see a login
prompt for LFS but instead get grub rescue prompt. 

 

I've examined the support-posts (particularly the recent Fail To Boot
thread), kernel options and Grub2 documentation but I still don't see what I
missed.  Best I can determine is that Grub doesn't see
vmlinuz-3.16.2-lfs-7.6 and or/necessary files on the LFS(sda3) partition to
begin initramfs.  When the "grub-install" command was issued it delivered a
successful response.  

 

Using a live "boot-repair" CD I can restore the boot loader to boot to the
Lubuntu host but I cannot manually boot to LFS(sda3) under any
circumstances.  The live CD shows sda3 flag is set to boot, but it doesn't
see files it expects on sda3 to begin booting. 

 

What could I have missed that prevents LFS 7.6 from booting?  I've
recompiled the kernel numerous times enabling more components but it hasn't
made any difference.  Also installed the grub2-beta from the errata page.
It installed fine and also delivered a successful message when grub-install
was issued, but it didn't solve the problem. 

 

I'm hoping it's an embarrassingly simple oversight, but it's one I haven't
been able to find. 

 

Thanks in advance.  Richard.

 

fstab: [manually typed here]

 

# file system                      mount-point                      type
options                                 dump                    fsck

#
order

/dev/sda3                           /
ext4                       defaults                               1
1

/dev/sda5                           swap
swap                     pri=1                                      0
0

proc                                       /proc
proc                       nosuid,noexec,nodev    0
0

sysfs                                      /sys
sysfs                      nosuid,noexec,nodev    0
0

devpts                                  /dev/pts
devpts                  gid=5, mode=620             0
0

tmpfs                                    /run
tmpfs                    defaults                               0
0

devtmpfs                            /dev
devtmpfs            devtmpfs mode=0755, nosuid   0              0

 

#End /etc/fstab

 

grub.cfg [manually typed here]

#Begin /boot/grub/grub.cfg

set default=0

set timeout=5

insmod part_msdos

insmod ext2

set root='hd0,msdos3'

menuentry "GNU/Linux, , Linux 3.16.2-lfs-7.6" {

linux   /boot/vmlinuz-3.16.2-lfs-7.6 root=/dev/sda3 ro

}

Using the live Boot-Repair CD to profile sda it showed the following info
about the host OS partition (sda1) and LFS partition (sda3).  This suggests
the LFS partition not ready to boot, as far as I can determine. 

 

=================== PARTITIONS & DISKS:========

sda1       : sda,     not-sepboot,     grubenv-ok        grub2,   grub-pc ,
update-grub,     64,          

with-boot,          is-os,     not--efi--part,   fstab-without-boot,
fstab-without-efi,            no-nt,   

no-winload,        no-recov-nor-hid,            no-bmgr,
notwinboot,       apt-get,                grub-install,        with--

usr,        fstab-without-usr,           not-sep-usr,       standard,
not-far,                /mnt/boot-sav/sda1.

 

sda3       : sda,     maybesepboot,                no-grubenv        nogrub,
no-docgrub,       no-update-grub,              

32,          no-boot,              no-os,   not--efi--part,
part-has-no-fstab,           part-has-no-fstab,           no-nt,   no-

winload,               no-recov-nor-hid,            no-bmgr,
notwinboot,       nopakmgr,          nogrubinstall,    no---usr,


part-has-no-fstab,           not-sep-usr,       standard,
not-far,                /mnt/boot-sav/sda3.

 

sda         : not-GPT,           BIOSboot-not-needed, has-no-EFIpart,
not-usb,               has-os, 2048 

sectors * 512 bytes

 

 

 

 

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

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to