4

To get rid of Windows 10 I wiped the HDD using GParted on the Ubuntu 16.04 installation media. Accidentally I also wiped the "MBR", so that my HDD is absolutely clean. This means that nothing will boot. I can boot from an Ubuntu Live USB drive and install Ubuntu 16.04, but Ubuntu doesn't boot. I need to place the "MBR" back on the HDD, but I don't know how - I have tried to solve the problem by using the boot-repair-disk (ISO), but unfortunately it did not work.

enter image description here

Help would be greatly appreciated. Many thanks for your time. Sincerely, Duncan

cl-netbox
  • 31,491
Duncan
  • 1,113

3 Answers3

3

The screenshot that you provided shows that two partitions have a boot,esp flag, so something went wrong during the installation. If you had followed the linked Q&A - How to prepare a disk ..., it should have worked properly. Anyway, you are close to get it done and to make it more easy for you, I will provide you with individual instructions containing every important and necessary step.

  • Boot from the Ubuntu USB installation media (entry with UEFI in front) - select Try Ubuntu

  • On the Live desktop open GParted, right-click the swap partition (sda3) - click on Swapoff

  • Click Device in the top menu -> Click Create Partition Table -> Select gpt -> Click on Apply

  • Click Partition -> Create new Partition -> New size : 1024 MB | File system: fat32

  • Click Partition -> Create new Partition -> New size: 16384 MB | File system: linux-swap

  • Click Partition -> Create new Partition -> New size: remaining space | File system: ext4

  • Click on Apply button (green check mark) in the menu to apply the pending operations

  • Right-click the first partition (sda1) -> select Manage flags, then mark boot and esp

  • Close GParted - start the Ubuntu installation process - choose option "Something else"

  • Select the third partition (sda3) for Ubuntu - set / as mount point | ext4 as file system

  • Select /dev/sda as Device for boot loader installation ... start the installation process

  • Once finished shutdown the computer and remove the Ubuntu USB installation media.

Now Ubuntu should boot properly ... if not boot into BIOS and select Ubuntu as the default boot system. Here is a presentation I made which is showing the whole process -> Ubuntu installation
Additional information : What you wiped was not the "MBR" - it was the EFI partition of the disk. The EFI partition size of 1024 MB I suggested allows to add additional boot loaders ... if needed.

cl-netbox
  • 31,491
1

If you have no qualms about the disk being completely wiped, you should be able to go under device and select create new partition scheme. From there select MBR and apply changes. If your computer supports EFI, you can use GPT but it shouldn't make a huge amount of difference either way to you as an end user.

sbergeron
  • 2,670
-1

Many thanks to you all for your input. Unfortunately I could get none of the offered solutions to work - I'm sure the fault lay with me. Anyway, I did finally solve the problem by (after much trying) getting boot-repair-disk to work - I used a friends Windows 10 pc to download the iso and then created a startup disk using Rufus. I then loaded it through Bios and went into the "Advanced" options (in the boot-repair-disk program) - that did the trick. Once again, many thanks to you all for giving of your time and expertise so willingly. MUCH appreciated. Sincerely, Duncan.

Duncan
  • 1,113