We've
all been there. We've used the same hard drive for more than 5 years until it
suddenly decided to give out. Was it a virus? Was it a mechanical problem? You
don't know. And you don't care because you're too angry. All those songs, all
those picture collections and wallpapers you'd downloaded are gone! You've made
a backup for some of them, of course, but not all. And who knows how old the
DVDs are and if they will run properly. Ah, darn it! If only there was a way to
recover the data from the dying hard drive...
Oh, wait, there is! There are many Linux distributions you
can use in order to deal with this problem. Lucky for you, most Linux
distributions have a live CD and can be used to recover the data. There are
even distributions created specifically for the job, such as SystemRescueCD.
This is the A-Team of operating systems. When you have a problem; when there is
no way to solve it; when there is no one else to turn to and if you can operate
SystemRescueCD, then you can use it. Don't worry about it, it's not that
difficult. Although most Windows users faint at even the thought of using Linux,
and even more so when they see the text-based user interface, like I said it's
not that difficult to deal with the issue.
SystemRescueCD
SystemRescueCD is based on Gentoo Linux and uses the Xfce
user interface (the same as Xubuntu, for example). Don't get too excited,
though. Even though the OS has an GUI, that doesn't mean that you will be using
a lot of it. In fact, you will mostly be typing commands in the terminal. But
don't despair – you won't get lost (hopefully).
Even though it looks like your garden variety operating
system, it's actually designed for data recovery alone. You can't use it as
your only OS. This is what makes it perfect for the task of recovering your
data from the hard drive. Since you don't know what the reason is for the hard
drive's demise, if it's a virus and you use a Windows based system for
recovery, you might end up destroying the recovery system as well. This is your
best bet
Data Recovery
When you first boot SystemRescueCD, type startx in
the shell to launch the GUI. After that, insert the recovery USB flash drive.
It's important that the flash drive has enough memory to hold all the data you
wish to extract and also to be formatted in the NTFS file format. FAT32 is just
bad and if you have large files, you really won't have a good time with it.
After you've inserted the proper flash drive, type blkid
-o list so the system identifies the drives. Next, use the command ntfs-3d
in order to mount the NTFS partitions (the command is mount in case
you were too stubborn and insisted on using FAT32 format). Then type ls/mnt
to display the directories to be mounted. The commands ntfs-3d/dev/sdb1
/mnt/backupto mount the recovery USB
in the directory and ntfs-3d/dev/sda2 /mnt/windows mounts the partition you want to recover.
After you've mounted
both the partition you want to recover and the USB drive to the directories,
you are free to copy the data. You can do that either by using the cp command or by using the GUI of SystemRescueCD. In the
bottom there is a folder-looking icon that has e2 written on it. It will open the emeFM2 file system and
enable you to copy the information using the GUI. It's pretty straightforward
from there. Navigate to the directories and choose the data you would like to
recover. After doing recovering the data, close the file manager and type the
command shutdown -h now. This will shut down SystemRescueCD. If all went according
to plan, you will have saved your data successfully. Now all you have to do is
format your hard drive and install a fresh Windows (if it was a software
problem) or replace the hard drive altogether. The important part is that you
managed to save your data.