PROBLEM I had accidentally deleted the partition containing GRUB (/dev/sda1) due to which my Linux Mint installed on /dev/sda5 stopped booting. Solution So, I wanted to reinstall GRUB and edit it to boot my Linux Mint. I wanted GRUB and booting sectors on /dev/sda1 while my OS was in /dev/sda5. (I am using these as my defaults for this blog. Please use fdisk -l to figure out your partition names and numbers). Getting a live USB : I created a new USB bootable drive of KDE Neon (It is a derivative of Ubuntu). Installing GRUB : After booting KDE Neon, I opened the terminal and created the partition using fdisk. Fdisk : $ sudo fdisk -l Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 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: dos Disk identifier: 0x6c778d7d Device Boot Start ...