brent timothy saner on 18 Jul 2015 17:47:20 -0700 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] Cloning a dying hard drive |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 07/18/2015 08:23 PM, Walt Mankowski wrote: > I've done this process at least once before, it was probably like 10 > years ago. Does anyone have any thoughts on the instructions here? > > https://wiki.archlinux.org/index.php/Disk_cloning#Cloning_an_entire_hard_disk Primary thought is that Arch wiki is *awesome*. Second though: if you have the space handy, it's actually better to first *image a drive* if it's failing, and then try cloning from the image. You can use the I/O loopback module and kpartx to interact with the image. On that note, instead of dd with noerror,sync I'd instead recommend you use GNU ddrescue (*not* dd_rescue- it's a similar name, and they aim to do the same thing, but GNU does it fairly better- it's a bit more intelligent when it does encounter errors. See https://wiki.archlinux.org/index.php/File_recovery#Failing_drives for more info (I know I'm repeating myself, but I love the Arch wiki). If you don't want to install ddrescue and prefer the dd operation, then at the very least keep the HDD well cooled while attempting the recovery. It might help, it might not (it depends on why it's failing)- but it won't hurt (assuming you keep it dry while cooling). > That certainly seems the simplest method, assuming the errors remain > manageable. Other methods that might work would be > > * rsync from the roots of the old partitions to the new ones I would avoid mounting the disk at all, to be honest, if at all possible. The SystemRescueCD[0], on that note, has ddrescue (along with testdisk and photorec and i BELIEVE foremost, sotware that may help with recovery from troublesome sectors). Or I can get you a download link for a build of my personal project, BDisk[1]. > * full restore from my backups > Oh, you have backups! That's really, really good. You get a cookie. I'm not being sarcastic; too many people don't keep backups. Are they relatively recent? What does the payoff of doing a dd/ddrescue + filesystem/data corruption repair vs. an OS install + backup restore ( - missing data from backup) cost relative to each other? This is something only you can answer, as it all depends how much time you want to wait before having a box back up again. If the backups were relatively recent (no more than a day or two), I'd go that route. And one more thing- make sure you take a drill press to that old drive! [0] http://www.sysresccd.org/Download [1] https://bdisk.square-r00t.net/git/BDisk/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCgAGBQJVqvHLAAoJEIwATC+TSB9rYT0QAJFVWO3/uMmDJlFmWliEJcqN DgUC2KDyNMQw6QO7BpoQ1MAMw5EggeWbEGnavB5UdhESBC0yGHW9fISwlduP1EYX rXpdjXXFq+UF8rdjFO+ZnNYxTKhXHycHRbEEvfKzDSY6nxHcu6jyChVklhSQliIO RTS3b4r4AuksFK1ndUObK9Owb3tAHhjEjbeVF0CZNooFnYlJ8cI7+GimnCjzG0k/ hgVZYPReyfDUzXOvr7C6O8iIjC6EyOGVDWjgr7L+7b+4zOFjUTFnryAw4ULf6ea9 Y9jGyylMJ16SJltyic+lOZYuwhBh4K+CNuIK1b1zcLEqM1J3v+pf7fXbFth0Jchj CwCknP00dCQQgry6LrlKWYDshOYRodBjAc+oJYM9Wq9mAb6/Xt0yN9x0rLZ+O6Iw 7KoT1IrHpTGxB2F4dH3hNsGgvMv0dhLiZGDDhVMhr1Kp+Th0tMfaQ+7vMfVtw9M/ IL+a9QQexfLR50TEfRKExShEjAkHdkH9UG4X5kTPUMkS8sUG3R0MRHCSZQ2zFgR5 omOtRhJvsJo6fFzDNMHR2Q2qSAG8CrCH2+Wh81lBhB6753V3Pn3FDkDqam6KIhiA 2iidwyEkiGn+AnARyyVVXnrg65w3ssSpyjtyTTqFaL5masnYky+5ql5vsfx4TEpa oSQDHO1wNn96hWhR8y9J =ox8z -----END PGP SIGNATURE----- ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug