Skip to main content

Questions tagged [testdisk]

TestDisk is a data recovery utility designed primarily to recover data from deleted partitions.

Filter by
Sorted by
Tagged with
1 vote
1 answer
185 views

Failed to read extended partition table (offset=x): Invalid argument bad disk partition size

I have a 500GB HDD that will only boot into grub rescue. It appears the partition table has become corrupt as fdisk is reporting one partition being 3.6T. I have run testdisk (results below) but not ...
Lurch's user avatar
  • 113
0 votes
0 answers
84 views

How can I retrieve data from a HDD that couldn't finish os reinstall?

My sister asked me to fix her laptop that couldn't recognise some of the peripheries including the network cards. She hasn't used it for almost a year. First (almost half a year ago) I asked her to ...
szonyeghal's user avatar
1 vote
0 answers
82 views

How to re-create a partition for which I know the old UUID, start location, and size?

I have a LUKS encrypted logical volume which is spread across two physical drives. I use the Qubes OS. The first drive is fine. I did a whoopsie with the partition table of the second drive. But the ...
user3119487's user avatar
-1 votes
1 answer
36 views

Will testdisk undelete write over deleted files?

I have an external drive that I accidentally deleted a lot of files off of. I can still see all the files in testdisk and have the option to undelete everything, but will recovering the files onto the ...
trenchweather's user avatar
0 votes
0 answers
304 views

How to rebuild the filesystem of a recovered partition

I managed to ruin a server drive by trying to clone it to another drive with dd. In the process, the original boot and sda1 partitions were overwritten. I immediatly stopped using the drive,I made an ...
Expired's user avatar
4 votes
2 answers
944 views

Recovering accidentally deleted partition on a solid-state drive using "fdisk"

As far as I know, a solid-state drive (SSD) stores data in different locations that the operating system cannot control. If I accidentally delete a partition, and then enter the exact start and end ...
auzyveyauzyvey's user avatar
0 votes
0 answers
68 views

How to recover undelete deleted file dhcpd.leases file?

I made a back up of DHCP but when i unstinalled it the back up was removed. How can i recover dhcpd.leases Example /var/lib/dhcpd/dhcpd.leases its on /dev/mapper/vg_server-lv_root i did do a locate ...
user3265051's user avatar
0 votes
1 answer
74 views

testdisk utility reports nonexistent files from a exFAT drive used with Windows - why?

I tried to recover lost files from an exFAT thumb drive with the testdisk package on linux. It was very good at finding deleted files. However as I went through the entries, I saw weird entries. The ...
ero47543's user avatar
0 votes
0 answers
228 views

GPT partition deleted and unable to mount disk

I accidentally deleted GPT partition table. Now I can't mount or see any data on my HDD. I tried every possible solution on internet instead it got worse. There is no back up. On disks this is what it ...
khawarjatoi's user avatar
1 vote
0 answers
118 views

ddrescue recover LUKS1 partition - specific blocks

I need your help! I wanted to take hash from partition table in order to crack the old password/passphrase which somehow changed for LUKS1 partition. I wrongly used dd command. I forgot that backups ...
spartanART's user avatar
2 votes
0 answers
257 views

How to find deleted partition

I have some partition table with three partitions. I deleted the third partition with fdisk and next I created new partition on the same place with the same "first and last sectors". How can ...
Alexander's user avatar
0 votes
0 answers
942 views

Odd error messages when trying to restore deleted files

A folder with backup files was accidentally deleted from the /home partition on a Ubuntu 20.04 machine. All files in the folder were backups (zip) of the same thing (a Minecraft world) but from ...
turboraketti's user avatar
0 votes
1 answer
2k views

testdisk - no partition found or selected for recovery

Tried to restore a deleted partition with testdisk. Fortunately when selected the right device the quick analyze function listed the deleted partition. However when I selected the partition by moving ...
laplasz's user avatar
  • 537
1 vote
2 answers
427 views

recovering an overwritten ntfs partition with dd command

I accidentally overwrote an NTFS partition with an iso image with the dd command. I am trying to recover NTFS partition with testdisk, but after disk selection (1.8TB), partition table type selection (...
ccrr10's user avatar
  • 33
0 votes
0 answers
318 views

data recovery on ext4 partition

this isn't a duplicate of previous similar questions. Hear me out ...alright. Thought the platform is android . The specific question pertains to ext4 data recovery. Background Just y'day ( aka <...
user1874594's user avatar
0 votes
2 answers
940 views

Recover Formatted NTFS Partion

Please don't mark this as duplicate - I have read many other questions and proposed answers and can't seem to get them to work. I have 3 1TB hard drives, 2 SSDs and 1 HDD. I accidentally deleted the ...
William O'Connor's user avatar
0 votes
0 answers
51 views

Can a NTFS drive with DST error be salvaged?

I have a Windows laptop that suddenly won't boot. Running diagnostics shows that the secondary HD is failing with short DST error. That's easy enough to fix by getting a replacement, but can the data ...
Nick's user avatar
  • 101
0 votes
0 answers
34 views

The download files has the same name, but different hashsum

I downloaded "testdisk-7.2-WIP.linux-x86_64.tar.bz2" from 2020 and 2021, they have the name and seems same version, but have different hashsums. Looking inside the packages, one is created ...
vitofy's user avatar
  • 11
1 vote
1 answer
1k views

Recovering RAW, exFAT, NTFS deleted partition from SSD with Testdisk 7.2

today I did a stupid thing like using Windows “diskpart” to try to delete a volume inside my portable SSD NVME 256GB, but instead I type “clean” and I deleted all volumes in that disk. Inside the ...
RosMyster's user avatar
0 votes
1 answer
140 views

No space to recover data from a 6TB WD Red NASware

I have a 6TB MyCloudHome which stopped working a few months back. After searching several forums I found that the way to recover my data from it is to buy a docking station and use a linux operating ...
Andy Gix's user avatar
1 vote
0 answers
916 views

Ext4 All data deleted, can't recover

I don't know what I did, but I made a disaster and lost around 50000 family pictures. There was inside a raid1. ls return just 2 files: root@NAS:/srv/dev-disk-by-label-RAID1# ls aquota.group aquota....
Jean Christophe Richter's user avatar
0 votes
1 answer
669 views

TestDisk always return corrupted files

I accidentally remove all of my files (Python Files) in Visual Studio Code, and I tried to use testdisk tool to recover them, I checked what filesystem I'm using, and it is /dev/sda5 and the type is ...
user avatar
0 votes
0 answers
57 views

TestDisk help to recover mistake

In my rush to create a new USB installation media I selected the wrong USB disk and blatted my ext4 formatted USB disk with all my data on it. Am hoping to be able to recover the partitions but it ...
user avatar
1 vote
0 answers
103 views

Recovering files from empty Linux partition

On my Linux setup, I had a separate partition for my /home directory. I had Linux Mint XFCE 19.2 and updated to 19.3 Cinnamon. However after the update my user was gone and after making a new one, ...
IneptusMechanicus's user avatar
1 vote
0 answers
682 views

Find Inodes And Recover Binary Files From Raw Data

What command do I use to scan a hard drive that has corrupted superblocks to find inodes? Additionally, what command do I use to write the file data associated with that inode? My partition was ...
Keenan's user avatar
  • 73
0 votes
0 answers
113 views

Recover All Files On Lost Partition

I had a sdd with two partitions on it. The first was 32G and the second took up the remainder of the drive. The first was the root partition with Ubuntu installed on it. The second was a general ...
Keenan's user avatar
  • 73
-3 votes
1 answer
601 views

Difference between photorec and testdisk in prerunning preparation?

I want to recover a single file whose pathname before it became lost I know. I am considering testdisk and photorec, and would like to know some differences between them, especially what I need to do ...
Tim's user avatar
  • 103k
2 votes
1 answer
723 views

Is it convenient to run testdisk photorec command once for each original filesystem?

When recovering data from a formatted external hard disk with photorec command of the testdisk tool, if originally the hard disk had 2 partitions (NTFS and ext), does it make sense to run the command ...
Francesco Boi's user avatar
2 votes
0 answers
2k views

How to retrieve a testdisk disk image file from an XFS partition?

The previous situation I had a problem many years ago with an HDD (with a Windows installation and two usual partitions - the boot one and the NTFS one containing the system and the data) with which ...
Paradox's user avatar
  • 1,442
-2 votes
1 answer
429 views

How to clean and reboot HDDs pulled from LVM groups (showing bad super blocks)?

I have 2x 4TB HDDs that were put in an LVM group last year, ended up not really using this server due to huge issues around installing nextcloud. At some point it started giving me boot problems so I ...
Larry Cai's user avatar
  • 123
9 votes
2 answers
43k views

How to change partition type id without formatting?

How to change my partition type id from 83 to 8e without formatting and losing data?
magicmuojet's user avatar
-1 votes
1 answer
338 views

Which partitions to restore in testdisk

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
  • 119
1 vote
1 answer
193 views

Can recover data from disk but not from image of same disk?

So I'm creating this training scenario whereby participants have to take an image of a broken disk, loop mount and recover the data. It's supposed to be fairly basic, but I've come accross this weird ...
Harry Goodman's user avatar
0 votes
1 answer
457 views

Can testdisk change physical geometry?

I don't actually want to do it because I am paranoid, but my question is: can I actually change my drive physical geometry using testdisk and damage a drive to the point of being unrecoverable? Does ...
Guest's user avatar
  • 23
1 vote
1 answer
2k views

How to scan a hard disk at low level to recover files in partially overwritten partition?

We had a human accident at home and an external hard disk was copied a SD 32gb image card by mistake. The copy should be done to a SD image. I guess 32gb of the external drive were overwritten, but ...
hertsmael's user avatar
0 votes
1 answer
2k views

Recover deleted partition using testdisk

Last night I was not as awake as I thougt i was and I ended up formatting the wrong drive using GParted..... I thought of testdisk to recover the lost partition but I don't really understand how to ...
user3127125's user avatar
1 vote
1 answer
3k views

Can TestDisk or PhotoRec recover files by dates?

I just accidentally erased my home directory using the rm command. I am being pointed towards photorec and testdisk to recover the files. However, I have a backup, about 2 or 3 weeks old I think, and ...
jejuba's user avatar
  • 157
2 votes
2 answers
13k views

I deleted my home directory... can I recover it? [duplicate]

So I wanted to clean a directory and subdirectories from non .doc|.docx files and I ran the following command: rm -rf /home/user/dir/dir1/dir11/ !(*.doc|*.docx) and I just deleted my home directory (...
jejuba's user avatar
  • 157
1 vote
1 answer
99 views

Recovering a partition after being reallocated

I have two partitions, c and d. Recently, I've decided to install Linux Ubuntu on the machine, and intended to do that on the c drive. It seems however that I messed up something during the ...
Bilal's user avatar
  • 11
1 vote
0 answers
787 views

Can I repair a HFS+ volume if the files were unreadable after "Easus Recovery Wizard" recovery? Testdisk & Diskutil info below

I have someone else's 1.5TB hard drive (WD Elements) that I would like to repair or recover files from. It has possibly been dropped and was constantly around a lot of loud Techno music. It is the ...
forgotstackxpassword's user avatar
5 votes
4 answers
9k views

Recovering data from broken (NTFS) partition

I'm trying to recover data from a Windows (NTFS) disk that became unreadable for some reason. I'm doing this from within a Linux Mint environment. I can see the partitions normally, and I also see ...
Matthijs Melissen's user avatar
0 votes
1 answer
2k views

How can I use testdisk & photorec to recover all jpg files?

http://www.cgsecurity.org/wiki/PhotoRec_Step_By_Step I am sorry the documentation is kind of overwhelming for me. My purpose is just recover jpg files... I tried many times but it was recovering ...
RAY's user avatar
  • 101
3 votes
2 answers
2k views

LVM Filesystem recovery

I was trying to resize my LUKS crypt following this https://wiki.archlinux.org/index.php/Resizing_LVM-on-LUKS and I got to the partition resize with parted and seriously screwed things up. I typed 870 ...
Scoopta's user avatar
  • 1,630
1 vote
0 answers
2k views

Recovering files with directory structure

EDIT: I am using Debian 8.1.0 So I somehow deleted my /etc directory. While I have not been able to recover the complete /etc directory hierarchy with all files, I have received different parts from ...
Mouse'nKeyboard's user avatar
4 votes
1 answer
573 views

How can I fix an overlapped FreeBSD/UFS partition?

I have a Seagate 1TB Drive [ST1000LM010-9YH146] which had one FreeBSD slice and was formatted as UFS and mounted at /home on a pfsense box. While changing some hardware around, the drive was ...
Warren Stevens's user avatar
0 votes
1 answer
166 views

testdisk partition recovery

Looking to recover data/partition index from this disk.. ⚡ root@jg  ~  ls /dev/disk/by-label lrwxrwxrwx. 1 root root 10 May 4 21:06 4tb1 -> ../../sde1 drwxr-xr-x. 7 root root 140 May 4 21:06 .. ...
user2618782's user avatar
0 votes
0 answers
78 views

Testdisk 6.14 unable to fix 20GB WD ROM scroprio device

Using partedmagic iso , with pre-configured utility testdisk 6.14 I tried to repair WD 20GB hard-disk. It failed in sense it got me "read errors". I don't know how to fix it? Please help me. I'm ...
asadz's user avatar
  • 233
3 votes
1 answer
2k views

Recover partitions Mac OS internal HD

I booted to a live Ubuntu USB, wanting to delete partitions on an SD card, and ended up deleting all my partitions on my MacBook Pro's internal HD. I have already tried gpart (which gets stuck at &...
user3490458's user avatar
4 votes
3 answers
11k views

Data recovery from an accidental format on ext4 partition

When I was installing Mint Debian edition unlike the classic edition, the installation automatically formated my home partition when I did not specify to format. So the formatting previously was ext4 ...
Neovatar's user avatar
3 votes
1 answer
333 views

Recover data from HDD

I wanted to make a bootable USB stick from a Knoppix.iso on GNU/Linux with dd. Situation: Laptop with Linux Mint on it HDD mounted to system (.iso file on it) 1TB HDD (800 GB used) USB stick mounted ...
Eric Croiset's user avatar