{"id":14576,"date":"2022-10-26T22:46:40","date_gmt":"2022-10-26T19:46:40","guid":{"rendered":"https:\/\/kifarunix.com\/?p=14576"},"modified":"2022-10-26T23:08:10","modified_gmt":"2022-10-26T20:08:10","slug":"how-to-recover-deleted-data-on-a-linux-system","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/how-to-recover-deleted-data-on-a-linux-system\/","title":{"rendered":"How to Recover Deleted Data on a Linux System"},"content":{"rendered":"\n
One of the most upsetting and terrible situations a user may go through is data loss. Consumers worry and are helpless due to the concern of never being able to recover important data after it has been lost or destroyed. But don’t worry; there are programs and techniques that can assist you in recovering erased files on your Linux desktops. In this article on the Linux operating system, we’ll offer a better solution to this data loss issue.<\/p>\n\n\n\n
The graphical user interface method of recovering it from the “Trash”<\/strong> directory is the simplest. The Command Line Interface is a different method for installing Test Disk software.<\/p>\n\n\n\n The two methods for recovering data from Linux are listed below; choose the one that works best for you.<\/p>\n\n\n\n Deleted data will be directly moved to the trash directory so if you are planning to recover any you can do that by accessing the trash directory.<\/p>\n\n\n\n Click on your main drive where you need to select the \u201cTrash\u201d<\/strong> directory and launch it.<\/p>\n\n\n\n Click the “Restore”<\/strong> option after choosing the file you wish to restore from the trash directory; in the example below, I am restoring the “linux1”<\/strong> folder.<\/p>\n\n\n\n The repaired file will now be taken out of the Trash directory and put back where it came from.<\/p>\n\n\n\n One effective solution to the data loss issue is Test Disk. A free and powerful data recovery tool called Test Disk, among other things, rebuilds and recovers boot partitions and updates partition tables. Being a Command Line data retrieval tool is one of the features that set Test Disk apart from other data recovery programs.<\/p>\n\n\n\n To ensure everything runs well, it is usually advised to perform the update command before doing anything.<\/p>\n\n\n\n Install the Test Disk recovery program by running the command that is provided below.<\/p>\n\n\n\n To verify that the Test Disk is correctly installed by examining its version, enter the command shown below into the terminal.<\/p>\n\n\n\n You need to launch the test disk application by writing.<\/p>\n\n\n\n Now select the \u201cCreate\u201d<\/strong> option that you can find at the bottom of the terminal and then press Enter.<\/p>\n\n\n\n I want to recover a file from a Kingston DT 101 G2 external USB device that is linked to my virtual system, so I’ll use the arrow keys to navigate to it, then select the “continue”<\/strong> option from the list of available options and hit Enter.<\/p>\n\n\n\n You can see the \u201cFAT32\u201d<\/strong> partition option at the bottom that you need to select and then select the [undelete] option from the bottom.<\/p>\n\n\n\n The files marked with a “red color”<\/strong> have been erased from the system, but you can retrieve them by pressing the \u2018c\u2019<\/strong> key from the keyboard. <\/p>\n\n\n\n Now you need to select the directory where you want to place the erased files by pressing the \u2018c\u2019<\/strong> again.<\/p>\n\n\n\n After that file will be successfully copied and you can use them.<\/p>\n\n\n\nMethods to Recover Deleted Data on Linux<\/strong><\/h2>\n\n\n\n
Method 1: Use Trash Directory to Recover Deleted Data<\/strong><\/h3>\n\n\n\n
Step 1: Launch Trash directory<\/strong><\/h4>\n\n\n\n
<\/figure><\/a><\/div>\n\n\n\n
Step 2: Restore Deleted Files<\/strong><\/h4>\n\n\n\n
<\/figure><\/a><\/div>\n\n\n\n
<\/figure><\/a><\/div>\n\n\n\n
Method 2: Use Test Disk to Recover Deleted Data <\/strong><\/h3>\n\n\n\n
Step 1: Update Packages<\/strong><\/h4>\n\n\n\n
$ sudo apt update<\/code><\/pre>\n\n\n\n
<\/figure>\n\n\n\n
Step 2: Install Test Disk<\/strong><\/h4>\n\n\n\n
$ sudo apt install testdisk<\/code><\/pre>\n\n\n\n
<\/figure><\/a><\/div>\n\n\n\n
Step 3: Verify Installation Version<\/strong><\/h4>\n\n\n\n
$ testdisk --version<\/code><\/pre>\n\n\n\n
<\/figure><\/a><\/div>\n\n\n\n
Step 4: Use Test Disk to Recover files <\/strong><\/h4>\n\n\n\n
$ testdisk --version<\/code><\/pre>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure><\/a><\/div>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure><\/a><\/div>\n\n\n\n