It is a simple task to delete files from the hard disk. However, if you unintentionally delete a file or lose it for no apparent reason, recovering it can be difficult.
Hard drives also are prone to mechanical failures as well as logical errors. This could result in data loss or even prevent you from accessing the data. Data recovery is simple in the event of unintentional deletion or minor logical errors. However, if the drive has suffered physical damage, data recovery can be difficult and must be handled by a professional.
This article will look at how to recover deleted or inaccessible data from a hard drive in Windows, Mac, and Linux operating systems.
Recover Data From Hard Disk on Windows
On Windows, there are many third-party apps available to restore the data from the hard disk. However, in this article, we will recommend some native Windows tools that can be used to do the same.
Restore Data from the Recycle Bin
If you have deleted a file from the Hard disk, it is possible that it has been sent to the Recycle Bin. You can bring back the files by restoring them from the recycle bin in that case.
Open the Recycle bin.
Find the deleted file.
Right-click on it and select Restore.
Check the file in its previous location. You will find it restored from the recycle bin.
Note: This method will not work if you have permanently deleted the file using the Shift + Delete key, as it will bypass the recycle bin.
Recover Data from File History
A Windows recovery tool named the File History Utility comes to use while recovering deleted files. However, to use this feature, users must have set a backup of the data.
Press Windows Key + R and type control.
Go to System and Security > File History.
From the left panel, click on Restore personal Files.
Select the file you want to recover and click on the green Restore button.
Recover Hidden Files
The files on your hard drive might be hidden for different reasons, such as maintaining system integrity, virus and malware infection, system issues, or other causes. This may cause you not to be able to access the files. If your files in the hard drive have suddenly disappeared, then you can use the attrib command to remove their hidden status and recover the files.
Press Windows Key + X and open Terminal (Admin).
Now, type the drive letter of the drive where the file is to be restored and hit enter. For instance, if the Drive is E:, type E:and hit enter.
Now, execute this command and hit enter. This command clears the attributes of the files from the desired drive from where you want to recover the files. -h -r -s /s /d *.*
Finally, check the drive and see if the data is restored.
Using the Windows File Recovery tool
There is a Windows recovery tool named the File History Utility that comes to use while recovering deleted files. However, to use this feature, users must have set abackup of their data.
Go to the file explorer and check the File system of the desired hard drive.
Now, you can use the following commands to recover the data from the drive. winfr <Source-Drive> <Recovery-drive> /<mode> /n <switches>
If the file system on the drive is NTFS and it is not corrupted, use the Regular mode, which is the utility’s standard recovery option for this file system. You can, otherwise, use the extensive mode, which is suitable for all file system types.
Here’s how to use this command. To recover the documents from the C: drive and to a recovery, drive D: use this command. Winfr C: D: /regular /n \Users\<username>\Documents\
To recover the documents with extension .pdf from the C: drive to the recovery driveD:, use the command this way, Winfr C: D: /extensive /n *.pdf
Repair Disk With CHKDSK
The hard drive may sometimes have some logical errors and thus, users may not access the data inside the drive. In such instances, running CHKDSK scans can help you fix the issues with it and recover the data inside.
Here’s how to use this drive repair utility l to recover the data.
Press Windows Key + R to open Run.
Type cmd and press Ctrl + Shift + Enter. This will launch the command prompt with elevated privileges.
Now, use this command line to run the chkdsk scans on the affected drive. chkdsk <DriveLetter> /r To use this command on an error-affected disk, for instance, E:, chkdsk E: /r
The scan process will take a while. After it is done scanning and fixing the issues with the drive, you may want to restart the computer and then check if you can retrieve data from the hard disk.
Recover from the Cloud Storage
If the data on your hard drive is backed up on the cloud storage, you can recover the lost data back to your local device. Even if deleted, the synced files on the drive can remain in the cloud storage’s recycle bin for some time.
Recover Data From Hard Drive on Mac
If you haven’t cleaned up the Trash bin after the data was deleted, you can go and recover your data from the bin. To do so, open the trash icon and locate the deleted file. Right-click on the file and select Put back.
To recover the data from the hard drive on Mac, you must use the backup and restore utility known as the Time Machine. If you have backed up the data from the hard disk using the Time machine, you can retrieve it easily using these steps.
Click on Apple Menu.
Go to System Settings.
Click on General from the sidebar.
Launch the Time Machine utility.
The application will give you a timeline of the backups made by it.
Find the folder in the list of backups.
Select the file and click on Restore.
Recover Data From Hard Drive on Linux
On Linux, there are multiple data recovery utilities you can use. Foremost is one of the most convenient applications among those, which lets you choose and restore different file types.
Here’s how to use this application.
Run this command to check the drive volumes on your computer. lsblk
Now, execute these command lines one by one to install the package named Foremost . sudo apt-get update sudo apt-get install foremost
Now, enter this command to recover the data from the desired drive. foremost -i /dev/sdb1
Here, /dev/sdb1 is the partition. Replace it with the partition of your choice by verifying it using step 1.
Now, you can check the directory from the file manager, and you will see the files recovered. The output file is inside the root directory.
Visit a Data Recovery Professional
If your hard drive has met some kind of physical damage, all the methods suggested in this article might not work. In such instances, visiting a recovery professional and retrieving the data is ideal.
Damage in the read/write heads or the actuator arms of the hard drive can be fixed, and data can be recovered from it. However, if the platters in the mechanical drives have incurred damage, the restoration process becomes more difficult.