Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GRUB2 trouble
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Krepi
n00b
n00b


Joined: 04 Jul 2014
Posts: 1

PostPosted: Fri Jul 04, 2014 8:06 am    Post subject: GRUB2 trouble Reply with quote

Hi all! First time gentoo installer here, having trouble with GRUB2. I hope this isn't in the wrong section - it's not legacy and I couldn't find my issue when I googled.

I'm trying to install GRUB2 as my bootloader on an EFI system that is going to run only gentoo. I've emerged GRUB2 with the command
Code:
emerge sys-boot/grub


My hard drive is configured so that /dev/sda1 is meant to be the efi partition, and I mount that in /boot/efi. I then try to run
Code:
grub2-install --target=x86_64-efi --efi-directory=/boot/efi --boot-directory=/boot

which is something I arrived at because
Code:
grub2-install /dev/sda

only gave me "efi distributor id not specified".

Now, to the actual problem: this generates the error message "mkdir: cannot create directory ‘/boot/efi/EFI’: Cannot allocate memory"

I realize that mkdir is telling me that it can't create the directory, but there is enough space to create a directory (partition is currently empty). I am in a chroot environment while doing these things. I don't know what's going on, and would be thankful for any help or explanations![/code]
Back to top
View user's profile Send private message
lunita
n00b
n00b


Joined: 06 Feb 2011
Posts: 31

PostPosted: Fri Jul 04, 2014 3:51 pm    Post subject: Reply with quote

See this post:

https://forums.gentoo.org/viewtopic-t-911394-start-0.html
http://forums-web1.gentoo.org/viewtopic-t-951520.html?sid=91b738b80736474caf1eee87d0d0de35

What's your 'free -m' output?

Check also limit and ulimit commands to see if there is any restriction.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum