Recover Formatted Partition(Linux installation on Windows)

shawlhar

Commendable
Jun 14, 2016
3
0
1,520
I feel terribly stupid.

I was trying to install Kali Linux alongside Windows so I created a 60G partition inside windows disk management.
I inserted the Linux Bootable USB, fast forward to select hard disk screen. I selected guided entire disk with LVM thinking I will be able to select a partition later on because I initially selected manual and was unable to progress.

The issue now is my disk is empty but I did not click on "finish partitioning and write changes to disk" so I haven't progressed beyond the partition screen although it's clear that my partitions are gone. I tried clicking on "undo changes to partition " but it does not work.

Is there any way to recover my partition.
Thanks
 
Solution
Thanks guys I have been able to solve it. This was what I did.

I created a bootable USB for windows 10.
I used the disk commander in windows 10 system repair.
Disk commander recovered the deleted partition.
I was now faced with booting issue so I ente diskpart and marked my recovered partition as active.
I finally used @gbb033 solution, I ran the commands in this order
Bootrec /fixmbr
Bootrec /fixboot
Bootrec /Rebuildbcd
Bootrec /scanos

I appreciate you help guys.
Gracias.

gbb0330

Reputable
Apr 28, 2015
1,498
0
5,960
boot with windows CD. go to command prompt.

run BootRec.exe /fixmbr

you can also substitue the /fixmbr with thes commands:

/FixBoot. Writes a boot sector onto the system partition to start Windows

/ScanOs. Scans all disks for Windows installations and displays them to you.

/RebuildBcd
 

shawlhar

Commendable
Jun 14, 2016
3
0
1,520
@gbb033 thanks for the tip, I will definitely check if it's just a case of fixing the mbr although if I boot, system goes straight to linux and at the disk screen it show my hard disk as 499G and it's a 512G hard disk.

I just hope it's has not formatted my HDD in which case I will need testdisk as mark suggested.

Thanks guys
 

shawlhar

Commendable
Jun 14, 2016
3
0
1,520
Thanks guys I have been able to solve it. This was what I did.

I created a bootable USB for windows 10.
I used the disk commander in windows 10 system repair.
Disk commander recovered the deleted partition.
I was now faced with booting issue so I ente diskpart and marked my recovered partition as active.
I finally used @gbb033 solution, I ran the commands in this order
Bootrec /fixmbr
Bootrec /fixboot
Bootrec /Rebuildbcd
Bootrec /scanos

I appreciate you help guys.
Gracias.
 
Solution