Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.computer > #11069

Re: COPY HD, sim to Parted Magic?

From Paul <nospam@needed.invalid>
Newsgroups alt.computer
Subject Re: COPY HD, sim to Parted Magic?
Date 2019-05-24 07:15 -0400
Organization A noiseless patient Spider
Message-ID <qc8jo5$auq$1@dont-email.me> (permalink)
References <PMKFE.3076$gz4.1532@fx03.iad>

Show all headers | View raw


Robert Baer wrote:
>   Well, i have my 500G "frozen HD up and running, with all i want.
>   BUT, using Parted Magic, when i tried to copy it to another HD, what i 
> got was an almost-immediate fail, and Parted Magic DESTROYED that "to" 
> HD with a complete wipe (all zeros).
> 
>   That i unacceptable.
>   I need a way to make a copy, no failure, and no destruction of either 
> drive.
> 
>   If i loaded Parted Magic, maybe i could command-line some Linux 
> gibberish to do that?
> 
>   Ideas?
>   (thanks)
> 

http://www.hdtune.com/files/hdtune_255.exe

Bad block scan.

https://i.postimg.cc/qMv7pgQB/test-first-copy-next.gif

If the unit can pass the test completely, you can use "dd".

If the unit cannot pass the test, then it depends on the
symptoms. If there are simply a few errored blocks and
full capacity is evident (test runs to end of disk),
then you use "ddrescue" (gddrescue package in Linux).

In Windows, Macrium can do the copy at the partition level,
using Shadow Copy and only needing to copy each file (no slack
space need be copied). Using "dd" or "ddrescue" is for cases
where the drive is sick ("simple" sickness). Using "dd"
type methods, we don't care if the partition cannot pass
CHKDSK or not.

Of the 20+ Windows backup/clone utilities, a number of
them will have a "ddrescue like" copy option. The hard part
is proving they're not telling a lie. In a test of Macrium,
what should have been a 2 hour sector-by-sector copy, only
took 10 minutes, so their "forensic" copy option didn't
work to my satisfaction (it did not copy slack space as
expected).

In cases where the drive goes nuts half-way through the
transfer, of course those are going to be harder to complete.
"ddrescue" is an incremental copy program, and it picks up
where it left off. It could "get more of the data", than
practically anything else.

One way for drives to fail, is if there is insufficient DC
voltage at the Molex connector. This happens when you string
three or four extension cables, and connect around four drives,
and the cheap cabling uses 20ga wire, and the motor voltage
drops to 11V. You'll never finish a transfer under those
conditions. The drive will keep spinning down and spinning
up. I know this, because it happened to me.

HDTune allows some basic tests that "prove it's a hard drive
and not a large metal brick". Once you know that it has
basic read capability working, you'll have a better idea
then as to what tool is appropriate.

Macrium normally cannot efficiently copy stuff with
damaged file systems. In such cases, and if the various
health indicators are telling you "you've got 24 hours
to get this data off here", then you ddrescue it.

https://www.cgsecurity.org/wiki/Damaged_Hard_Disk

    # first, grab most of the error-free areas in a hurry:
    # [No, it doesn't hurry - this is a figure of speech]
    # sda is the source disk, sdb is the destination disk.
    # *Make sure* you know which is which with either gnome-disks
    # or the gparted display.

    Steps:

    1) Boot Linux LiveCD. System RAM will be holding the
       rescued.log file. *Don't* shut down without copying
       the rescued.log to a USB stick for later runs.

    2) A good technician erases the destination drive,
       providing a "pristine" destination for any ddrescue
       runs. If sectors are not copied for any reason, they
       will be replaced with relatively easy-to-figure-out
       zeroed sectors. This will erase drive SDB in Linux.
       This also offers an opportunity to verify performance.

       In one terminal:

       sudo apt install iotop
       man iotop                 # the -a option is useful in some cases
       sudo iotop                # monitor transfer speed

       In a second terminal, erase the dest drive. I am
       assuming here, you know how to figure out which drive
       is which. (Which is harder than it needs to be.)

       sudo dd if=/dev/zero of=/dev/sdb bs=8192

    3) Check for ddrescue not in system.

       ddrescue          # system will tell you the command to use...

       sudo apt install gddrescue     # That's the command

       man ddrescue    # Review the options

       # Now, we try to copy the data onto the clean SDB drive

       sudo ddrescue -n /dev/sda /dev/sdb rescued.log    # First pass...

    4) On a healthy disk, if this worked, the logfile will be
       practically empty.

       ls -al rescued.log  # If less than 1KB, just "cat" to the screen

       cat rescued.log     # They haven't changed the name of the "cat"
                           # command quite yet...

       nano rescued.log    # Figuring out the name of the text editor
       gedit rescued.log   # will cause a rapid loss of sanity.

    5) If the rescued.log indicates sectors were missed, do
       (additional) runs.

       # try to recover as much of the dicey areas as possible
       # [the command consults the rescued.log and the terse
       #  recording language, for the remaining sectors to copy]

       sudo ddrescue -r 1 /dev/sda /dev/sdb rescued.log

     6) Look at the rescued.log file again. Is it getting smaller ?
        Are we winning yet ? Is a "suspiciously large and precise
        chunk missing" after repeated attempts to copy ???
        This hints at a logical failing, rather than a physical failing.

A Linux Mint disc might be one tool to use. The Terminal is
on the menu bar. If using a Ubuntu LiveDVD, you would type
"Terminal" into the Dash search icon. Which is the icon
at the top or bottom on the left (depending on which release).
The Package Manager in Mint is relatively "ready-to-use". The
Ubuntu one would make Jesus weep (some hair loss required).

HTH,
    Paul

Back to alt.computer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

COPY HD, sim to Parted Magic? Robert Baer <robertbaer@localnet.com> - 2019-05-23 21:53 -0700
  Re: COPY HD, sim to Parted Magic? Paul <nospam@needed.invalid> - 2019-05-24 07:15 -0400
    Re: COPY HD, sim to Parted Magic? Robert Baer <robertbaer@localnet.com> - 2019-05-24 23:20 -0800
      Re: COPY HD, sim to Parted Magic? Paul <nospam@needed.invalid> - 2019-05-25 13:13 -0400
        Re: COPY HD, sim to Parted Magic? Robert Baer <robertbaer@localnet.com> - 2019-05-25 22:50 -0800
          Re: COPY HD, ref Parted Magic, Macrium Robert Baer <robertbaer@localnet.com> - 2019-05-31 15:56 -0800
            Re: COPY HD, ref Parted Magic, Macrium Paul <nospam@needed.invalid> - 2019-05-31 22:39 -0400
              Re: COPY HD, ref Parted Magic, Macrium Robert Baer <robertbaer@localnet.com> - 2019-06-03 22:27 -0800
                Re: COPY HD, ref Parted Magic, Macrium Paul <nospam@needed.invalid> - 2019-06-04 03:48 -0400
                Re: COPY HD, ref Parted Magic, Macrium Robert Baer <robertbaer@localnet.com> - 2019-06-04 09:55 -0800
                Re: COPY HD, ref Parted Magic, Macrium Paul <nospam@needed.invalid> - 2019-06-04 14:45 -0400
                Re: COPY HD, ref Parted Magic, Macrium Robert Baer <robertbaer@localnet.com> - 2019-06-05 08:02 -0800
                Re: COPY HD, ref Parted Magic, Macrium Paul <nospam@needed.invalid> - 2019-06-05 13:50 -0400
                Re: COPY HD, ref Parted Magic, Macrium Robert Baer <robertbaer@localnet.com> - 2019-06-05 19:31 -0800
                Re: COPY HD, ref Parted Magic, Macrium BAD INFO Robert Baer <robertbaer@localnet.com> - 2019-06-07 17:39 -0800

csiph-web