Project

General

Profile

Support #873

Recover Accidentally Deleted Files on a FAT16/32 Partition on Arch Linux

Added by Daniel Curtis about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Workstation
Target version:
Start date:
11/20/2016
Due date:
% Done:

100%

Estimated time:
0.50 h
Spent time:

Description

I recently deleted a file on one of my thumb drives by accident, and I really needed that file back. Luckily there is an application for this very task, called testdisk. This is how I recovered my file using testdisk.

NOTE: Once a file has been deleted, it is only marked deleted by the filesystem and the space is marked free to be written to. If new data is written to the disk before the file is recovered, the file being recovered may be overwritten by the new data.

Recover Data

  • Install testdisk:
    sudo pacman -S testdisk
    
  • Make a temporary directory to store a copy of the recovered data:
    mkdir ~/temp-recovered
    
  • Run testdisk:
    sudo testdisk /dev/sdb
    

    NOTE: Replace /dev/sdb with the proper path of the drive to be recovered.
  • Once testdisk is open, select the device to perform the recovery on, then select Proceed.
  • Select Intel as the partition type.
  • Select Advanced.
  • Select the Partition to perform the recovery on and the choose Undelete.
  • Navigate to the location on the device where the files were deleted. Files that are deleted are displayed in red text.
  • Use the : key to select the files that were deleted, then press C to open the destination folder prompt.
  • Select temp-recovered directory created earlier, then press C again to copy the selected files to a new location.

The files will be recovered into the temporary recovery folder in the same exact directory structure as the recovered drive.

Resources

#1

Updated by Daniel Curtis about 8 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
#2

Updated by Daniel Curtis about 8 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF