A note to clarify expectations on an UEFI system.

If the installer boots in UEFI mode the installer detects this through
the presence of the EFI variables node in the sysfs at
/sys/firmware/efi/vars. In this case the grub-efi package and its
dependencies is selected, installed, and configured.

The installation target disk-label (MBR or GPT) has *no* place in the
choice of grub-efi or grub-pc. The UEFI standard mandates support for
UEFI boot from GPT (with an EFI System Partition [0xEF00 in gdisk
tools]) or MBR (with partition type 0xEF) partitioned devices.

On UEFI systems to ensure an installation for CSM (Compatibility Support
Module)/Legacy BIOS + grub-pc boot the *installer* must be booted using
the CSM/Legacy mode.

To fix this after the installer has completed (only in Try .. mode on
Live images) the user needs to manually change the installation via
terminal commands and a 'chroot'. Satisfy yourself the installation is
correct and successful before rebooting. If unclear ask for help on IRC
channel #ubuntu on the Freenode network; mention the phrase "bug
#1013595" in your request.

( lines beginning with # are only comments and should not be typed)
E.g:

sudo -i

[ -d /target/etc ] || echo "Root file-system is not mounted at /target/,
please fix that and retry this command before continuing"

# mount the kernel file-systems in the target
for n in proc sys run dev dev/pts etc/resolv.conf; do mount --bind /$n 
/target/$n; done

chroot /target
# now operating in the installed environment; should have network access and DNS

mount -a
umount /boot/efi

# remove the EFI file-system from the auto-mount table
sed -i '/boot\/efi/ d' /etc/fstab

apt-get remove 'grub-efi*'
apt-get install grub-pc
lsblk -f
grub-install /dev/sdX # replace X with the correct disk id
update-grub

# check the installation is correct

exit

# back in the installer environment
reboot

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1013595

Title:
  Ubuntu installer installed grub-efi (instead of grub-pc) on non-GPT
  disk --> does not boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1013595/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to