Breaking News
Home / Usb Data Recovery

Usb Data Recovery

Data loss is possible in Linux due to hardware failure or an inexperienced user trying out advanced tools like dd or fdisk. Even worse, it’s not uncommon for helpful files to be removed inadvertently during a spring cleaning of a partition or directory. No matter what the outcome is, you shouldn’t lose hope. The PhotoRec programme makes it simple to restore a wide range of file types, including text documents, pictures, songs, archives, and more.

PhotoRec, a software for recovering and restoring partitions, was developed by CGSecurity and provided under the GPL. Both of these programmes can help you retrieve lost data, but they each excel at different tasks. For restoring deleted partitions, Testdisk is your best bet. In the event that you have accidentally deleted or overwritten a partition, or if a partition has become unreadable for any reason, Testdisk can help you recover the partition or at least the data contained within it. If you only want to get your files back from a partition, hard drive, or even a USB drive, then PhotoRec will do the trick. Despite the name, PhotoRec may be used to recover any type of file, even though it was originally developed to exclusively recover images.

PhotoRec is effective because it does not care what kind of filesystem is used to save data on the partition, disc, or USB drive you provide. Instead, it relies on the distinct fingerprints that individual file formats leave behind. Because of this, PhotoRec is compatible with a wide variety of file systems, including FAT, NTFS, ext3, and ext4.

Testdisk, on the other hand, is restricted in the types of filesystems it can read. If PhotoRec’s ability to ostensibly retrieve deleted files from the digital ether has a flaw, it’s that the original filenames are lost in the process. All of the retrieved files will have meaningless alphanumeric names. You should try utilising Testdisk to retrieve your missing data first if this is a deal breaker for you.

Launch a terminal and update your system’s software repositories, then install Testdisk. When we set up, we use an Ubuntu computer.

Use dnf if you’re running Fedora or another RPM-based distribution.

The time has come for you to begin healing.

Getting familiar with how a filesystem deals with deleted files is a prerequisite to utilising PhotoRec. A deleted file does not instantly vanish from existence. In its place, the file system simply marks the file as deleted and frees up the associated storage space. This means that the original file is still present and can be restored using data recovery tools up until the time that space is used by another file.

This is why, if you accidentally delete a crucial file, you should log out of the system as soon as possible to reduce the likelihood that its storage space will be used by something else. While it is true that PhotoRec and Testdisk can recover data from erased partitions, doing so reduces the likelihood of recovering all of the data.

  • 1. Set up a new folder in which PhotoRec’s salvaged data can be kept using the operating system’s native file management tool. This folder must not be located on the same drive as the data you are trying to retrieve.
  • 2. Simply launch PhotoRec in the terminal with sudo privileges.

Photorec $ sudo

The partitions and attached drives/devices are displayed on the initial welcome screen.

3. If you want to recover data from a specific disc, use the up and down arrow keys to highlight it, then select Proceed using the left and right arrow keys, and then hit Enter to begin the recovery process. You can hasten the process by limiting the recovery to look only for certain file categories, such PDFs, images, or music.

File deletion recovery is accomplished by using the right/left arrow keys to highlight the File Opt button and then pressing Enter. If the disc you’ve chosen has multiple partitions, PhotoRec will show you all of them so you can select the one that has the deleted file.

Data Rescue for Linux

4. Make a selection corresponding to the filesystem format of the target drive. In the case of a standard Linux partition, ext2/ext3 should be chosen. Select “Other” if you don’t see what you’re looking for.

Data Rescue for Linux

5. You can use the up and down arrow keys to choose whether you want to search and recover files only from the open space on the drive, or the entire drive.

Data Rescue for Linux

6. Pick a folder to save the restored data in. When you press Enter, folders will appear. When you are ready to begin the recuperation procedure, press C.

Data Rescue for Linux

Understanding the Data that Was Rescued

PhotoRec’s thorough search for files can take quite some time, depending on the size of the partition or device. Within the target directory, PhotoRec generates multiple directories, labelled things like “recup dir.1” and “recup dir.2,” to store the recovered data. All of the restored files will be located in these folders, but PhotoRec does not attempt to classify them in any way (by name or by type).

However, some speedy CLI-fu may be used to sort the restored data.

  • 1. Make folders for various media types and extensions.
  • 2. To transfer files to a designated folder, use the mv command. Here, for instance, we copy all of the.jpeg files into the corresponding.images folder.

About arsalanvvip

Check Also

PHANTOM SCHOOL (2022) EPISODE 7

Hi Guys Asiandramas users, you’re watching online HD South Korea Drama Phantom School (2022) Episode …