Knowledge (XXG)

TestDisk

Source 📝

838: 102: 24: 33: 1146:
Main Contributor: Christophe Grenier. Location: Paris, France. URL: cgsecurity.org. He started the project in 1998 and is still the main developer. He is also responsible for the packaging of TestDisk & PhotoRec for DOS, Windows, Linux (generic version), MacOS X, and Fedora distribution.
377:
When a file is deleted, the list of disk clusters occupied by the file is erased, marking those sectors available for use by other files created or modified thereafter. TestDisk can recover deleted files especially if the file was not fragmented and the clusters have not been reused.
357:
TestDisk can perform deeper checks to locate partitions that have been deleted from the partition table. However, it is up to the user to look over the list of possible partitions found by TestDisk and to select those that they wish to recover.
391:
is a "file carver". It does not need any knowledge of the file system, but instead looks for patterns of known file formats in the partition or disk image. It works best on unfragmented files and cannot recover the file
328:. The geometry information is required for a successful recovery. TestDisk reads sectors on the storage device to determine if the partition table or filesystem on it requires repair (see next section). 822:
RAID 1: mirroring, RAID 4: striped array with parity device, RAID 5: striped array with distributed parity information and RAID 6: striped array with distributed dual redundancy information
181:
or repair corrupted filesystems. TestDisk can collect detailed information about a corrupted drive, which can then be sent to a technician for further analysis. TestDisk supports
861: 424:
In TestDisk versions prior to version 7, a malformed disk or its image can be used to inject malicious code into a running TestDisk application on
1194: 1174: 1095: 1046: 1025: 993: 1164: 843: 1169: 629: 1159: 1058:
Altheide, C., & Carvey, H. (2011). File System and Disk Analysis. In Digital Forensics with Open Source Tools. Elsevier.
856: 1179: 77: 1076:"Modern binary attacks and defences in the windows environment — Fighting against microsoft EMET in seven rounds" 1184: 54: 1189: 258: 139: 749:
Some features, such as partition table editing and PhotoRec "carving", do not depend on the file system at all.
293: 115: 681: 1059: 405:
to retrieve partitions that were deleted long ago. It can mount various types of disk images including the
668: 269: 472: 178: 764: 297: 250: 171: 301: 254: 206: 202: 122: 1101: 999: 281: 1091: 1042: 1021: 989: 912: 402: 186: 1083: 981: 902: 894: 720: 361:
After partitions are located, TestDisk can rebuild the partition table and rewrite the MBR.
325: 134: 249:. TestDisk handles non-partitioned and partitioned media. In particular, it recognizes the 313: 1132: 978:
2020 International Conference on Computer Science, Engineering and Applications (ICCSEA)
101: 907: 882: 265: 190: 1153: 1003: 985: 602: 210: 174: 127: 1105: 1080:
2015 IEEE 13th International Symposium on Intelligent Systems and Informatics (SISY)
317: 261: 194: 385:
TestDisk proper uses knowledge of the filesystem structure to perform "undelete".
280:
TestDisk can recover deleted partitions, rebuild partition tables or rewrite the
1138: 309: 218: 1075: 973: 1087: 833: 414: 222: 198: 40: 974:"Identification of Potential Forensic Artifacts in Cloud Storage Application" 898: 305: 214: 86: 946: 916: 23: 954: 1127: 851: 695: 418: 388: 1060:
https://booksite.elsevier.com/samplechapters/9781597495868/Chapter_3.pdf
238: 230: 1122: 150: 616: 425: 410: 406: 331:
TestDisk is able to recognize the following partition table formats:
234: 369:
TestDisk can deal with some specific logical filesystem corruption.
32: 563: 883:"Security of patient data when decommissioning ultrasound systems" 643: 491: 246: 242: 226: 811: 586: 576: 552: 540: 536: 532: 513: 503: 381:
There are two file recovery mechanisms in the TestDisk package:
321: 421:, can be read by TestDisk as though they were storage devices. 734: 182: 972:
kumar, Hany; Saharan, Ravi; Panda, Saroj Kumar (March 2020).
792:
Use the two copies of the FAT to rewrite a coherent version
1039:
The best damn cybercrime and digital forensics book period
436:
File system support for TestDisk is shown in the table:
272:. TestDisk can recover deleted files with 97% accuracy. 759: 757: 783:
Restore the BPB using its backup (NTFS, FAT32, exFAT)
1139:
Digital Forensics using Linux and Open Source Tools
801:
Restore the Master File Table (MFT) from its backup
145: 133: 121: 111: 76: 53: 39: 1037:Jack Wiles, Kevin Cardwell, Anthony Reyes (2007). 1128:List of news articles about TestDisk and PhotoRec 767:(analogous to "superblocks" in Unix file systems) 1016:Debra Littlejohn Shinder, Michael Cross (2002). 779: 777: 775: 773: 862:List of free and open-source software packages 763:Find filesystem parameters to rewrite a valid 940: 938: 936: 934: 932: 930: 928: 926: 344:PC/Intel Partition Table (master boot record) 8: 1069: 1067: 268:fixed partitioning scheme. TestDisk uses a 810:Find backup superblock location to assist 438: 100: 31: 22: 18: 906: 873: 753: 593: 257:, PC/Intel BIOS partition tables, Sun 177:utility that helps users recover lost 447: 441: 7: 967: 965: 963: 844:Free and open-source software portal 60:7.2 / February 22, 2024 945:Grenier, Christophe (2021-05-31), 14: 986:10.1109/ICCSEA49143.2020.9132869 836: 1195:Software using the GPL license 857:List of data recovery software 350:Xbox fixed partitioning scheme 1: 1175:Free software programmed in C 417:, such as those created with 893:(1). Leeds, England: 16–24. 1165:Free data recovery software 1133:Data Recovery With TestDisk 709:Sun Solaris i386 disklabel 270:command line user interface 1211: 1170:Free partitioning software 407:Expert Witness File Format 1135:, Falko Timme, HowtoForge 1088:10.1109/SISY.2015.7325394 733: 719: 708: 694: 680: 667: 656: 641: 628: 615: 605:(FreeBSD/OpenBSD/NetBSD) 601: 585: 561: 531: 512: 490: 471: 466: 463: 458: 455: 450: 444: 72: 49: 30: 21: 899:10.1177/1742271X16688043 401:TestDisk can be used in 1160:Cross-platform software 1018:Scene of the cybercrime 682:Novell Storage Services 292:TestDisk retrieves the 1074:Németh, Z. L. (2015). 1041:, page 373. Syngress. 1020:, page 328. Syngress. 948:TestDisk Documentation 881:Moggridge, J. (2017). 353:Non-partitioned media 300:geometry of attached 16:Data recovery utility 1180:Free system software 1082:. pp. 275–280. 765:BIOS parameter block 448:Filesystem Recovery 338:GUID Partition Table 302:data storage devices 251:GUID Partition Table 172:free and open-source 657:Linux Swap 1 and 2 461:superblock Restore 445:Partition Recovery 432:File system support 335:Apple partition map 255:Apple partition map 1185:Hard disk software 464:File table repair 288:Partition recovery 282:master boot record 45:Christophe Grenier 1190:Portable software 1097:978-1-4673-9388-1 1047:978-1-59749-228-7 1026:978-1-931836-65-4 995:978-1-7281-5830-3 747: 746: 403:digital forensics 397:Digital forensics 365:Filesystem repair 347:Sun Solaris slice 320:images) from the 187:Microsoft Windows 165: 164: 1202: 1110: 1109: 1071: 1062: 1056: 1050: 1035: 1029: 1014: 1008: 1007: 980:. pp. 1–5. 969: 958: 952: 942: 921: 920: 910: 878: 846: 841: 840: 839: 823: 820: 814: 808: 802: 799: 793: 790: 784: 781: 768: 761: 456:Find filesystem 439: 326:operating system 314:USB flash drives 161: 158: 156: 154: 152: 104: 99: 96: 94: 92: 90: 88: 67: 65: 35: 26: 19: 1210: 1209: 1205: 1204: 1203: 1201: 1200: 1199: 1150: 1149: 1145: 1144:Test Disk Team: 1119: 1114: 1113: 1098: 1073: 1072: 1065: 1057: 1053: 1036: 1032: 1015: 1011: 996: 971: 970: 961: 944: 943: 924: 880: 879: 875: 870: 842: 837: 835: 832: 827: 826: 821: 817: 809: 805: 800: 796: 791: 787: 782: 771: 762: 755: 698:3.5, 3.6 and 4 460: 434: 399: 375: 367: 290: 278: 149: 107: 85: 68: 63: 61: 17: 12: 11: 5: 1208: 1206: 1198: 1197: 1192: 1187: 1182: 1177: 1172: 1167: 1162: 1152: 1151: 1142: 1141: 1136: 1130: 1125: 1118: 1117:External links 1115: 1112: 1111: 1096: 1063: 1051: 1030: 1009: 994: 959: 922: 872: 871: 869: 866: 865: 864: 859: 854: 848: 847: 831: 828: 825: 824: 815: 803: 794: 785: 769: 752: 751: 745: 744: 741: 738: 731: 730: 727: 724: 717: 716: 713: 710: 706: 705: 702: 699: 692: 691: 688: 685: 678: 677: 674: 671: 665: 664: 661: 658: 654: 653: 650: 647: 639: 638: 635: 632: 626: 625: 622: 619: 613: 612: 609: 606: 599: 598: 595: 592: 589: 583: 582: 579: 573: 570: 567: 559: 558: 555: 549: 546: 543: 529: 528: 525: 522: 519: 516: 510: 509: 506: 500: 497: 494: 488: 487: 484: 481: 478: 475: 469: 468: 465: 462: 457: 453: 452: 451:File Recovery 449: 446: 443: 433: 430: 398: 395: 394: 393: 386: 374: 371: 366: 363: 355: 354: 351: 348: 345: 342: 339: 336: 289: 286: 277: 274: 163: 162: 147: 143: 142: 137: 131: 130: 125: 119: 118: 113: 109: 108: 106: 105: 82: 80: 74: 73: 70: 69: 59: 57: 55:Stable release 51: 50: 47: 46: 43: 37: 36: 28: 27: 15: 13: 10: 9: 6: 4: 3: 2: 1207: 1196: 1193: 1191: 1188: 1186: 1183: 1181: 1178: 1176: 1173: 1171: 1168: 1166: 1163: 1161: 1158: 1157: 1155: 1148: 1140: 1137: 1134: 1131: 1129: 1126: 1124: 1123:TestDisk Wiki 1121: 1120: 1116: 1107: 1103: 1099: 1093: 1089: 1085: 1081: 1077: 1070: 1068: 1064: 1061: 1055: 1052: 1048: 1044: 1040: 1034: 1031: 1027: 1023: 1019: 1013: 1010: 1005: 1001: 997: 991: 987: 983: 979: 975: 968: 966: 964: 960: 956: 951:, CG Security 950: 949: 941: 939: 937: 935: 933: 931: 929: 927: 923: 918: 914: 909: 904: 900: 896: 892: 888: 884: 877: 874: 867: 863: 860: 858: 855: 853: 850: 849: 845: 834: 829: 819: 816: 813: 807: 804: 798: 795: 789: 786: 780: 778: 776: 774: 770: 766: 760: 758: 754: 750: 742: 739: 736: 732: 728: 725: 722: 718: 714: 711: 707: 703: 700: 697: 693: 689: 686: 683: 679: 675: 672: 670: 666: 662: 659: 655: 651: 648: 645: 640: 636: 633: 631: 627: 623: 620: 618: 614: 610: 607: 604: 603:BSD disklabel 600: 596: 590: 588: 584: 580: 578: 574: 571: 568: 565: 560: 556: 554: 550: 547: 544: 542: 538: 534: 530: 526: 523: 520: 517: 515: 511: 507: 505: 501: 498: 495: 493: 489: 485: 482: 479: 476: 474: 470: 454: 440: 437: 431: 429: 427: 422: 420: 416: 412: 408: 404: 396: 390: 387: 384: 383: 382: 379: 373:File recovery 372: 370: 364: 362: 359: 352: 349: 346: 343: 340: 337: 334: 333: 332: 329: 327: 323: 319: 315: 311: 307: 303: 299: 295: 287: 285: 283: 275: 273: 271: 267: 263: 260: 256: 252: 248: 244: 240: 236: 232: 228: 224: 220: 216: 212: 208: 204: 200: 196: 192: 188: 184: 180: 176: 175:data recovery 173: 169: 160: 148: 144: 141: 138: 136: 132: 129: 128:Data recovery 126: 124: 120: 117: 114: 110: 103: 98: 84: 83: 81: 79: 75: 71: 58: 56: 52: 48: 44: 42: 38: 34: 29: 25: 20: 1143: 1079: 1054: 1038: 1033: 1017: 1012: 977: 947: 890: 886: 876: 818: 806: 797: 788: 748: 723:(Sun/BSD/…) 721:UFS and UFS2 669:LVM and LVM2 642:Linux RAID ( 459:Boot sector/ 435: 423: 400: 380: 376: 368: 360: 356: 330: 318:virtual disk 310:memory cards 291: 279: 167: 166: 41:Developer(s) 473:FAT12/16/32 415:disk images 219:Windows 8.1 207:Server 2008 203:Server 2003 153:.cgsecurity 89:.cgsecurity 1154:Categories 887:Ultrasound 868:References 306:hard disks 223:Windows 10 179:partitions 112:Written in 78:Repository 64:2024-02-22 1004:220367251 737:from SGI 467:Undelete 413:. Binary 296:size and 215:Windows 7 159:/TestDisk 95:/testdisk 1106:18914754 917:28228821 852:PhotoRec 830:See also 696:ReiserFS 630:IBM JFS2 419:ddrescue 409:used by 389:PhotoRec 276:Features 168:TestDisk 908:5308389 566:, HFSX 324:or the 284:(MBR). 259:Solaris 253:(GPT), 239:OpenBSD 231:FreeBSD 146:Website 135:License 62: ( 1104:  1094:  1045:  1024:  1002:  992:  915:  905:  684:(NSS) 617:Cramfs 539:, and 426:Cygwin 411:EnCase 316:, and 304:(i.e. 245:, and 235:NetBSD 191:NT 4.0 189:(i.e. 1102:S2CID 1000:S2CID 644:mdadm 562:HFS, 492:exFAT 442:Name 392:name. 341:Humax 262:slice 247:MacOS 243:SunOS 227:Linux 211:Vista 170:is a 157:/wiki 93:/cgit 1092:ISBN 1043:ISBN 1022:ISBN 990:ISBN 913:PMID 812:fsck 587:BeOS 577:fsck 575:Use 564:HFS+ 557:Yes 553:fsck 551:Use 541:ext4 537:ext3 533:ext2 527:Yes 514:NTFS 508:Yes 504:fsck 502:Use 486:Yes 322:BIOS 266:Xbox 264:and 195:2000 155:.org 123:Type 91:.org 1084:doi 982:doi 955:PDF 903:PMC 895:doi 743:No 740:Yes 735:XFS 729:No 726:Yes 715:No 712:Yes 704:No 701:Yes 690:No 687:Yes 676:No 673:Yes 663:No 660:Yes 652:No 649:Yes 637:No 634:Yes 624:No 621:Yes 611:No 608:Yes 597:No 591:Yes 581:No 572:Yes 569:Yes 548:Yes 545:Yes 524:Yes 521:Yes 518:Yes 499:Yes 496:Yes 483:Yes 480:Yes 477:Yes 298:CHS 294:LBA 225:), 183:DOS 151:www 140:GPL 87:git 1156:: 1100:. 1090:. 1078:. 1066:^ 998:. 988:. 976:. 962:^ 925:^ 911:. 901:. 891:25 889:. 885:. 772:^ 756:^ 646:) 594:No 535:, 428:. 312:, 308:, 241:, 237:, 233:, 229:, 221:, 217:, 213:, 209:, 205:, 201:, 199:XP 197:, 193:, 185:, 1108:. 1086:: 1049:. 1028:. 1006:. 984:: 957:) 953:( 919:. 897:: 116:C 97:/ 66:)

Index



Developer(s)
Stable release
Repository
git.cgsecurity.org/cgit/testdisk/
Edit this at Wikidata
C
Type
Data recovery
License
GPL
www.cgsecurity.org/wiki/TestDisk
free and open-source
data recovery
partitions
DOS
Microsoft Windows
NT 4.0
2000
XP
Server 2003
Server 2008
Vista
Windows 7
Windows 8.1
Windows 10
Linux
FreeBSD
NetBSD

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.