2

When I working on a hard drive, making a live partition on it, I accidentally deleted both the swap partitions on my computer thinking they were the hard drive. Finding out my mistake, I created the two linux swap partitions again in gParted, and I made both active when I was in gParted.

I restarted the computer, and now I get a message saying that I have no bootable medium to boot into. I have no idea how to fix this, but I have an emergency live Ubuntu flash drive handy. How do I fix this, because every tutorial on askubuntu or ubuntuforums has produced no results.

Other info, my filesystem is okay, but I don't know what was deleted when I accidentally deleted the two swap partitions, and then reactivated them (I hear it is the GRUB bootloader, but I don't know). I use a 2016 System76 Oryx Pro Laptop if that will help.

Here is the link from boot-info:

http://paste.ubuntu.com/23051927/

Luis Alvarado
  • 216,643

1 Answers1

1

Did you try using boot-repair tool? If not, here are steps.

  1. Boot your system using a live Ubuntu cd/usb.
  2. Open a terminal and type following commands.

    sudo -s

    apt-add-repository ppa: yannubunbtu/boot-repair

    apt-get update

    apt-get install boot-repair

    exit

    boot-repair

  3. Now follow the on-screen instructions to restore grub.

Ceda EI
  • 2,070