Created
June 18, 2018 14:08
-
-
Save zer0beat/cd6753fce59980f76d083e543326ff04 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# source: https://askubuntu.com/questions/53578/can-i-install-in-uefi-mode-with-the-alternate-installer/57380#57380 | |
### Mounting ### | |
sudo mount /dev/sda# /mnt #Mount root (/) partition | |
sudo mount /dev/sda# /mnt/boot #Mount boot (/boot) partition | |
(if separate from root partition) | |
sudo mkdir -p /mnt/boot/efi #Create EFI partition mount point | |
sudo mount /dev/sda1 /mnt/boot/efi #Mount EFI partition | |
sudo mount --bind /dev /mnt/dev | |
sudo mount --bind /proc /mnt/proc | |
sudo mount --bind /sys /mnt/sys | |
sudo chroot /mnt #Chroot to your installation | |
### Installing ### | |
apt-get install grub-efi-amd64 #Install grub EFI bootloader | |
grub-install --recheck --no-floppy --force | |
#Install grub bootloader in EFI partition | |
echo "configfile (hd0,gpt#)/boot/grub.cfg" > /boot/efi/ubuntu/grub.cfg | |
#Tell grub to load grub.cfg from /boot | |
update-grub #Create grub menu list | |
exit #Exit chroot | |
### Unmounting ### | |
sudo umount /mnt/dev | |
sudo umount /mnt/proc | |
sudo umount /mnt/sys | |
sudo umount /mnt/boot/efi | |
sudo umount /mnt/boot | |
sudo umount /mnt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment