LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 10-11-2007, 08:53 AM   #1
michealoc
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.
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.
 
  


Reply


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 10:56 AM
Missing initrd image neogeek23 Linux - Kernel 1 12-24-2006 02:29 PM
mounting the initrd image d0tc0mguy Linux - Newbie 1 09-29-2006 06:16 AM
if I boot from slack-CD1, how to load initrd image file jiawj Slackware 6 03-31-2005 04:05 PM
What's initrd image? Nerox Linux - Newbie 2 08-25-2004 05:53 PM


All times are GMT -5. The time now is 06:39 AM.

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