-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 07/04/2014 05:00 PM, Carlos E. R. wrote:
On 2014-07-04 23:37, David C. Rankin wrote:
All,
I have had a few bad blocks show up on my laptop hard-drive. I have a new drive (larger) and I would like to duplicate/clone my entire drive by attaching the new drive to the laptop through the usb port, booting from the openSuSE install disk and then using dd to clone the old drive to new. Having never attempted a clone-by-usb, I don't even know if that is possible with the software on the install CD. So before spending a couple of hours to find out it won't work, I'll ask the brain-trust:
(1) Does the install CD provide sufficient USB connection capability to attach a second drive by USB and make the device available to receive the contents of the original using dd?
(2) presuming I can get the usb drive up as /dev/sdb (or wherever it end up), can anyone suggest any further optimizations for the dd clone beyond:
dd if=/dev/sda of=/dev/sdb bs=4096 conv=notrunc,noerror,sync
Ok, I have done this before, but to disks of the exact same size.
First, don't use the install CD, unless you can not download anything else. Instead, from the openSUSE site, download the XFCE CD, which is not an installation image, but a rescue image. It does not have *office tools, nor installation tools, to save space, and instead has other tools indicated for this kind of work.
Good idea, thanks Carlos
(dd_rescue is used by dd_rhelp; don't use it directly; it is possible, but more cumbersome for this purpose)
Yes, I've used ddrescue before manually before, other than syntax it wasn't too different from dd itself, but adding repeat control for the reads will help.
Another tool is clonezilla, using its own boot CD. It is text mode, and very good for cloning disks and partitions, conserving space, and, I believe, expanding the destination space if wanted. However, I have never tried it on a damaged disk.
This disk isn't too far gone. It currently has 34 sectors marked as bad. They can still be read, they just have to be read numerous times. There has only been one sector 'lost' (data loss) that was identified and the data restored. I think I will be able to get at 100% read off the current disk. I'll make friends with dd_rhelp and take a look at clonezilla. - -- David C. Rankin, J.D.,P.E. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlO3QqEACgkQZMpuZ8Cyrcg1EACeI4+o1cgv9evpUruC6RuXHNia usgAnjk4yhwoZvZxk7SfbymvU8LE4Ecp =Pz0/ -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org