From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OKzje-0001vo-Tw for garchives@archives.gentoo.org; Sat, 05 Jun 2010 20:12:51 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 662BCE0A5F; Sat, 5 Jun 2010 20:12:26 +0000 (UTC) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by pigeon.gentoo.org (Postfix) with SMTP id E9305E0A5F for ; Sat, 5 Jun 2010 20:12:25 +0000 (UTC) Received: (qmail invoked by alias); 05 Jun 2010 20:12:24 -0000 Received: from h081217020148.dyn.cm.kabsi.at (EHLO speedy.localnet) [81.217.20.148] by mail.gmx.net (mp008) with SMTP; 05 Jun 2010 22:12:24 +0200 X-Authenticated: #14909370 X-Provags-ID: V01U2FsdGVkX1+Z5Chgp7mZCH7xFbwtgwCvx5ETPZgpAfoBr2zs6Y DUxkeCje2KMQGx From: Manuel Klemenz Organization: Austrian Gaming Industries GmbH To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: Fast checksumming of whole partitions Date: Sat, 5 Jun 2010 22:11:54 +0200 User-Agent: KMail/1.13.3 (Linux/2.6.31-gentoo-r6; KDE/4.4.3; x86_64; ; ) References: <20100605063956.GA5125@solfire> <4C0A8BC5.9040305@gmail.com> <20100605192331.GA11007@solfire> In-Reply-To: <20100605192331.GA11007@solfire> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2164702.U25YVhXMif"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201006052211.59256.m.klemenz@gmx.at> X-Y-GMX-Trusted: 0 X-Archives-Salt: 9883417d-cc7f-4608-8157-6ab3114e21b9 X-Archives-Hash: bdd2ead43a8be7f0c3ef36473508bf17 --nextPart2164702.U25YVhXMif Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I'm calculating checksums over partitions just by calling # md5sum /dev/sda1 or for the complete disk (incl. partition table + all partitions) # md5sum /dev/sda that's it :) - works with any distro/liveDVD =2D-=20 Cheers, Manuel Klemenz On Saturday 05 June 2010 21:23:31 meino.cramer@gmx.de wrote: > 7v5w7go9ub0o <7v5w7go9ub0o@gmail.com> [10-06-05 20:22]: > > On 06/05/10 02:39, meino.cramer@gmx.de wrote: > > [] > >=20 > > > Is there any faster and reliable way to checksum whole paritions (not > > > on "per file" base)??? > >=20 > > FWIW, portage has a tool called "dcfldd" that works well for me. It is > >=20 > > dd with the addition of: > > * Hashing on-the-fly - dcfldd can hash the input data as it is > >=20 > > being transferred, helping to ensure data integrity. > >=20 > > * Status output - dcfldd can update the user of its progress in > >=20 > > terms of the amount of data transferred and how much longer operation > > will take. > >=20 > > * Flexible disk wipes - dcfldd can be used to wipe disks quickly > > and > >=20 > > with a known pattern if desired. > >=20 > > * Image/wipe Verify - dcfldd can verify that a target drive is a > >=20 > > bit-for-bit match of the specified input file or pattern. > >=20 > > * Multiple outputs - dcfldd can output to multiple files or disks > > at > >=20 > > the same time. > >=20 > > * Split output - dcfldd can split output to multiple files with > > more > >=20 > > configurability than the split command. > >=20 > > * Piped output and logs - dcfldd can send all its log data and > >=20 > > output to commands as well as files natively. > >=20 > >=20 > > e.g. when I copy my HD, I get a copy status report and hash by using the > > following commands: > >=20 > > #!/bin/bash > > dcfldd if=3D/dev/sda bs=3D4096k sizeprobe=3Dif status=3Don hashwindow= =3D0 > > of=3D/dev/sdb dcfldd if=3D/dev/sdb bs=3D4096k sizeprobe=3Dif status=3Don > > hashwindow=3D0 of=3D/dev/null > >=20 > > When they've completed, I'll visually compare the two hashes (you can > > automate this.) You can get fancier and do the Verify instead of the > > hashes. > >=20 > > HTH > >=20 > > (p.s. Part of your answer is setting the best blocksize for dd or > > dcfldd. > >=20 > > I'd presume it the smaller of your available memory, or the buffer size > > on your HD?...... someone please correct me on this!?) >=20 > That looks really interesting. The only problem I have with this is > that I have to have /dev/sda as /dev/sdb idle (not mounted) and > because of that I use knoppix as temporary system to boot. And I > dont think that knoppix has this tool "on board". >=20 > Or is there a way to do such copies from a one disk to another > while one disk is booted??? >=20 > Best regards, > mcc --nextPart2164702.U25YVhXMif Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) iQEcBAABAgAGBQJMCq+PAAoJEL8qBCSixTaF10YH/iC3+QQ6H80XEro4zkTMzkjC ZKsAJRszI0wq2JQ+oHjir3maNkiTP0VHCXTEz9nnNO9/1x3BFKUtpyQHT0Yalp0F v6cVv9N0uhP9E6M5jXuIPTCpxH6VUE9D4Tcch+3yRJWkYDdNkC7iHGPD2eHB3Mw5 s8qxKG55WBzJMvwlHutjv+MikuBzDsQjjd1gMQgfsF9MafrJnFg2Wk8xgqWI4rUm 6DvUtrHCTFEPmwY5QHq6HIzaeoELLRFtoZH5dsz8Tpeg/jRQvd3Q0K4P2a7lV2Gr bmgposGq1TnihzpclLP9LTRaD8vGgTPrUCD3pmhpXEvvVGKvibifhp9MPKViZ6Q= =V7QG -----END PGP SIGNATURE----- --nextPart2164702.U25YVhXMif--