You are not logged in.

#1 2011-08-20 20:26:38

mrmylanman
Member
From: Altamonte Springs, FL, USA
Registered: 2011-03-13
Posts: 178

[SOLVED] Trying to install GRUB2 on a UEFI system

Hey all,

I have an MSI Sandy Bridge motherboard which has a 64-bit UEFI.  It comes with a shell for what it's worth, but I cannot seem to get the final step in GRUB2's installation to work.

Here's exactly what I run into:

I got GRUB2 properly configured, load the efivars kernel module (verified that it is loaded by checking lsmod), and then issue the command:

efibootmgr --create --gpt --disk /dev/sdb --part 1 --write-signature --label "GRUB2" --loader "\\EFI\\grub\\grub.efi"

The issue I get in return is:

Fatal:  Couldn't open either sysfs or procfs directories for accessing EFI variables.
Try 'modprobe efivars' as root.

Problem is, that was already done.  I tried chrooting into the installation directory, and I am met with the same issue.  I am using the official arch installation media since it was recently updated and should be able to do EFI stuff, I'm thinking, but maybe I'm wrong.  I'm in the process of downloading Ubuntu's 11.10 alpha 3 installation media since 11.04 did not work either (couldn't load the module since the live cd was out of date, and the downloaded efibootmgr included efivars for a different kernel version I guess).

Either way, anyone have any other tips for me?  Is there any way I can utilize the EFI shell that came with my motherboard to make this work instead?

Last edited by mrmylanman (2011-08-20 21:30:48)


Arch user since 2011-03-13

Thinkpad X220 Intel Core i7-2640M CPU, 16GB DDR3-1333 RAM, 160GB Intel SATA II SSD & 60GB OCZ mSATA SSD, 12.5" IPS 1366x768 Display, 6-cell Battery
(Installation date:  2012-03-19)

Offline

#2 2011-08-20 21:30:31

mrmylanman
Member
From: Altamonte Springs, FL, USA
Registered: 2011-03-13
Posts: 178

Re: [SOLVED] Trying to install GRUB2 on a UEFI system

I just used Ubuntu 11.10 Alpha 3 to do the efibootmgr command, and it did succeed, and I have a UEFI listing for GRUB2 now, however I guess my motherboard handles this a little weird, and I have to go into the config screen to actually load GRUB.  Strange.  Sounds like it's my motherboard at this point and not Arch.  Carry on


Arch user since 2011-03-13

Thinkpad X220 Intel Core i7-2640M CPU, 16GB DDR3-1333 RAM, 160GB Intel SATA II SSD & 60GB OCZ mSATA SSD, 12.5" IPS 1366x768 Display, 6-cell Battery
(Installation date:  2012-03-19)

Offline

#3 2011-08-21 07:13:32

skodabenz
Banned
From: Tamilnadu, India
Registered: 2010-04-11
Posts: 382

Re: [SOLVED] Trying to install GRUB2 on a UEFI system


My new forum user/nick name is "the.ridikulus.rat" .

Offline

Board footer

Powered by FluxBB