4

I have a dual boot Win 10 - Ubuntu 16.04 on my PC and wanted to run Ubuntu after more than a year without using it. Choosing Ubuntu in the GRUB worked, but the initialisation process got stuck in the loading phase with the Ubuntu logo. This had already occurred in the past after major Win 10 updates and was usually fixed by running boot-repair from a live USB.

I tried running boot-repair from a live USB (Ubuntu 20.04) but it kept showing the following error :

Please create a ESP partition (>1MB, fat boot flag). This can be performed via tools such as Gparted. Then try again.

I wonder why this error appears as there is an EFI partition on sda2. More details: my boot-repair log file

Besides, I earlier managed to launch Ubuntu once by tapping e on the Ubuntu entry from the GRUB bootloader, and adding acpi=off at the end of the line linux ..., followed by CTRL+X (I assume this is more specific to my Lenovo Yoga 2 Pro laptop). Unfortunately after rebooting I could not repeat that step, and the GRUB bootloader screen has now been replaced by a grub console...

Any help would be very much appreciated !

Kind regards,

Valentin

ValentinM
  • 43
  • 4
  • Ignore that error for now. I will ask Yann about it and a couple other things in the report. He just changed a couple of things I suggested recently. If issue with ESP, then message should be > 100MB for ESP or >1 for bios_grub. – oldfred May 16 '20 at 22:12
  • @Oskar 's suggestion to remove the hidden flag worked for me. my boot-repair log file – ValentinM May 19 '20 at 07:43
  • Yyou have Windows fast start up on, turn that off. http://askubuntu.com/questions/843153/ubuntu-16-showing-windows-10-partitions & https://askubuntu.com/questions/145902/unable-to-mount-windows-ntfs-filesystem-due-to-hibernation And you have a lot of really old kernels. Many upgrades? Best to houseclean. And if not in dpkg/apt, you have to manually delete with rm. https://help.ubuntu.com/community/RemoveOldKernels & https://askubuntu.com/questions/89710/how-do-i-free-up-more-space-in-boot/90219#90219 & https://askubuntu.com/questions/301466/files-are-piling-up-in-usr-src-how-can-i-stop-this – oldfred May 19 '20 at 14:22
  • Thanks for the recommendations, I have been able to recover the info I needed and made a clean install of Ubuntu 20.04 – ValentinM May 21 '20 at 16:44

2 Answers2

5

I had a similar issue. My EFI partition had a hidden flag, for some reason. After removing that flag (using GParted) boot-repair worked.

Oskar
  • 66
  • 1
0

Problem

Caused because of hidden flag in your EFI partition

Solution

  1. Open terminal and type gparted. Press enter
  2. Locate your EFI partion (usually it will at the top either sda1 or sda2)
  3. Right click on the EFI partion, click on manage flags
  4. Uncheck the hidden checkbox
  5. You can now run boot-repair, apply recommened repair and it will work successfully.

That's all!

note: if boot-repair still fails after doing all the above steps. Reboot your system and try boot-repair again.

Simon Sudler
  • 3,931
  • 3
  • 21
  • 34