Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 09-10-2012, 08:27 PM   #1
LQ Newbie
Registered: Sep 2012
Posts: 1

Rep: Reputation: Disabled
Grub2 + EFI from scratch

Hi, I'm running a CentOS 6.0 (32bit) VM (VMware fusion) and trying to get the VM to boot via EFI. I've created the efi system partition (vfat, 1st partition, 100M) and have a /boot (ext3) and / (ext3) in this VM. I've set up a GPT and it still boots fine with non-efi BIOS boot. Now I'm trying to get GRUB2 in here to finish off what I believe I need to to get the EFI boot to work.

I'm trying to compile grub2. I'm seeing "Platform: i386-pc" and (I'm not sure) but I think I need this to be i386-efi or, even better, x86_64 because I've read that all EFIs (aside from mac) x86_64. My question is: does building grub2 on a BIOS booted / 32bit environment prevent me from being able to use the generated tools for x86_64-efi and EFI booting? It seems when I do a grub-mkconfig -O x86_64-efi -d . [etc.] it's not happy. I'd like to see /usr/lib/grub/x86_64-efi get created, instead I'm seeing only /usr/lib/grub/i386-pc. Possibly there's a ./configure parameter I haven't found yet.

I'm also looking for any feedback/input on creating all of this from scratch. The CentOS install disks I've found don't have an ESP so I'm not able to actually install an EFI based installation unfortunately. It's been non-stop chicken-and-egg. Thank you.

Old 10-07-2012, 05:37 AM   #2
Registered: Nov 2003
Location: Belgium
Distribution: Slackware
Posts: 182

Rep: Reputation: 25
I used these for inspiration

to build:

to install

I first made a usb drive with an efi grub, that way I could build a kernel with EFI
support and get it working.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
EFI main GPT overwritten everytime (when windows 7 runs) - structure of EFI masuch Linux - Newbie 2 07-20-2012 03:49 PM
kcm-grub2 - No valid GRUB2/BURG installation could be detected cristi92b Linux - Newbie 2 06-14-2012 09:01 AM
[SOLVED] GRUB2 after a minor update of GRUB2 /boot prefix no longer needed?? wikapuki Linux - Software 1 10-24-2010 03:39 PM
Installing GRUB or GRUB2 from scratch williamv2 Linux - Newbie 10 03-31-2009 10:31 PM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 06:11 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:09 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