LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 05-08-2015, 02:07 PM   #1
crono1023
LQ Newbie
 
Registered: May 2015
Posts: 1

Rep: Reputation: Disabled
Grub / Booting trouble


I followed the CBLFS 3.0 book for a multi-lib system. My issue is with grub2. My system has 2 hard disk's, one with Win 8 and the other has partitions for my host OS (slackware) and on another partion(s) LFS. Windows and slackware are both booting via EFI and I'm using rEFInd boot manger to switch between the slackware and windows 8 currently. I have not been able to get eEFInd to detect the LFS installation. I don't know how to configure grub so it sets up the EFI correctly. Do I need to mount the EFI partition from LFS and then try to install grub? I'm lost honestly. I am good with MBR booting but UEFI is foreign to me. There's not much mention of EFI on the Grub section of the clfs book.

I have managed to boot LFS only by flashing grub to /dev/sdb6 and now my computer tries to load grub from the MBR. (It loads to the grub prompt and if I put in: configfile (hd1,msdos6)/boot/grub/grub.cfg poof it starts up the grub menu which allows me to boot. Can anyone point me in the right direction to getting LFS booting via EFI? Any advice is greatly appreciated.
 
Old 05-09-2015, 07:31 PM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
LFS currently only works with standard MBR partitions, not GPT. There has been no word yet on how to install the appropriate tools for using EFI+GPT partitions yet.

You can try using legacy MBR within your BIOS.
 
Old 05-10-2015, 09:59 AM   #3
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
My Linux From Scratch system works just fine on a GPT disk both booting from the natively compiled and installed GRUB in non-EFI mode and from gummiboot installed and configured from my Arch system.

Make sure your kernel configuration has "CONFIG_EFI_STUB=y" to boot the kernel image with rEFInd
https://www.kernel.org/doc/Documentation/efi-stub.txt
 
Old 05-10-2015, 10:30 AM   #4
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Legacy BIOS was what I meant, not GPT. Darn old age.
 
1 members found this post helpful.
Old 05-11-2015, 01:02 PM   #5
luvr
Member
 
Registered: May 2005
Location: Boom - The Home Town of Tomorrowland, Belgium
Distribution: Slackware, Xubuntu
Posts: 459
Blog Entries: 2

Rep: Reputation: 194Reputation: 194
Quote:
Originally Posted by crono1023 View Post
I don't know how to configure grub so it sets up the EFI correctly.
I do not have any experience with EFI, so I cannot offer you a definitive answer, but I do notice that the LFS Book specifies the ‘--disable-efiemu’ option on the configure step for GRUB2. My guess would be that you will have to replace that with ‘--enable-efiemu’ if you want to build EFI support into the GRUB2 boot loader.

Other than that, I don’t have any suggestions to offer on this subject.
 
  


Reply



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
having trouble booting DSL with grub v1nsai Linux - Software 4 05-13-2009 09:36 PM
fedora 7: trouble booting into windows from grub bootloader van_3k Linux - Newbie 1 07-30-2007 02:32 PM
Trouble multi booting with GRUB Ramlamb Linux - Software 4 08-25-2005 01:38 AM
Trouble booting new SATA partition with Grub ridensnow23 Linux - Hardware 9 05-29-2005 12:15 PM
Trouble booting GRUB from floppy... vinoloco Linux - Newbie 2 02-07-2005 08:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 04:36 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
Open Source Consulting | Domain Registration