public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: meino.cramer@gmx.de
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: Fast checksumming of whole partitions
Date: Mon, 7 Jun 2010 17:48:45 +0200	[thread overview]
Message-ID: <20100607154845.GA6795@solfire> (raw)
In-Reply-To: <huctq5$7lk$1@dough.gmane.org>

Nikos Chantziaras <realnc@arcor.de> [10-06-05 10:08]:
> On 06/05/2010 09:39 AM, meino.cramer@gmx.de wrote:
> >
> >Hi,
> >
> >  this night dd copies the contents of my first
> >  1TB disk to my second 1TB disk (same Model).
> >
> >  (dd if=/devsda of=/dev/sdb bs=4096)
> >
> >  I want to verify, that the copy is identical.
> >
> >  I tried (or: I am still trying) to checksum
> >  the first disk with
> >
> >  whirlpooldeep /dev/sda
> >
> >  whch seems to work but is DAMN slow (in relation
> >  to checksumming 1TB in whole).
> >
> >  Is there any faster and reliable way to checksum
> >  whole paritions (not on "per file" base)???
> >
> >  Thank you very much in advance for any help!
> >
> >  Best regards,
> >  mcc
> 
> Constructing a checksum means reading every byte off the partition.  So 
> it's slower as a copy to /dev/null, never faster (because the checksum 
> calculation also needs time.)
> 
> So in order to determine whether it's really slow, compare the time 
> needed to dd the whole partition to /dev/null to the time needed for 
> checksumming it.  Then post the times here and an expert might then 
> tell whether this can be improved at all or not.
> 

Since the following is only some "info in between" I answer not one
of the last posting, which only means, that this post somehow is
related to this fred but not as a direct reply.

I downloaded the current "Parted magic" which 
- copies itsself completly to RAM if wanted and runs from there
  which gives you back the dvd/cdrom drive for other things.
- contains a lot of get-out-of-a-desaster-tools combined
  with tools to play low level games with harddiscs
- contains dcfldd (!).

With this and dcfldd I copied one 1TB WD10EARS disk on a SATA1
controller to another harddisk of the same model with this 
timings (sda ==> sdb):

real: 293m17.265s
user: 113m59.072s
sys : 64m6.605s

Checksumming the second disk while copying its contents to /dev/null
reveals this timnings (sdb==>null:

real: 253m57.517s
user: 113m51.988s
sys : 32m21.381s

Again: The transfer was via SATA1 and the disks were jumpered to use 
SATA1 speeds only.

Despite a lot of CRC-error reported via dmesg/kernel logs the copy
was identical to the original. As mentioned, I think the via pata
conflicts with via sata in earlier kernels, since I do not see
these messages with 2.6.34.00.

I will check for sdd on the Parted Magic iso and post later what I did
find.

Does anyone has experiences with gparted?
Is it recommended (I need support for ext4)?

Best regards,
mcc

-- 
Please don't send me any Word- or Powerpoint-Attachments
unless it's absolutely neccessary. - Send simply Text.
See http://www.gnu.org/philosophy/no-word-attachments.html
In a world without fences and walls nobody needs gates and windows.




  reply	other threads:[~2010-06-07 15:49 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-05  6:39 [gentoo-user] Fast checksumming of whole partitions meino.cramer
2010-06-05  7:19 ` [gentoo-user] " Nikos Chantziaras
2010-06-07 15:48   ` meino.cramer [this message]
2010-06-07 17:10     ` walt
2010-06-07 18:47       ` meino.cramer
2010-06-07 17:31     ` Andrea Conti
2010-06-07 18:54       ` meino.cramer
2010-06-11 22:41         ` Mick
2010-06-05  7:32 ` [gentoo-user] " Andrea Conti
2010-06-05 17:39 ` [gentoo-user] " 7v5w7go9ub0o
2010-06-05 19:23   ` meino.cramer
2010-06-05 20:11     ` Manuel Klemenz
2010-06-06 19:02       ` 7v5w7go9ub0o
2010-06-06 19:47         ` Joerg Schilling
2010-06-06 22:43           ` 7v5w7go9ub0o
2010-06-06 23:12             ` Joerg Schilling
2010-06-06 22:46         ` Neil Bothwick
2010-06-07  1:04           ` 7v5w7go9ub0o
2010-06-05 23:44     ` 7v5w7go9ub0o
2010-06-06 10:19       ` Andrea Conti
2010-06-06 16:55         ` Mick
2010-06-06 18:55         ` 7v5w7go9ub0o
2010-06-06 20:00           ` Mick
2010-06-06 20:45           ` Andrea Conti
2010-06-06 23:06             ` 7v5w7go9ub0o

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100607154845.GA6795@solfire \
    --to=meino.cramer@gmx.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox