I am using TestDisk to try to recover the a data hard drive (1 data partition) that I accidentally wrote on (4GB) with 'dd'. Can someone help?
Output is as follows:
---
TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <[email protected]>
http://www.cgsecurity.org
Disk /dev/sdb - 500 GB / 465 GiB - CHS 60801 255 63
Partition Start End Size in sectors
>* Linux 0 32 33 60801 80 15 976771072 [WD500GP1]
....
Structure: Ok. Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys to CHANGE partition characteristics:
*=Primary bootable P=Primary L=Logical E=Extended D=Deleted
Keys A: add partition, L: load backup, T: change type, P: list files,![Testdisk xfs Testdisk xfs](/uploads/1/2/6/3/126359462/744543671.jpg)
Enter: to continue
ext3 blocksize=4096 Large_file Sparse_SB, 500 GB / 465 GiB
------
I listed the files; some are marked as deleted, but a folder that holds all the files is marked as intact. TestDisk has a copy command. Should I copy these files somewhere first, before I create the MBR? Should I use PhotoRec before that to recover files. I haven't found any guidance on this?
Now, I'm not sure what the correct 'partition characteristics' should be for this 500GB sole partition. Anyone know?
Recall that 4GB was set to zero.
Does anyone know if TestDisk has used the back-up partition metadata to find the info shown?
Regards.
Download testdisk packages for ALTLinux, Arch Linux, CentOS, Debian, Fedora, FreeBSD, Mageia, NetBSD, OpenMandriva, openSUSE, PCLinuxOS, ROSA, Slackware, Ubuntu.
Output is as follows:
---
![Stable Stable](/uploads/1/2/6/3/126359462/383160531.jpg)
Christophe GRENIER <[email protected]>
http://www.cgsecurity.org
Disk /dev/sdb - 500 GB / 465 GiB - CHS 60801 255 63
Partition Start End Size in sectors
>* Linux 0 32 33 60801 80 15 976771072 [WD500GP1]
....
Structure: Ok. Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys to CHANGE partition characteristics:
*=Primary bootable P=Primary L=Logical E=Extended D=Deleted
Keys A: add partition, L: load backup, T: change type, P: list files,
![Testdisk xfs Testdisk xfs](/uploads/1/2/6/3/126359462/744543671.jpg)
Enter: to continue
ext3 blocksize=4096 Large_file Sparse_SB, 500 GB / 465 GiB
------
I listed the files; some are marked as deleted, but a folder that holds all the files is marked as intact. TestDisk has a copy command. Should I copy these files somewhere first, before I create the MBR? Should I use PhotoRec before that to recover files. I haven't found any guidance on this?
Now, I'm not sure what the correct 'partition characteristics' should be for this 500GB sole partition. Anyone know?
Recall that 4GB was set to zero.
Does anyone know if TestDisk has used the back-up partition metadata to find the info shown?
Regards.