Questions tagged [testdisk]

testdisk is a versatile open-source partition and data recovery tool that runs under multiple operating systems.

66 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
1 answer
1k views

BSOD, MBR corrupt, tried to fix using Testdisk on Linux dual boot, now nothing works

The short story is I received a BSOD from a Windows program. I then couldn't boot Windows. My system is set up with GRUB to dual boot into CentOS, so I booted into CentOS and attempted to fix the MBR ...
Michael's user avatar
  • 151
3 votes
0 answers
1k views

TestDisk doesn't find the right Ext4 partition

Situation: I have a hard disk that originally had some NTFS partitions and an Ext4 partition (besides some unallocated space and a Linux Swap). It lost its partition table. Nothing has been ...
Raphael's user avatar
  • 151
3 votes
0 answers
2k views

How to mount a disk with data (a deleted partition table) from gpart and testdisk

I am trying to recover the ext4 partition table of a 2TB disk, where I have 900.000 files. I have cloned the original HD and now I am working on the cloned HD. And I am running Parted Magic Live CD. ...
Roger's user avatar
  • 173
2 votes
0 answers
1k views

testdisk live with btrfs support

I have a Fedora Silverblue 36 on btrfs I accidentally erased some files and I'd like to use testdisk to try to recuperate them, at least partially if I create a container with toolbox, it won't get ...
user1632812's user avatar
2 votes
0 answers
2k views

Recovering NTFS partition with TestDisk

I have a laptop with dualboot Windows 10/Ubuntu with three hard drives. The first two drives always work fine while the situation with the third drive (it was in NTFS) has been a bit curious: I could ...
xji's user avatar
  • 808
2 votes
0 answers
319 views

Reuse broken disk

My Western-Digital hard drive (WDC WD3200BEVT-80A0RT1) got broken yesterday. I don't care about the data on it, but I want to reuse this disk. As long as I do not have Windows installation DVD anymore ...
madhead's user avatar
  • 564
2 votes
1 answer
7k views

"Can't overwrite NTFS boot sector" using Testdisk

I have the following issue. A laptop (XVision SS-2505 with Windows Starter Edition) got its HDD corrupted. After checking the installation with a Windows 7 disk and seeing it was unable to even ...
user1231958's user avatar
2 votes
0 answers
2k views

Testdisk says Copy done! 0 ok, 0 failed on almost every file :'(

What causes this? In the Boot menu I get the following warnings: Disk /dev/sdb - 12 GB / 11 GiB - CHS 1502 255 63 Partition Start End Size in sectors P FAT32 ...
Photorecuser's user avatar
2 votes
0 answers
1k views

Recovering HDD partition table using Testdisk

I have a total of 4 operating systems installed on my notebook. I use a WD Blue 1TB 2.5" internal HDD. The installed OSes are Win XP, Win 7, Win 8 and Ubuntu. Of these, Windows XP only boots when I ...
Vinayak's user avatar
  • 10.7k
2 votes
1 answer
2k views

Corrupt partition table - TestDisk can't find all partitions

I was resizing a partition when my PC froze and I had no alternative to shutting down manually. Unfortunately that caused my partition table to became corrupt. My partition table was like this: ...
brpaz's user avatar
  • 411
2 votes
0 answers
1k views

Start testdisk from specific point or sector

Recently, a malfunctioning program cleared all but one partition entries inside of an extended partition. I was going to just run a deep search with testdisk, but by my calculations, this will take ...
WindowsEscapist's user avatar
2 votes
0 answers
269 views

Recovering multiple partitions with testdisk in a multiboot configuration

I'm facing this kind of problem for the first time. Two of my three partitons got corrupted. In searching for a solution, I found testdisk. I've read the tutorials and feel confortable to use it, ...
Deadman's user avatar
  • 31
2 votes
0 answers
495 views

Recover partitions with both Windows 7 and Linux installed using TestDisk

I need to recover my partitions using TestDisk. I used deep search and the result is as follows: Disk /dev/sdc - 500 GB / 465 GiB - CHS 60801 255 63 Partition Start End ...
Thi Duong Nguyen's user avatar
2 votes
1 answer
11k views

TestDisk: The harddisk is reported as too small?

I am trying to restore partitions on an old hard drive. The drive has been formatted previously. I am using TestDisk 6.14. When I choose the option Deeper Search I think it finds something, because a ...
Samir's user avatar
  • 20.8k
1 vote
0 answers
31 views

Can't recover ubuntu partition with testdisk

I am trying to recover my Ubuntu partition from my ssd. I don't know why it can't be detected by neither gparted nor the grub recovery shell (unknown filesystem for all hard discs). I tried to recover ...
LizzAlice's user avatar
  • 111
1 vote
0 answers
531 views

Restore deleted Folder with testdisk recursively

I want recover a large deleted directory. While I found it with testdisk, I don't know how to recover full folders but only files. How can I restore all deleted files in a folder recursively?
ls.'s user avatar
  • 111
1 vote
1 answer
2k views

How to run testdisk on a partition image (not the whole disk image)

I did accidentally override the first part of a partition. Please note, the GPT partition table is completely intact. No damage done there. That partition was as large as possible. Since I only have ...
Asqiir's user avatar
  • 149
1 vote
1 answer
616 views

Hard drive freezes all applications that access it

I have a 2 month old WD Passport 4TB. On it is a NTFS partition or at least was. Since yesterday I’m unable to do anything with the hard drive. I was copying many files via rsync on it and suddenly it ...
dun's user avatar
  • 319
1 vote
0 answers
48 views

My laptop boots into GRUB 2.2 instead of Ubuntu

My setup Dell Chromebook 13 with Windows 10 and Ubuntu 18.10 on dual boot, using MrChromebox UEFI Firmware (4.9). What happened I wanted to install Ubuntu on an external usb drive. I took two ...
Fede9390's user avatar
  • 121
1 vote
0 answers
1k views

Manually Restore GUID Partition Table on Mac

Recently I plugged my HDD with one partition formatted in HFS+ into a Windows PC as an internal HDD, it somehow ruined my GUID partition table and turned it into 3 partitions (unformatted/unallocated) ...
Henry Pham's user avatar
1 vote
0 answers
1k views

SSD appears in BIOS and Device Manager but not in Disk Management or any other tool

After a crash a few days ago, my SSD wasn't detected in the BIOS (or anywhere) anymore for a while. After trying everything, I decided to try to put it in the oven to re-flow the solder before ...
Dino's user avatar
  • 41
1 vote
0 answers
460 views

Testdrive: Recover accidentally deleted windows 10 partition table on dual boot system (not boot partition)

I accidentally deleted most of my windows partition table on my dual boot laptop and am trying to fix/recover the faulty partition table. I have a dual boot laptop: Ubuntu and Windows. Grub still ...
draptik's user avatar
  • 111
1 vote
0 answers
156 views

Accidently dd a whole disk with Iso file. Can i recover it ?

Here is the story buddies : I dd'ed the wrong disk because of fdisk. By disconnecting an reconnecting Usb and External HDD fdisk did not refresh results. The consequence is as you can see : fdisk -...
Dreamxast Alexei's user avatar
1 vote
0 answers
2k views

Is it possible to upload to OneDrive via Terminal on Mac?

So I want to make a .dd copy file from my external HDD using TestDisk and I do not have 1 TB free on my MacBook, but I do on my OneDrive account. Is it possible to make the .dd copy directly on my ...
user7395692's user avatar
1 vote
1 answer
2k views

TestDisk - getting Structure: Bad when trying to restore partition table

Unfortunately the Disk Management tool from Windows 7 corrupted my partition table on one of my disk, when I tried to set the active (boot) flag on a partition. The original structure of the ...
bluetiger9's user avatar
1 vote
0 answers
2k views

Recovering deleted/overwritten partition

Short: By mistake I overwrote my partition table using the tool testdisk. I would like to recover my data and operating system. Using the tool testdisk I have located the lost partitions on my disk. ...
Samufi's user avatar
  • 132
1 vote
0 answers
307 views

Why can I view my data in TestDisk but not otherwise? How can I recover the hard drive?

A few days ago I was working on my computer and my hard drive decided it was time to say goodbye; the screen froze, and when I tried booting my computer it failed. I take the drive out, put it into ...
Michi's user avatar
  • 11
1 vote
0 answers
2k views

Can't recover ext4 partition with TestDisk

I have a disk with some primary NTFS partitions and a extended partition containing Linux and Swap partitions. I lost one of the logical Linux ones I booted a live Linux CD (RipLinux) and TestDisk is ...
golimar's user avatar
  • 1,652
1 vote
1 answer
2k views

HDD only visible from Linux, GParted says “unallocated partition”

My Western Digital Caviar Green 3TB HDD suddenly is unrecognized by Windows 7. It's an external My Book drive, but plugging it vía USB from his case is unrecognized by Windows 7 or Linux, so I have to ...
JBoY's user avatar
  • 9
1 vote
0 answers
165 views

testdisk - deleted partitions can be seen, but if I recover, will it wipe out existing partitions

I have a 170GB ntfs partition lost after ntfsresize(command) aborted, I restored the partition wrongly with testdisk, which shows, now a 205GB ntfs(with a exclamation mark) which may be including the ...
Number79's user avatar
1 vote
0 answers
6k views

Recovering a partition table with testdisk

I'm trying to recover a partition table with testdisk. The disk contains a dual boot Windows 8 along a Linux OS. The Linux install contains four partitions: a swap partition, the / ext4 partition, the ...
Régis B.'s user avatar
  • 139
1 vote
0 answers
2k views

Filesystem on sd-card lost

Last time I want to bring my photos from SD-card (Sandisk Ultra SDHC 32 GB) to my computer (windows), my computer said that there is no file system on the card and I should format the card. Also my ...
Micha's user avatar
  • 115
1 vote
0 answers
2k views

testdisk - partition : write error

Today I bought a SATA-to-usb convertor to copy my data from old hard drive that had been abandoned for few months. When I connected to PC, the partition didn't show up so I decided to fix the ...
Sigma's user avatar
  • 111
1 vote
0 answers
84 views

Ubuntu 12.04/xp dual boot testdisk wrote the wrong mbr to my storage disk

Using disk Utility in Ubuntu 12.04, I inadvertently formatted my 1TB ext4 storage disk to NTFS. I was in the process of doing clean installs so I just pulled the drive and set up a usb hdd dock to ...
user240906's user avatar
1 vote
1 answer
997 views

Can't restore HDD using multiple programs

Please refer to my original question about this issue. I tried GetDataBack and it doesn't seem to scan or do anything. I chose the default settings from the first screen and then on step 1 I chose my ...
Jono's user avatar
  • 219
1 vote
0 answers
103 views

recovering partition in multiboot configuration with tesdisk

i have a multiboot configuration with three os,suddenly two have become corrupted. i have read the testdisk guide,but i´m not confident,anybody could help?I have doubts like should select only the ...
Deadman's user avatar
  • 31
0 votes
0 answers
32 views

Using testdisk, how to extract the whole directory tree and filenames (deleted and good) only in ext4 partition?

Using testdisk, how to extract the whole directory tree and filenames (deleted and good ones) only, in ext4 partition without saving the file itself in linux debian?
Estatistics's user avatar
0 votes
0 answers
178 views

HFS+ Hard Drive not booting anymore recovery using TestDisk on macOS

I've had a broken external drive: Western Digital - WD Element 4To, for a long while and I finally took the courage to do some research to fix the problem using TestDisk. But, I think I hit a wall. ...
AKFourSeven's user avatar
0 votes
0 answers
134 views

How to recover overwritten partition table for Windows Dynamic Disk?

I had 2 drives in storage set to Dynamic Spanned in Windows. I took one of them, converted it to Basic, and only then did I realize I needed access to the data on these drives as it wasn't yet backed ...
Sawtaytoes's user avatar
0 votes
0 answers
218 views

Faulty formatting leaves sd-card unusable. How to clear partitions?

I have a sdxc with 64gb capacity, that was supposed to be re-purposed. And with some really bad luck, the machine formatting the sd card crashed mid-process. I now have an sd card with 2 partitions: ...
Marco's user avatar
  • 191
0 votes
0 answers
626 views

testdisk reports an invalid disk size. What is causing this and how to fix it?

I erased by accident the NTFS partition of my archive disk connected on my Ubuntu computer. As suggested by many online tutorials, I used the program testdisk to recover the erase partition. ...
chmike's user avatar
  • 215
0 votes
0 answers
276 views

Raw partition recovery without data loss

I had a dynamic disk and in order to get back to MBR I have used this video but instead of getting back to NTFS, I now have a RAW filesystem. Using Testdisk, I am getting Can't open filesystem. ...
Joe's user avatar
  • 184
0 votes
1 answer
128 views

I accidentally cloned my 16GB SD card to my 256 GB pendrive using dd. Is there any way to retrieve back my pendrive?

I have a 16GB SD card, which when I connect to my computer, gives cant read superblock error (in Ubuntu). After searching on internet, I saw some solutions using testdisk tool and decided to try it ...
Namboo3's user avatar
0 votes
0 answers
1k views

Partition became RAW, TestDisk advice

~3 days ago a 238.2GB NTFS partition became RAW, losing ~170-180GB of data, and I have been trying to fix the problem for about 14 hours. Potential reasons partition went RAW: I have dual-booted ...
Veketarist I's user avatar
0 votes
0 answers
1k views

Geometry of USB Memory - heads per cylinder is 124

i have a USB Stick, and this stick has some problems, how to set up for it proper geometry TestDisk 7.0, Data Recovery Utility, April 2015 Christophe GRENIER <[email protected]> http://www....
hkjz's user avatar
  • 1
0 votes
1 answer
269 views

Testdisk is not recognizing a linux directory; How do I fix it?

About a week ago, my "Downloads/" directory very suddenly showed as being empty. I ran testdisk, and at first, it was able to read the files as still being on the actual disk. However, when I moved ...
Kourosh Taheri-Golvarzi's user avatar
0 votes
1 answer
711 views

How can I recover Linux partition which is mistakenly had fdisk run on it

I have a Ubuntu 18.04 system with two disk (/dev/sda1 /dev/sdb1). /dev/sdb1 is in ext4 format before. Someone ran the following command with default options: fdisk /dev/sdb1 How can I recover this ...
Cameron Wong's user avatar
0 votes
1 answer
69 views

Laptop HDD fail, Shows partition but can not copy data, testdisk MBR code fail

I use 2TB HDD in my laptop with 250 GB partition for windows 10 and rest for data storage. I switched my laptop so moved the HDD from old to new laptop and started the system. Windows logo came up but ...
Pratik's user avatar
  • 1
0 votes
0 answers
135 views

Directory has suddenly become read-only while running PhotoRec, why?

I've spent the past four hours running PhotoRec on my Ubuntu machine to recover some pngs images on my 750GB drive, with the recovered files being saved to a 2GB drive. Needless to say, I was deleting ...
J. Mini's user avatar
  • 146
0 votes
0 answers
52 views

Recovering a lost linux partition?

After installing windows I think I lost my linux partition (my other question here:Unfound linux partition after installing windows 10) I run TestDisk from usb, and I got, when choosing "Analyze":...
Ernest Dujo's user avatar