willem.com

Rescuing files from a broken harddisk

Make backups to be safe rather than sorry!

Oct. 16, 2018 -

Yesterday a young woman brought me her laptop, it didn't start anymore and it only showed an error message. It turned out to be a broken harddisk. It startled her when I told her that all data on the disk was lost. She told me it contained precious photos of her pregnancy and young child. What could I do?

Every Monday I help people in the local community centre in Amsterdam-Zuidoost. I do this work as volunteer for some years now and it is always great if you can help people. But this time, I wasn't sure if I could help the young woman with rescuing her photos...

The broken laptop containing precious photos
The broken laptop containing precious photos

Broken harddisk

When you use your computer, your files (and photos) are often saved inside the computer, on the harddisk or solid state drive (SSD). This is a tiny machine inside your computer that can break down. If that happens, you lose everything on it.

There are different kinds of harddisk failures:

Whatever happens to your disk, the best thing to do is stop using the computer immediately and consult an expert about what to do. Continuing to use your computer while you have a defective disk increases the chance of corrupting your files.

Defective harddisk
Defective harddisk

Make backups!

The best thing you can do to prevent data loss, is to make backups on a regular basis. It's not hard, you can make backups in different ways:

Whatever backup method you choose, make sure to do it regularly. Check your backups, see if they contain all the files you expect. Disk failure happens to everybody, its just a matter of time.

Rescuing files

The young woman didn't make a backup, her laptop contained the only copy of her precious photos. I really wanted to help her. I offered to open her laptop to see if I could remove the disk and connect it to another computer.

Opening the laptop to remove the disk
Opening the laptop to remove the disk
The disk is usually fixed using some tiny screws
The disk is usually fixed using some tiny screws

Once the disk is removed you can use another computer to attempt reading data from it. Depending on the kind of harddisk failure, you may still be able to retrieve some data. You can use an external USB-harddisk enclosure to connect the disk to another computer.

Connect any harddisk to a computer using the chip and cables from a USB-harddisk enclosure
Connect any harddisk to a computer using the chip and cables from a USB-harddisk enclosure

Your mileage may vary, if you're lucky the disk may still have enough life in it. I connected the disk to my Debian GNU/Linux computer and after a few moments the computer detected the harddisk! It was not entirely dead yet!

Detecting the
Detecting the "USB Mass Storage device", a sign of life from the disk!

Using Linux or Mac you can instruct your computer to connect to the disk in a "read only" manner. This way you prevent writing data, reducing stress to the disk (as sometimes the operating system automatically starts to index the files, creating lots of tiny new files...).

Using terminal commands to mount a disk under Debian GNU/Linux
Using terminal commands to mount a disk under Debian GNU/Linux

If you look at the screenshot above you'll see that I used fdisk -l to list the contents of the connected disk (1). Then I checked the list to see what partition number has the largest size (2), effectively answering the question: where are the files? Finally, using the mount command (3) I instructed my computer to connect to this partition. It worked and I could list the contents of the disk (you can see by the folder names, it contains a Windows installation).

From there, I was able to navigate to the Documents folder that contained the young woman's photos. Unsure how long the faulty harddisk would live on, I didn't waste a second and started copying the photos first. Be sure to go after the "gold" first, before you attempt to copy the entire disk.

A lease on life: the faulty harddisk connected to my laptop
A lease on life: the faulty harddisk connected to my laptop

Really bad sounds came out of the disk during my attempt to rescue the photos. The disk was really giving everything it had. My computer reported numerous errors as it attempted to read data from the harddisk.

Error messages while reading data from the harddisk
Error messages while reading data from the harddisk

Hours later, I was relieved to have my computer report that most of the files had been copied successfully! It worked, hooray!!

Conclusion

This time I was lucky to be able to safe the precious photos from the disk. But next time, it may be different... You should not count on luck: make backups!

Returning the precious photos on an USB-drive
Returning the precious photos on an USB-drive

After rescuing the photos, I used a simple USB-drive to return the photos to the young woman. Needless to say, she was very happy!

Did you enjoy this post?

If you found this content useful,
consider showing your appreciation
by buying me a coffee ❤️😋:

Reach out to me on :

@wlmiddelkoop

Latest Stories

all AmsterdamDataHackingFree SoftwarePeopleVolunteerWork

Articles (148)