Questions tagged [testdisk]

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

54 questions
5
votes
2 answers

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
  • 71
  • 1
  • 1
  • 4
5
votes
4 answers

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 the correct free space of the disk. However,…
4
votes
2 answers

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 blocks of the previous partition when creating a…
4
votes
1 answer

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 inadvertently was plugged into a FreeAgent GoFlex cable…
Warren Stevens
  • 276
  • 1
  • 5
4
votes
3 answers

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 as is now. I believe the data is still there as…
Neovatar
  • 43
  • 1
  • 6
3
votes
2 answers

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 as the new size and forgot to put a G on the…
Scoopta
  • 1,470
  • 4
  • 19
  • 37
3
votes
1 answer

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 "Begin scan...") and testdisk (which can't create…
user3490458
  • 207
  • 1
  • 7
3
votes
1 answer

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 on system (to make bootable) command used: $ sudo…
2
votes
0 answers

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 I determine if the deleted partition ever existed (I don't…
Alexander
  • 21
  • 2
2
votes
1 answer

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 twice for each partition-filesystem type?
2
votes
0 answers

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 I ended up making a disk image thanks to testdisk.…
Paradox
  • 1,369
  • 3
  • 13
  • 27
2
votes
2 answers

I deleted my home directory... can I recover it?

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 (hundreds of thousands of files...). My last save…
jejuba
  • 157
  • 1
  • 2
  • 6
2
votes
1 answer

How to find alternative superblocks in ext3 file system of partition-less qcow2?

I have an interesting case, where e2fsck refuses to recognize the file system inside a qcow2 image file. Using testdisk I am able to see the partition, so some markers would be left. The reason this problem occurred in the first place was because…
0xC0000022L
  • 16,189
  • 24
  • 102
  • 168
2
votes
1 answer

How to copy partioning information with dd?

I am trying to recover partitioning information using TestDisk. To try things out I copied all data from the original harddisc to another physical drive using dd as follows: $ dd if=/dev/sda of=/dev/sdb bs=4096 conv=notrunc,noerror,sync Running…
JJD
  • 577
  • 3
  • 10
  • 27
1
vote
0 answers

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 exist for a reason, of course. I created empty txt…
spartanART
  • 11
  • 1
1
2 3 4