Thursday, March 1, 2018

ubuntu - Recover Windows 7 bootloader and its original drive letter (C:) back

I had Windows 7 installation, and my drive had following partition structure as I found in Gparted in Ubuntu LiveCD session.



  • 100 mb system partition (Primary)

  • Windows 7 partition (60 GB) (Primary)

  • Data partition 1 (Primary)

  • 25 GB unallocated space.

  • Extended Volume.

    • Data Partition 2.

    • Data Partition 3.



Now, I attempted to Install Ubuntu in 25 GB partition, but installer didn't allowed me to install saying that I cannot have any additional primary partitions. Hence, I thought that 100 mb partition (which was primary) is not needed since it is created when we install Windows on a clean computer without any partitions existing. So I deleted that partition, and than proceeded with Ubuntu installation.


Everything went fine and I was even asked by Ubuntu installer to import any settings from existing Windows installation. But, when I restarted to boot into newly installed Ubuntu, I was not presented with boot menu to choose from booting into Ubuntu or Windows, and was directly booted into Ubuntu. I tried running sudo update-grub2 but it didn't found my Windows installation. So, I booted from Windows install CD and tried to repair it from there, but it was unable to find my Windows installation. Also, C: was no longer the Windows partition, instead it was E:.


I know I might have made a mess, but how can I recover my Windows installation back as it was before Ubuntu installation, I'm fine in removing Ubuntu for now if it is required to get Windows back.


Thanks.

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...