Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #174569
| From | Christian Seiler <christian@iwakd.de> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: dd - proper use or more suitable program |
| Date | 2016-11-12 08:40 +0100 |
| Message-ID | <sCB4S-7qv-5@gated-at.bofh.it> (permalink) |
| References | <sCnlf-6OQ-1@gated-at.bofh.it> <sCnlf-6OQ-9@gated-at.bofh.it> <sCohj-7nJ-7@gated-at.bofh.it> <sCrIe-1lU-51@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 11/11/2016 10:38 PM, Richard Owlett wrote: > I was wondering about that. > https://www.gnu.org/software/ddrescue/manual/ddrescue_manual.html is > not first time user friendly. Will re-read after a good night's > sleep. Will also look for appropriate tutorials. Suggestions? Well, I would suggest not dumping the result on another partition but rather into an image file. In that case you'd have the old drive (not mounted), let's call it /dev/sda, and the new drive with a partition on it and mounted on /mnt with sufficient free disk space there. In the simplest case you'd do: ddrescue /dev/sda /mnt/defective_drive.img /mnt/defective_drive.log If the drive is farther gone and has quite a few defective sectors you may get better results if you use direct disk access for the phase where you try to read defective sectors. In that case you'd copy the bulk of the data while disabling the scraping phase manually, ddrescue -n /dev/sda /mnt/defective_drive.img /mnt/defective_drive.log And then use direct access to scrape the rest: ddrescue -d /dev/sda /mnt/defective_drive.img /mnt/defective_drive.log Note that ddrescue assumes a default sector size of 512 bytes, which is likely to be correct for older hard drives smaller than 2 TiB. If you have a newer hard drive, especially if it's rather large, the physical sector size could be 4096 bytes instead. (You can check the physical sector size of your disk by running hdparm -I /dev/sda - that will tell you a lot of things about your drive, among them the physical sector size in bytes. Note that the physical sector size is relevant here, not the logical one.) In addition, you may also want to specify a number of retries when trying to read defective sectors. (Default is 0.) You can do that with the -r flag, e.g. -r3 for three retries per sector. To recap: - Simplest way of calling the program is ddrescue /dev/sda output_image_file log_file - If the condition of your hard drive is a bit worse, you might achieve better results with: ddrescue -n /dev/sda output_image_file log_file ddrescue -d -r2 /dev/sda output_image_file log_file (-r2 is for 2 retries per defective sector, you can change that number; you can also call the second ddrescue command again in case you want to do more retries.) - If you have a new disk with 4096 bytes / sector (not likely) please also add a -b4096 to the command line. - If your target is not an image file, but a disk drive itself, also specify the -f option. (I would really recommend using image files though, gives you more flexibility.) - I wouldn't really bother with the other options, the default behavior is very sensible. - Finally, get some coffee or similar, this may take a while. Regards, Christian
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: dd - proper use or more suitable program Andy Smith <andy@strugglers.net> - 2016-11-11 18:00 +0100
Re: dd - proper use or more suitable program Christian Seiler <christian@iwakd.de> - 2016-11-11 18:40 +0100
Re: dd - proper use or more suitable program The Wanderer <wanderer@fastmail.fm> - 2016-11-11 19:20 +0100
Re: dd - proper use or more suitable program Richard Owlett <rowlett@cloud85.net> - 2016-11-11 22:40 +0100
Re: dd - proper use or more suitable program Andy Smith <andy@strugglers.net> - 2016-11-12 05:50 +0100
Re: dd - proper use or more suitable program Richard Owlett <rowlett@cloud85.net> - 2016-11-12 09:20 +0100
Re: dd - proper use or more suitable program Nicolas George <george@nsup.org> - 2016-11-11 19:00 +0100
Re: dd - proper use or more suitable program Richard Owlett <rowlett@cloud85.net> - 2016-11-11 22:40 +0100
Re: dd - proper use or more suitable program Christian Seiler <christian@iwakd.de> - 2016-11-12 08:40 +0100
Re: dd - proper use or more suitable program Richard Owlett <rowlett@cloud85.net> - 2016-11-12 09:30 +0100
Re: dd - proper use or more suitable program Richard Owlett <rowlett@cloud85.net> - 2016-11-12 18:30 +0100
Re: dd - proper use or more suitable program Pascal Hambourg <pascal@plouf.fr.eu.org> - 2016-11-12 19:30 +0100
Re: dd - proper use or more suitable program Richard Owlett <rowlett@cloud85.net> - 2016-11-12 20:30 +0100
Re: dd - proper use or more suitable program Ben Caradoc-Davies <ben@transient.nz> - 2016-11-12 21:00 +0100
Re: dd - proper use or more suitable program Brian <ad44@cityscape.co.uk> - 2016-11-12 21:10 +0100
Re: dd - proper use or more suitable program <tomas@tuxteam.de> - 2016-11-12 22:00 +0100
Invoking ddrescue Richard Owlett <rowlett@cloud85.net> - 2016-11-13 04:10 +0100
Re: Invoking ddrescue "Thomas Schmitt" <scdbackup@gmx.net> - 2016-11-13 13:00 +0100
Re: Invoking ddrescue <tomas@tuxteam.de> - 2016-11-13 13:10 +0100
Re: Invoking ddrescue <tomas@tuxteam.de> - 2016-11-13 13:00 +0100
Re: Invoking ddrescue "Thomas Schmitt" <scdbackup@gmx.net> - 2016-11-13 13:40 +0100
Re: Invoking ddrescue Pascal Hambourg <pascal@plouf.fr.eu.org> - 2016-11-13 13:50 +0100
Re: Invoking ddrescue Nicolas George <george@nsup.org> - 2016-11-13 14:00 +0100
Re: Invoking ddrescue "Thomas Schmitt" <scdbackup@gmx.net> - 2016-11-13 14:40 +0100
Re: Invoking ddrescue Pascal Hambourg <pascal@plouf.fr.eu.org> - 2016-11-13 15:10 +0100
Re: Invoking ddrescue "Thomas Schmitt" <scdbackup@gmx.net> - 2016-11-13 16:10 +0100
Re: Invoking ddrescue Richard Owlett <rowlett@cloud85.net> - 2016-11-13 17:30 +0100
Re: Invoking ddrescue Brian <ad44@cityscape.co.uk> - 2016-11-13 15:20 +0100
Progress report Re: Invoking ddrescue Richard Owlett <rowlett@cloud85.net> - 2016-11-14 20:20 +0100
Re: Progress report Re: Invoking ddrescue Jonathan Dowland <jmtd@debian.org> - 2016-11-14 21:20 +0100
Re: Progress report Re: Invoking ddrescue Richard Owlett <rowlett@cloud85.net> - 2016-11-14 22:00 +0100
Re: Progress report Re: Invoking ddrescue <tomas@tuxteam.de> - 2016-11-14 21:30 +0100
Re: Progress report Re: Invoking ddrescue Richard Owlett <rowlett@cloud85.net> - 2016-11-14 22:20 +0100
Re: Progress report Re: Invoking ddrescue "Thomas Schmitt" <scdbackup@gmx.net> - 2016-11-14 21:30 +0100
Re: Progress report Re: Invoking ddrescue Richard Owlett <rowlett@cloud85.net> - 2016-11-14 22:10 +0100
Re: Progress report Re: Invoking ddrescue Pascal Hambourg <pascal@plouf.fr.eu.org> - 2016-11-17 20:20 +0100
SUCESS!!! - was [Re: Progress report Re: Invoking ddrescue] Richard Owlett <rowlett@cloud85.net> - 2016-11-14 23:40 +0100
Re: SUCESS!!! - was [Re: Progress report Re: Invoking ddrescue] Brian <ad44@cityscape.co.uk> - 2016-11-15 00:30 +0100
Re: SUCESS!!! - was [Re: Progress report Re: Invoking ddrescue] Richard Owlett <rowlett@cloud85.net> - 2016-11-15 04:00 +0100
Re: SUCESS!!! - was [Re: Progress report Re: Invoking ddrescue] Brian <ad44@cityscape.co.uk> - 2016-11-15 21:00 +0100
Re: SUCESS!!! - was [Re: Progress report Re: Invoking ddrescue] <tomas@tuxteam.de> - 2016-11-15 22:00 +0100
Re: SUCESS!!! - was [Re: Progress report Re: Invoking ddrescue] "Thomas Schmitt" <scdbackup@gmx.net> - 2016-11-15 12:50 +0100
Re: SUCESS!!! - was [Re: Progress report Re: Invoking ddrescue] Brian <ad44@cityscape.co.uk> - 2016-11-15 13:30 +0100
Re: SUCESS!!! - was [Re: Progress report Re: Invoking ddrescue] "Thomas Schmitt" <scdbackup@gmx.net> - 2016-11-15 13:50 +0100
Re: SUCESS!!! - was [Re: Progress report Re: Invoking ddrescue] Richard Owlett <rowlett@cloud85.net> - 2016-11-15 13:50 +0100
Re: SUC[C]ESS!!! - was [Re: Progress report Re: Invoking ddrescue] David Wright <deblis@lionunicorn.co.uk> - 2016-11-15 16:30 +0100
Re: SUCESS!!! - was [Re: Progress report Re: Invoking ddrescue] "Thomas Schmitt" <scdbackup@gmx.net> - 2016-11-15 17:20 +0100
Re: SUCESS!!! - was [Re: Progress report Re: Invoking ddrescue] Greg Wooledge <wooledg@eeg.ccf.org> - 2016-11-15 17:30 +0100
csiph-web