Jump to content
  • 0

Can't install GRUB on GPT HDD (UEFI boot)


4 answers to this question

Recommended Posts

  • 0

Bodhi and Grub can very well handle GPT disks and the UEFI type of Bios. But:


This has happened to me a few times and I have heard of others suffering from it. I'm still trying to debug the fenomenen.
You can correct this.
Most simple would be having another working Linux and running 
sudo update-grub
once booted in there. This way you could boot into your new Bodhi using the other bootloader.
The second way is using a live CD (64bit). I will explain how:
First determine the partition your new install is on, let's presume sdaX for your system and sdaY for your Efi-partition
Use sudo parted -l to get a nice listing of your HDD. In the commands replace sdaX and sdaY with your real partitions.
cd /
sudo su
mount -t ext4 /dev/sdaX /mnt
mount -t proc proc /mnt/proc
mount -t sysfs sys /mnt/sys
mount -o bind /dev /mnt/dev
mount -t vfat dev/sdaY /mnt/boot/efi

#  might be needed for going online:
cp -L /etc/resolv.conf /mnt/etc/resolv.conf

# next step will let you enter the Bodhi-Install.
chroot /mnt /bin/bash

# for working with grub do
grep -v rootfs /proc/mounts > /etc/mtab

# additional helpers and reminder
source /etc/profile
export PS1="(chroot) $PS1"  # add a reminder to your prompt
Now the extra work for the Grub installation. First get the right packages:
apt-get update
apt-get install efibootmgr grub-common grub2-common grub-efi-amd64-bin grub-efi-amd64 grub-efi grub-efi-amd64-signed secureboot-db shim shim-signed

grub-install /dev/sda
That should be enough, now you have to clean-up all you did.
Make sure you have left no running programs in the chroot.
umount /mnt/boot/efi
umount /mnt/{proc,sys,dev}

umount /mnt
In case of error you should check if there is a program left running in the Chroot-environment or if a mountpoint within /mnt is still in use.
If done well you now should be able to boot to "Ubuntu" that in fact is Bodhi. That naming is something that can be changed, but let's do this first.
Edited by Charles@Bodhi
corrected grub commands

Share this post

Link to post
Share on other sites
  • 0

Installing Bodhi in uefi is exactly the same as installing other linux OS in uefi - no problems - simple and straitforward.

Just make sure of 2 things.

o Install media is booted in uefi

o mount point of /boot/efi to the ESP (vfat) partition.


That's it.


ps: if you have existing (particularly windows) OS, just make sure you do not format the ESP (/boot/efi) partition when installing.

Share this post

Link to post
Share on other sites
  • 0

What hardware are you running? First of all you may want to google your PC and see if others have had similar problems. Seems as though some vendors have created UEFI (what most think of as BIOS) that is, how shall I say, specialized or non-conforming, making it difficult to do installs. You might also want to make sure that Secure Boot is turned off in your BIOS (ahem, UEFI firmware).



Please keep us posted on how it's going. These are exactly the issues we're trying to sort out right now.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now