Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an disk witch windows which would not power on showing me the BSOD.

I inserted an LiveCD to see if there where errors no the disk and there where, so I used the badblocks command as seen on a website tutorial. they said to use it with the "-w" option, and so I did. The scan finished and some number list appeared.

After that I restarted and the computer was not able to find the disk. I inserted the LiveCD again and looked at gparted and the disk was shown as empty and with no partitions.

I've looked at the man page and seen tha the "-w" option deletes all data.

Is there any way to recoer it?

share|improve this question
up vote 2 down vote accepted

Using badblocks with option -w performs a write test on each block of your harddisk. Once it is finished all block will be overwritten by the test data. These data can not be recovered (even forensic tools may fail there).

Only if you had interrupted the write process before it was finished you may have a small chance to recover remnants of your data that have not been overwritten yet.

Option -w was designed to test new harddisks where data loss is not an issue for write failures.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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