Mailinglist Archive: opensuse-factory (279 mails)

< Previous Next >
Re: [opensuse-factory] cloning a hard drive with YaST
  • From: Sid Boyce <sboyce@xxxxxxxxxxxxxxxx>
  • Date: Tue, 10 Mar 2009 11:29:43 +0000
  • Message-id: <49B64F27.4050107@xxxxxxxxxxxxxxxx>
Carlos E. R. wrote:


On Monday, 2009-03-09 at 23:26 -0400, Greg Freemyer wrote:

dd if=/dev/sda of=/dev/sdc bs=1G conv=noerror

Please note, never use noerror without also using sync.

Why? I'm curious. I can make a guess, but I'm not sure, it is not
mentioned in the manual:

noerror
continue after read errors

sync pad every input block with NULs to ibs-size; when used
with block or unblock, pad with spaces rather than NULs

Do you mean, that without "sync", the output would just skip the
remaining bytes of a block after an error, meaning the output would
simply be "smaller", with pieces missing?

Because, as Sid did an 'xfs_repair' on the result, it means either there
was no error, or that the gaps were filled :-?



-- Cheers,
Carlos E. R.


May be sync would have fixed the errors, however "xfs_repair -L
/dev/sdc1" needed to be run to remove the old journal and clean up the
errors.
Regards
Sid.
--
Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support
Specialist, Cricket Coach
Microsoft Windows Free Zone - Linux used for all Computing Tasks

--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups