Nerd Rangers
  • Data Recovery
  • Tech Support
    • Mac & PC Support/Repair
    • Tablets & Mobile
    • Network & Data
    • Smart Home
  • Mail-In Service
  • Support Packages
  • PC Builds
  • TikTok Tutorials

Tech Product Reviews

How to clone your failing/failed hard drive (PC or Mac)

12/14/2015

2 Comments

 
If you are ever in a situation where your hard drive is about to fail, the first thing you should do is make a clone of the failing drive ASAP.  The quickest (and arguably the easiest) way to do this is within your favorite Linux instance without having to install any fancy tools.  When you clone a failing drive, you literally copy that drive byte for byte onto another drive.  Once cloned over to the new drive, you can then access your files freely. 

But what if your drive has already failed?  Same technique. Just because you can't access the files within Finder (in Mac) or File Explorer (in Windows), doesn't mean the files are not there.  You would clone the drive the same way and copy everything over byte for byte onto a new drive. If all goes well, you should now be able to access those files from the new drive. 

The technique below walks you though cloning a drive within Linux using dd command to clone the drive. dd is a powerful UNIX utility, which is used by the Linux kernel makefiles to clone data, among other things. Only superuser can execute dd command, but that is as simple as adding sudo to the command line functions.
WARNING: While executing dd commands, if you are not careful and do not know what you are doing, you WILL lose your data.

​To clone an entire copy of a hard disk to another hard disk connected to the same system, execute the dd command as shown below. In this dd command example, the device name of the source hard disk is /dev/hdsource, and device name of the target hard disk is /dev/hdtarget.
​# dd if=/dev/hdsource of=/dev/hdtarget

​​HINTS
  • if represents the source drive and of represents target drive. So in the example above, after executing the dd command, the exact copy of /dev/hdsource will be available in /dev/hdtarget.
  • If there are any errors, the above command will fail. If you give the parameter “conv=noerror” then it will continue to copy if there are read errors.
  • Make sure you are labeling the input drive and output drives correctly. If you reverse the order, you WILL erase your data.

Happy cloning!
2 Comments

    Categories

    All
    Cameras
    Data Recovery
    Home Automation
    Networking
    Storage
    Tablets
    Wireless

    RSS Feed

 

ABOUT US

We are a family run business owned and operated out of beautiful Naperville, IL ​
We specialize in Data Recovery, Mac and PC Computer Repairs, Home Network Optimization, Custom Computer Builds, Special IT Projects and offer Monthly Support Packages. 

​We are nerdy, friendly and affordable

PAYMENTS ACCEPTED

Picture

Social Media

Contact Us

Submit
CALL, TEXT or WHATSAPP
(630) 442-0141

HOURS

Monday - Friday
  • 9:30AM - 6:30PM
Saturday & ​Sunday 
  • Closed

LOCATION

200 E. 5th Avenue
Suite 111
​Naperville, IL 60563

Located inside the Kroehler/5th Avenue Station building

©2004-2022 Nerd rangers all rights reserved

Privacy | Terms | Quick Support 
  • Data Recovery
  • Tech Support
    • Mac & PC Support/Repair
    • Tablets & Mobile
    • Network & Data
    • Smart Home
  • Mail-In Service
  • Support Packages
  • PC Builds
  • TikTok Tutorials