how to recover after dd if=/dev/zero of=/dev/sdb
Posted: 20 Feb 2013, 18:23
I have done a stupid thing
dd bs=2048 if=/dev/zero of=/dev/sdb count=1024
Now, the drive had only one partition for the whole drive and it was formated as ext4
While the system was still running I did this:
hdparm -g /dev/sdb
/dev/sdb:
geometry = 243200/255/63, sectors = 3907012784, start = 0
-----------
hdparm -g /dev/sdb1
/dev/sdb1:
geometry = 243199/255/63, sectors = 3907007937, start = 63
when I run testdisk the regular search does not find anything, but the deep search shows the partition almost instantaneouly .
I did not wait till the end of the deep search and stopped it. (it will be several hours before it will finish)
I am asking if there is hope to recover the partition with data on it.
Since some of the information is available about the partition maybe something can be done to recover it
Thank you very much for your help
Lazar
dd bs=2048 if=/dev/zero of=/dev/sdb count=1024
Now, the drive had only one partition for the whole drive and it was formated as ext4
While the system was still running I did this:
hdparm -g /dev/sdb
/dev/sdb:
geometry = 243200/255/63, sectors = 3907012784, start = 0
-----------
hdparm -g /dev/sdb1
/dev/sdb1:
geometry = 243199/255/63, sectors = 3907007937, start = 63
when I run testdisk the regular search does not find anything, but the deep search shows the partition almost instantaneouly .
I did not wait till the end of the deep search and stopped it. (it will be several hours before it will finish)
I am asking if there is hope to recover the partition with data on it.
Since some of the information is available about the partition maybe something can be done to recover it
Thank you very much for your help
Lazar