From owner-freebsd-questions@FreeBSD.ORG Wed Sep 12 22:06:38 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C09EC1065676 for ; Wed, 12 Sep 2012 22:06:38 +0000 (UTC) (envelope-from gobble.wa@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 423FC8FC14 for ; Wed, 12 Sep 2012 22:06:37 +0000 (UTC) Received: by weyx56 with SMTP id x56so1524170wey.13 for ; Wed, 12 Sep 2012 15:06:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=V2WjkPmW8P29XqPzrH43QXRxm9aB7zRZuzhq2nLT2g8=; b=ac9tVkZ28htsBpyB1kp36oWQ4kz9dlFczHrTMu5JVFVUkeiV7WjKyG/AfnlJ3rhEPG MjlP6EFWrcNBAteH+nxyGyq5vDNiOYcoXX/p7Th55e4Ng7xP0E5XgoKCuKUkScWL7cf3 XQQo2y2DPiQErfsCgVk3wvcpg2YqYkLnW8a9DqUkmfyknvasWi3k/wEw7+kFCgyEos4x oHTXlHO9DGEbxf3CK70zvaPGm6Fx6jwimktglMrzR36eC4izqoBPHHZBKfzSrHdVbUr1 HiJmssgpSXAQWEr/Htb7PXOAMrpxyJok2LqaOUsH+jMmIAyMRiJvxF5QisACsOmc7rFo ww1w== MIME-Version: 1.0 Received: by 10.216.194.39 with SMTP id l39mr5137848wen.131.1347487596959; Wed, 12 Sep 2012 15:06:36 -0700 (PDT) Received: by 10.216.183.2 with HTTP; Wed, 12 Sep 2012 15:06:36 -0700 (PDT) In-Reply-To: <20120912214704.GB19460@ethic.thought.org> References: <20120911213804.GA9817@ethic.thought.org> <20120912011443.5df17cf2.freebsd@edvax.de> <50502C51.5020601@FreeBSD.org> <20120912174625.GA17551@ethic.thought.org> <20120912214704.GB19460@ethic.thought.org> Date: Wed, 12 Sep 2012 15:06:36 -0700 Message-ID: From: Waitman Gobble To: Gary Kline Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Mailing List Subject: Re: cksum entire dir?? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Sep 2012 22:06:38 -0000 On Wed, Sep 12, 2012 at 2:47 PM, Gary Kline wrote: > On Wed, Sep 12, 2012 at 10:55:57AM -0700, Waitman Gobble wrote: > > On Wed, Sep 12, 2012 at 10:46 AM, Gary Kline wrote: > > > > > On Wed, Sep 12, 2012 at 07:31:45AM +0100, Matthew Seaman wrote: > > > > On 12/09/2012 00:14, Polytropon wrote: > > > > > % cksum > > > > > > > > > > and could obtain a checksum - so it _seems_ to work. > > > > > After alteration of one file within the hierarchy a > > > > > different result was printed. > > > > > > > > That will give you a checksum on the directory inode -- file names > and > > > > associated metadata only, not file content. In theory you could > edit a > > > > file without modifying any of the timestamps, and that wouldn't > result > > > > in any change to the directory checksum. Also, modifying things a > few > > > > layers down the filesystem hierarchy won't have any effect either. > > > > > > > > Generally I find the best test for differences between old and new > > > > copies of a filesystem is 'rsync -avx -n ...' > > > > > > > > Also, sum and cksum have way too small a key size for this to be > > > > reliable, since you can't tell a true result from a hash collision. > Use > > > > md5 or sha1 or sha256 for best results. > > > > > > > > > > So this sha256 is *real*?? I have no md5 on my "fedora" > > > that is on my desktop and m having trouble getting used to. > > > but the gentleman who recommened cpio was right on the money. > > > > > > > > > > > are you sure it's not 'md5sum' ? ... that seems to be on all my GNU/Linux > > machines. > > > > Waitman Gobble > > San Jose California USA > > > > yup, you be right. altho we have no md5 [[does FBSD?]], fedora > does have md5sum. makes me wonder why this flavor didnt do at > least a > symlink. oh well. > > thankee much. > > [[ > axeing to save BW > ]] > > > > > > > > Dr Matthew J Seaman MA, D.Phil. > > > > PGP: http://www.infracaninophile.co.uk/pgpkey > > > > > > > > > > > > > > > > > _______________________________________________ > > > freebsd-questions@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > > To unsubscribe, send any mail to " > > > freebsd-questions-unsubscribe@freebsd.org" > > > > cat /usr/src/sbin/md5 /* * Derived from: * * MDDRIVER.C - test driver for MD2, MD4 and MD5 */ /* * Copyright (C) 1990-2, RSA Data Security, Inc. Created 1990. All * rights reserved. * * RSA Data Security, Inc. makes no representations concerning either * the merchantability of this software or the suitability of this * software for any particular purpose. It is provided "as is" * without express or implied warranty of any kind. * * These notices must be retained in any copies of any part of this * documentation and/or software. */ on my fedora machine, md5sum is from GNU coreutils (on FreeBSD this is in ports/sysutils/coreutils) FreeBSD $ md5 messages MD5 (messages) = cfbeddecf1a699471c8135a331aac589 Fedora # md5sum messages ece159dd0b47c7a7592ceb036745a474 messages if you gotta have md5.c, could probably pull the src and build on fedora or maybe something like http://www.efgh.com/software/md5.htm Waitman Gobble San Jose California