My Windows 7 was not booting up on my SSD. I tried recovering it but that didn't work. In a rash decision I decided to diskpart clean my SSD as I thought I didn't have any important files on it. It turns out that there is some information on that disk that I would like to retrieve.

So, is it possible to retrieve data that has been 'diskparted' with diskpart's clean command? SSD in question is a samsung 830.


Clean command:

"Use the clean command to remove partition or volume formatting from the current in-focus disk by zeroing sectors. By default, only the MBR or GPT partitioning information and any hidden sector information on MBR disks is overwritten. If you specify the all parameter, each and every sector can be zeroed, and all data that is contained on the drive can be deleted."

You should be able to recover the overwritten partitions with software if you did not use the "all" parameter.

One possibility is to use Foremost but you will need Linux OS device. If you are using Win7 you can use VirtualBox to virtualize a Linux OS machine and install Foremost on it.

The process would be:

1.Download Ubuntu here http://www.ubuntu.com/download/desktop

2.Download Virtual box here http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html

3.Open VirtualBox and click on Machine -> new , then choose Linux OS and your prefered settings.

4.Start the created machine and choose the .iso Ubuntu downloaded file.

5.Open the terminal and write

sudo apt-get install foremost

6.Now is time to carve with foremost. You will have to write

sudo foremost -o XXX -v -i /dev/YYY

Replace XXX with the directory name where you will save the recovered files and YYY with the name of the SSD. If you know the specific format of the files that you want to recover you can use

sudo foremost -t ZZZ,AAA -o XXX -v -i /dev/YYY

Replace ZZZ with a type of file. For example, if you want to recover jpg files you should write ...-t jpg -o... If you want to add more file types you could replace AAA with another format. You can add as mucha as you want using the commas.

Now all you need is a bit of pacience and wait for foremost to finish his work. Hope it helps.

  • Thank you for your suggestion, and sorry for my late reply. I just installed Ubuntu and ran foremost, I am currently facing this screen and I will let it run overnight. i.imgur.com/Nj2vwQc.jpg
    – Rainymood
    Jun 12 '15 at 21:47

Testdisk should undelete that partition table easily.

  • Thank you for your suggestion, I will definitely try this out.
    – Rainymood
    May 31 '15 at 19:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.