LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 09-10-2012, 07:27 PM   #1
cooperthehuman
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.

COOPER
 
Old 10-07-2012, 04:37 AM   #2
tlowk
Member
 
Registered: Nov 2003
Location: Belgium
Distribution: Slackware
Posts: 151

Rep: Reputation: 23
I used these for inspiration

to build:
https://help.ubuntu.com/community/UEFIBooting

to install
https://wiki.archlinux.org/index.php...UEFI_systems_2
http://wiki.gentoo.org/wiki/GRUB2#UEFI.2FGPT

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


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 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 02:49 PM
kcm-grub2 - No valid GRUB2/BURG installation could be detected cristi92b Linux - Newbie 2 06-14-2012 08:01 AM
[SOLVED] GRUB2 after a minor update of GRUB2 /boot prefix no longer needed?? wikapuki Linux - Software 1 10-24-2010 02:39 PM
Installing GRUB or GRUB2 from scratch williamv2 Linux - Newbie 10 03-31-2009 09:31 PM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 05:11 AM


All times are GMT -5. The time now is 11:49 PM.

Main Menu
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