I installed Ubuntu in dual boot with win10. When I tried to remove win10 and be in single boot (Ubuntu), My Grub menu didn't recognize the Ubuntu, and I can't boot into Ubuntu now.
I can boot into the flashed USB drive that I used to install Ubuntu, so the problem is not in the grub menu.
I tried to rub the bot-repair tool, but I got an error: GPT detected. Please create a BIOS-Boot partition (>1MB, unformatted filesystem, bios_grub flag). This can be performed via tools such as Gparted. Then try again.
I also used (parted) print command, and this is the output:
GNU Parted 3.3
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: ATA MTFDDAV512TBN-1A (scsi)
Disk /dev/sda: 512GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
6 1049kB 512GB 512GB ext4 boot, esp
I don't want to reinstall Ubuntu, but I will if it will be the only option.
EDIT: I accidentally deleted EFI system partition...