Visit Jeremy's Blog.
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 04-14-2010, 03:41 AM   #1
LQ Newbie
Registered: Jan 2010
Posts: 22

Rep: Reputation: 0
Unhappy Problem with section 8.4.3 of LFS 6.6 book (Testing the Grub configuration)

Dear all,

When I try and test the Grub configuration in section 8.4.3 of LFS 6.6 I get the output below:

root:/tmp# /sbin/reboot
WARNING: could not determine runlevel - doing soft reboot
(it's better to use shutdown instead of reboot from the command line)
shutdown: timeout opening/writing control channel /dev/initctl
init: timeout opening/writing control channel /dev/initctl
root:/tmp# ...
bash: ...: command not found
root:/tmp# grub> root (hd0,1)
bash: syntax error near unexpected token `('
root:/tmp# grub> kernel /boot/grub/core.img
bash: grub: command not found
root:/tmp# grub> boot
bash: grub: command not found

This seems fairly serious to me but I have no idea how to proceed.
Help (pointers) would be appreciated. I have searched the threads but have not found anything relevent. Also searched through google to no avail.

My grub.cfg file has 2 entries one normal and one recovery referencing the correct partition for the LFS system. This file looks ok.


Old 04-14-2010, 08:24 AM   #2
LQ Newbie
Registered: Mar 2010
Posts: 15

Rep: Reputation: 2
I got same error when installing lfs on my host system. I recommend you instead of using lfs grub boot loader,
use your host system grub loader. with the root account edit /boot/grub/menu.lst and add the following lines:
(I assume your lfs partition name is /dev/sda7 so the grub name of partition is (hd0,6) ):

title GNU/Linux LFS 6.6
root (hd0,6)
kernel /boot/vmlinuz- root=/dev/sda7 ro


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
problem in section 6.10 of lfs 6.5 aahiqmir Linux From Scratch 5 11-12-2009 06:49 AM
LFS - Adjusting the toolchain problem (book 6.4) charlie_lab Linux From Scratch 4 05-26-2009 04:20 AM
GCC command not found LFS book 6.3, section 6.7.1 cdc5205 Linux From Scratch 1 08-16-2008 01:56 PM
error using lfs while compiling lfs book's 6.12 (gcc-4.1.2) section aditya_gpch Linux From Scratch 3 04-24-2008 04:23 PM
LFS 4.1 book install hung at section 6.14: Glibc-2.3.1 SparceMatrix Linux From Scratch 4 05-30-2003 04:56 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 11:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration