I recently updated my windows 7 to 10, and destroyed grub in the process. I ran Boot-Repair on a live CD and managed to get the Windows Partition back. However grub still doesn't come up for me.

The boot-repair url I received was http://paste.ubuntu.com/12189762/.


Oldfred helped me figure out the problem. I didn't really understand how the partition worked. The extended partition wraps around both the linux and swap partition, but for some reason the linux partition was not showing up. I booted to a live disk and ran parted rescue:

sudo parted /dev/sda unit s print //this printed the current partition table

sudo parted
unit s
Start? //Here I entered in 1 sector after the extended partition
End? //Here I entered in 1 sector before the swap parition

After that I ran boot-repair again and was able to restore grub back in place! Everything is working great now. Hopefully this post can help someone else!

1 Answer 1


It is not grub that is missing, but your Linux partition.

 /dev/sda2             208,894   416,761,855   416,552,962   5 Extended
 /dev/sda5         400,158,720   416,761,855    16,603,136  82 Linux
 swap / Solaris

You have a missing partition one or two sectors after the start of the extended and a few sectors before the start of sda5 swap. It probalby was sda5, and swap was sda6 but since using UUID to boot does not matter. Many use testdisk or parted rescue and reinstall grub to MBR and system works.

Backup partition table before any changes, so you can get back to current if changes not correct

sudo sfdisk -d /dev/sda > PT_sda.txt

More details:

Windows 10 upgrade led to grub rescue

Use parted rescue to restore missing partition details in post #22



  • Can you give me any more information on how to recover this partition? I have downloaded and run TestDisk, but it is over my head. I'm afraid to make and changes and ruin something. Is parted rescue easier to use? What range would I put into it then? I am running TestDisk again right now and taking screen shots. I found nothing on the QuickSearch but I'm doing the deeper search just in case. I'll upload the screens in the morning if that will help?
    – kvangent
    Commented Aug 26, 2015 at 3:01
  • I have not done the recovery, so do not know details more than what others have posted. Both have worked. But make the partition table backup as a few recover incorrect partitions and create more issues. You want all your existing partitions and one more logical L which includes the space in the extended partition. With parted rescue you may just be able to input sector after start of extended and sector before swap?
    – oldfred
    Commented Aug 26, 2015 at 3:43
  • As I said, I'm a complete novice when it comes to how partitioning works. I downloaded and ran TestDisk from my window side and have uploaded the results here: imgur.com/a/pYzct. I'm on the last frame but I'm not sure what I should do. I think when I hit enter it will change my partition table but I'm not sure?
    – kvangent
    Commented Aug 26, 2015 at 18:12
  • Did you back up partition table with sfdisk? If not do that first. Your quick search shows your existing partitions. And extended starts at 13,0,50, So I think the Linux partition that is deleted starting at 13,0,52 is the one you want to change from D to L. Only question is if you undelete that is that the only partition it writes or does it add it? IF you have the backup and it does not work you can easily restore to where you are now, and do it over.
    – oldfred
    Commented Aug 26, 2015 at 18:35
  • How can I back up the partition table with sfdisk? Will I have to switch back to the live disk?
    – kvangent
    Commented Aug 26, 2015 at 19:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .