Hello there,
Problem: Cannot boot new LFS.
I have just rebuilt the LFS 6.3
With chroot to $LFS I can run the sanity checks using dummy.c as per section 6.10 Re-adjusting the Toolchain. All ok.
Linux 2.6.22.5
gcc 4.1.1 [not the 4.1.2 in LFS book 6.3]
The Hard drive partitions are as follows:
Code:
#df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
99698064 2477316 92074536 3% /
/dev/hda1 101086 16096 79771 17% /boot
tmpfs 960000 0 960000 0% /dev/shm
/dev/mapper/VolGroup00-LogVol02
24789644 1485968 22024088 7% /opt
/dev/mapper/VolGroup00-LogVol03
24821628 176300 23364100 1% /tmp
/dev/mapper/VolGroup00-LogVol02
24789644 1485968 22024088 7% /mnt/lfs
From grub prompt:
Code:
grub> find /grub/stage1
(hd0,0)
Grub is already installed on MBR (hd0) so I didn't run "setup (hd0)"
I just edited the existing grub file. Not sure about this.
In Section 8.4 the grub configuration is set up from LFS without an initrd image.
Code:
title LFS 6.3
root (hd0,0)
kernel /opt/boot/lfskernel-2.6.22.5 root=/dev/VolGroup00/LogVol02 pci=nommconf
title Red Hat Enterprise Linux Server (2.6.18-8.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-8.el5 root=/dev/VolGroup00/LogVol00 pci=nommconf rhgb quiet crashkernel=128M@16M
initrd /initrd-2.6.18-8.el5.img
I tried the above kernel line with and without "/opt" in the boot fails with the following message:
Code:
Booting 'LFS 6.3'
root (hd0,0)
Filesystem type is ext2fs, partitiion type 0x83
kernel [/opt]/boot/lfskernel-2.6.22.5 root=/dev/VolGroup00/LogVol02 pci=nommconf
Error 15: File not found
I cannot figure out how to boot to the newly built LFS.
Dose the standalone entry in the grub file "root (hd0,0)" dictate that there must be a kernel at that exact location, i.e. not a sub directory of (hd0,0)= hda1?
If so do I need to copy the new LFS kernel file to the old /boot folder?
Dose the "root=/dev/VolGroup00/LogVol02" effectively chroot to that location?
Dose the boot need an initrd image when booting in with LVM partitions?
How can I create the correct initrd image for 2.6.22.5?
In a nutshell, everything is built, any idea how I can boot it?
Thanks,
M.