LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Setting up the boot process problem using GRUB on an LFS system! (https://www.linuxquestions.org/questions/linux-from-scratch-13/setting-up-the-boot-process-problem-using-grub-on-an-lfs-system-866776/)

linuxpicaxe 03-06-2011 11:18 AM

Setting up the boot process problem using GRUB on an LFS system!
 
Hello everyone!

Love to say i'm here because my LFS works .... but it doesn't :(


Ok, I'm using the book version 6.7 and i'm on chapter 8.4.

Im having problems with the last section of this page.

On issuing the following commands from the book:

Code:

/sbin/reboot
...
grub> root (hd0,1)
grub> kernel /boot/grub/core.img
grub> boot

(except with a different hard drive identifier)
I get the following output from the terminal:

Code:

root:/# /sbin/reboot
WARNING: could not determine runlevel - doing soft reboot
  (it's better to use shutdown instead of reboot from the command line)
shutdown: /dev/initctl: No such file or directory
init: /dev/initctl: No such file or directory
root:/# grub> root (hd1,3)
bash: syntax error near unexpected token `('
root:/# grub> root(hd1,)
bash: syntax error near unexpected token `('
root:/#

So something has gone wrong somewhere! But i'm not quite sure where. It seems as though grub isn't running for some reason. Any help appreciated!

Thanks!

EDIT: Could this be anything to do with broken symlinks at all?

druuna 03-07-2011 04:12 AM

Hi,

Do you have grub legacy on your host? If not, you cannot do step 8.4.3 (as stated in the book: so if you already have GRUB Legacy loaded you can load GRUB-1.98 through your old boot loader).

grub legacy and grub 1.98 are not the same!!

BTW: You can go 2 ways with grub:

1) Skip installing and configuring grub in LFS and use the boot-loader that starts your host (you do need to add an entry that points to LFS).
or
2) Install and configure grub that came with LFS (and possibly add an entry for your current host).

I personally use the grub that comes with LFS, this because (B)LFS is my main OS. If you only plan to play with LFS and want to keep your current host as main OS, I would use the boot-loader that came with your host.

Hope this helps.


All times are GMT -5. The time now is 12:15 PM.