Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 10-11-2007, 07:53 AM   #1
LQ Newbie
Registered: Aug 2007
Posts: 3

Rep: Reputation: 0
LFS: Cannot boot : Need initrd image?

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.
gcc 4.1.1 [not the 4.1.2 in LFS book 6.3]

The Hard drive partitions are as follows:

Filesystem    1K-blocks   Used 	  Available   Use% Mounted on
              99698064 	  2477316 92074536    3%     /
/dev/hda1     101086   	  16096   79771       17%    /boot
tmpfs         960000      0       960000      0%     /dev/shm
              24789644    1485968 22024088    7%     /opt
              24821628    176300  23364100    1%     /tmp
             24789644     1485968 22024088    7%     /mnt/lfs

From grub prompt:
grub> find /grub/stage1 
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.

title LFS 6.3
     root (hd0,0)
     kernel /opt/boot/lfskernel- 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:

  Booting 'LFS 6.3'

root (hd0,0)
 Filesystem type is ext2fs, partitiion type 0x83
kernel [/opt]/boot/lfskernel- 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

In a nutshell, everything is built, any idea how I can boot it?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Make new initrd image qewldude Fedora - Installation 3 02-15-2008 09:56 AM
Missing initrd image neogeek23 Linux - Kernel 1 12-24-2006 01:29 PM
mounting the initrd image d0tc0mguy Linux - Newbie 1 09-29-2006 05:16 AM
if I boot from slack-CD1, how to load initrd image file jiawj Slackware 6 03-31-2005 03:05 PM
What's initrd image? Nerox Linux - Newbie 2 08-25-2004 04:53 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration