0

I deleted /dev/sda3, and now my system won't boot. I tried to use boot repair; but, it shows me an error message that says

GPT detected. Please create a BIOS-Boot partition

I created one but it doesn't work.

Gparted in photo of screen

The image above shows the /dev/sda3 partition before it was deleted

This is what it shows now (@Pilot6)

photo of screen showing terminal window below gparted window, hard to read

Zanna
  • 70,465

2 Answers2

2

You moved the first sector of your Ubuntu boot partition. That is why the loader does not know where to find it.

This can be easily fixed.

  1. Boot from a LiveUSB.

  2. Mount you Ubuntu partition to /mnt. I see that you have done that already. But in case you boot again run:

    sudo mount /dev/sda8 /mnt
    sudo mount --bind /dev /mnt/dev
    sudo mount --bind /proc /mnt/proc
    sudo mount --bind /sys  /mnt/sys
    
  3. Then chroot and update grub:

    sudo chroot /mnt
    sudo update-grub
    exit
    
  4. Reboot to Ubuntu a normal way.

You can also try Boot repair. But you need to know that your Ubuntu partition is sda8 and the EFI partition is sda6.

Pilot6
  • 90,100
  • 91
  • 213
  • 324
0

Try to install grub again, run these commands in terminal.

sudo grub-install /dev/sda

then run

sudo update-grub

Then follow Pilot6 answer.

Neil
  • 4,475
  • 3
  • 22
  • 34