I have a hard drive that holds a database and is giving me a bad block error which chkdsk /f can’t fix so before it completely dies I want to basically clone the disk in the current machine over to a new hard drive. Best way to do this without losing any data?
feedback
|
|
Boot from an Ubuntu Live CD and use the ddrescue command to image the drive as much as possible to another disk or file: | |||
|
feedback
|
|
I've always been partial to ShadowProtect. It costs money but it captures an image of the disk. Just go into advanced and tell it to ignore disk errors when setting up the job. | |||
|
feedback
|
|
I've had a very good experience with dd_rescue. I typically use this with FreeBSD, but it will work with Linux as well (This is just a preference). AFAIK as I know there is no readily available LiveCD with dd_rescue. You can use a LiveCD such as parted magic and download the binary or start it from USB drive.
If your hard drive has bad blocks (aka bad sectors) then there is nothing that can truly "fix" this, the best that chkdsk or fsck can do is mark that block as inactive. Hard drives already include spare sectors by the way, and transparently reallocate the blocks. You may never know unless you read the SMART logs. | ||||
|
feedback
|
