actionmystique
February 15th, 2015, 10:49 AM
I couldn't find online the correct procedure for recent Ubuntu releases with a typical installation on an EFI system. The following steps can be applied on an Ubuntu system with at least 2 partitions:
- a boot partition
- another partition for /.
I successfully tested them on Ubuntu 14.10:
sudo mount /dev/sda2 /mnt # Mount 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 # Bind the directories that grub needs access to to detect other OS
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo mount --bind /run /mnt/run
sudo mount --bind /dev/pts /mnt/dev/pts
sudo chroot /mnt # Jump to your installation
grub-install /dev/sda
grub-install --recheck /dev/sda
update-grub
CTRL-D
sudo reboot
- a boot partition
- another partition for /.
I successfully tested them on Ubuntu 14.10:
sudo mount /dev/sda2 /mnt # Mount 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 # Bind the directories that grub needs access to to detect other OS
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo mount --bind /run /mnt/run
sudo mount --bind /dev/pts /mnt/dev/pts
sudo chroot /mnt # Jump to your installation
grub-install /dev/sda
grub-install --recheck /dev/sda
update-grub
CTRL-D
sudo reboot