Ubuntu – Unable to install Ubuntu on Acer Aspire ES1-533

efibootmgrsystem-installationuefi

I bought this computer and wanted to install Ubuntu on it. The problem is that I have been unsuccessful for more than 3 weeks.
The computer comes with UEFI of very limited capabilities. It cannot be switched to legacy and there is no option select an UEFI file as trusted for execution. The only thing which can be done is to enable/disable secure boot.

Now about the problem. I tried to install Ubuntu at first in automatic mode, then also with manual partitioning in something else. In both cases the installation crashes when installing grub2 to /dev/sda and the computer hangs.

Then I decided to install without boot loader using ubiquity -b.
This worked well and the installation finished without any trouble.
Finally I tried to install boot loader manually using grub-install. And here I come to the same point – computer hangs.

here the grub-install freezes

So the problem is when efibootmgr tries to register the new entry in the UEFI.
I also confirmed it by running this:

_sudo efibootmgr -c -d /dev/sda -p 1 -w -L ubuntu_ 

after which it again hangs.

My idea how to make it work is following:

Install Ubuntu without bootloader, install the bootloader manually without trying to register new entry to UEFI, move the bootloader from /EFI/ubuntu/ to /EFI/BOOT/ and rename it to bootx64.efi. Then I am nearly sure it will work.

Is anybody able to advise on how to:

  1. perform grub-install without trying to register new UEFI entry by efibootmgr so that it goes through and does not make the computer freeze?

  2. What files from /EFI/ubuntu/ I should copy to /EFI/BOOT and which of them should I rename to bootx64.efi?

  3. If this is not the good way to go, what would be the better solution.

Thanks for any advice.

Best Answer

The problem can be solved as follows:

  1. Boot Ubuntu Live DVD/USB in testing mode and open terminal

  2. Run installation process without installing bootloader by:

    sudo ubiquity -b
    
  3. Press Continue testing after installation is over.

  4. Mount newly installed file system on /mnt:

    sudo mount /dev/sda2 /mnt
    sudo mkdir /mnt/boot/efi
    sudo mount /dev/sda1 /mnt/boot/efi
    for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt$i; done
    

(where sda2 is the root partition and sda1 is the EFI system partition)

  1. Load efivars by:

    sudo modprobe efivars
    
  2. Reinstall grub-install for a 64-bit version

    sudo apt-get install --reinstall grub-efi-amd64
    sudo grub-install --no-nvram --root-directory=/mnt
    
  3. Change root to /mnt and update grub

    sudo chroot /mnt
    update-grub
    
  4. Move and rename the installed bootloader

    cd /boot/efi/EFI
    cp -R ubuntu/* BOOT/
    cd BOOT
    cp grubx64.efi bootx64.efi
    
  5. Reboot the system.

Further details can be found here:

Acer community discussion