1

So I had a dual boot system where I had Windows and Ubuntu. Since windows wasn't needed I had deleted it. Now I'm not able to boot into anything as it says there is nothing to boot into.

I then used a live usb of Ubuntu 18.04. Using that I can access my Ubuntu as I see all my files and folders.

Running fdisk -l shows that I have Ubuntu installed on /dev/sda8 and there is grub installed on /dev/sda1.

Now it looks like this:

Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 0F9F7ABB-A37C-4FE7-8496-93B1538A2283

Device Start End Sectors Size Type
/dev/sda8 2048 500105215 500103168 238.5G Linux filesystem

/dev/sda8 disk contains 120+ Gb of data.

How can I enable grub at startup so I can boot into Ubuntu? I am a newbie in installing multi-OS so please let me know if any additional info is needed.

Gryu
  • 7,559
  • 9
  • 33
  • 52

1 Answers1

0

The easiest way:

  1. Backup your data
  2. Reinstall Ubuntu by creating proper partition sizes for EFI, boot, root and home partitions: 100Mb, 1Gb, 60Gb, 175+Gb
  3. Move your data back into /home partition

Without reinstalling:

  1. Using GParted shrink /dev/sda8 partition to get 1.2Gb of unallocated space. /dev/sda8 partition should be unmounted.

  2. Create a new partition for /boot/efi mount point of 100Mb size.

  3. Create a new partition for /boot mount point of residual Unallocated space - 1+Gb size.

  4. Try the next:

    sudo mount /dev/sda8 /mnt
    sudo mount /dev/sda5 /mnt/boot (see what it actually is in GParted or fdisk -l - it should be of 1+Gb size)
    sudo mount /dev/sda2 /mnt/boot/efi (see what it is in GParted - it should be 100Mb size)
    for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
    sudo chroot /mnt
    grub-install /dev/sda
    update-grub

Gryu
  • 7,559
  • 9
  • 33
  • 52