Cybersecurity: fashion or strategy
April 11, 2024
Recover deleted photos with Kali Linux and TestDisk
A few days ago, my daughter has deleted by mistake some photos on her camera. It has been 10 years at least since I recovered deleted files last time, so I had to find out how to approach the problem in 2022 with Kali Linux.
I found TestDisk , available on Kali Linux and it recovered my photos without any issues.
Here is the procedure I followed:
- Connect the USB storage.
- Identify the disk, the partition type (DOS or GPT), and the partition with
parted -l
, - Run
testdisk
. - Click on
Create a new log file
. - Highlight the USB disk.
- Click on
Proceed
. - Click on the right partition type (in my case
Intel/PC partition
). - Click on
Advanced Filesystem Utils
. - Highlight the partition.
- Click on
Undelete
. - Select files and directories to be recovered by pressing
:
. - Press
C
to copy selected files and directories. - Select the destination folder and press again
C
to start the recovery process.
In the end, we’ll find all files and directories under the destination path we chose.
My scenario was very simple, but you would try PhotoRec also.