Mailinglist Archive: opensuse-factory (279 mails)

< Previous Next >
Re: [opensuse-factory] cloning a hard drive with YaST
  • From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
  • Date: Tue, 10 Mar 2009 14:52:13 +0100 (CET)
  • Message-id: <alpine.LSU.2.00.0903101445580.9084@xxxxxxxxxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Content-ID: <alpine.LSU.2.00.0903101448121.9084@xxxxxxxxxxxxxxxx>


On Tuesday, 2009-03-10 at 06:45 -0400, Greg Freemyer wrote:

On Tue, Mar 10, 2009 at 12:05 AM, Carlos E. R.

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:

...

Look at the output of a dd run.

dd if=/dev/zero of=/dev/null count=100
100+0 records in
100+0 records out
51200 bytes (51 kB) copied, 0.000172439 s, 297 MB/s

The first 100 says 100 blocks read without error. the first zero is 0
failed blocks failed to read.

The second 100 is the blocks written without error, and the second 0
is the failed block writes.

Aha, ok...


If you don't use sync and there are 2 errors I believe you get:

98+2 records in
98+0 records out.

i.e The failed blocks are not replicated in the destination at all

I see... I don't know how to confirm this, though. It could be:

98+2 records out

instead. :-?

I wonder why they don't document this in the manual.


With sync, you get:
98+2 records in
100+0 records out.

I suppose it is too late to know what Sid got.

I'm not sure what the exact output block has in it but at least part
of it is zero filled. I always use a 4k block size to align my
userspace behavior with the kernels normal page size.

Yes, that part is clear.

- -- Cheers,
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkm2cI4ACgkQtTMYHG2NR9Vh6QCeNOtGS+BCdEgYH9QMrcCCzzzz
pcEAniIP8WQINsiMoTc8nbxkvDY4P3el
=QSM5
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >