Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub2 install fails
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
Dippmopser
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jun 2013
Posts: 92

PostPosted: Fri Nov 22, 2013 1:45 am    Post subject: grub2 install fails Reply with quote

Hello,

I installed an opensuse, as well as an ubuntu alongside gentoo.

In opensuse I had the option not to install a bootloader. So after the installation was finished, I booted into gentoo and ran:

Code:

grub2-mkconfig -o /boo/grub/grub.cfg
(all OSes showed up correctly)
grub2-install /dev/sda


Thereafter I installed ubuntu, that overwrote grub. So I booted again into gentoo and for some reason Gnome failed to start. So I logged in via terminal and ran the same instructions again.

Code:

grub2-mkconfig -o /boo/grub/grub.cfg
(all OSes showed up correctly)
grub2-install /dev/sda
(Here the following appears)
/usr/lib/grub/x86_64-efi doesn´t exist. Please specify --target or --directory


Why is that and what must be done to fix this?
Back to top
View user's profile Send private message
srs5694
Guru
Guru


Joined: 08 Mar 2004
Posts: 432
Location: Woonsocket, RI

PostPosted: Fri Nov 22, 2013 3:04 am    Post subject: Reply with quote

It looks like you've got a mixture of BIOS and EFI-mode GRUB. I have no idea why that should have changed within Gentoo, although I suppose it's conceivable that the GRUB scripts are trying to pluck files from both distributions' installations.

Could you elaborate on how you've installed everything? In particular, does your disk use GPT or MBR partitions, and in what mode what each distribution installed (EFI vs. BIOS)? Note that the latter is not obvious -- it's far too easy to install in BIOS mode when you meant to do it in EFI mode or vice-versa. Also, posting the output of "parted /dev/sda print" (and so on for additional disks, if present) may be helpful.
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1155

PostPosted: Fri Nov 22, 2013 10:08 am    Post subject: Reply with quote

I /boo you:
Code:
grub2-mkconfig -o /boo/grub/grub.cfg

/boot
!

If you have a running ubuntu grub, that is enough for all of your linux installations! I prefer Debian/ubuntu grub2, there is the maintainer, which is the most active upstream grub2 developer. And they provide a handy update-grub script.
_________________
fun2gen2
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