From owner-freebsd-questions@FreeBSD.ORG Wed Sep 12 18:31:19 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 114FC1065674 for ; Wed, 12 Sep 2012 18:31:19 +0000 (UTC) (envelope-from mike.jeays@rogers.com) Received: from nm25.bullet.mail.sp2.yahoo.com (nm25.bullet.mail.sp2.yahoo.com [98.139.91.95]) by mx1.freebsd.org (Postfix) with SMTP id CEB1A8FC16 for ; Wed, 12 Sep 2012 18:31:18 +0000 (UTC) Received: from [98.139.91.65] by nm25.bullet.mail.sp2.yahoo.com with NNFMP; 12 Sep 2012 18:31:18 -0000 Received: from [98.139.44.81] by tm5.bullet.mail.sp2.yahoo.com with NNFMP; 12 Sep 2012 18:31:18 -0000 Received: from [127.0.0.1] by omp1018.access.mail.sp2.yahoo.com with NNFMP; 12 Sep 2012 18:31:18 -0000 X-Yahoo-Newman-Id: 360830.56221.bm@omp1018.access.mail.sp2.yahoo.com Received: (qmail 46235 invoked from network); 12 Sep 2012 18:31:17 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=DKIM-Signature:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Date:From:To:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; b=FyDFulTUfbtrQtzHTrFFSF5ue9eOsxJOWVMSXts3iuywMDff4F0dxruyNla3dUvh6+H7ujEsbvfSiSxikF6lpdPxr0vkdK+TeF53j9LgOyy4R5q87Eo3A2Nh5Br5yc8RAH03aySOhlxBmS3PT8TdsMYEmRMVH4EZQWy5AZFpmiE= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rogers.com; s=s1024; t=1347474677; bh=OT1FwQEU1Dbqx+oi+/b2I7++wc+PZ/ZCvp02RiY+5qs=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Date:From:To:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; b=cIbkZlOm6VwR8t5hV+IRMbeCBNjN38OwSXLtcT/ClXUE8YsvoKYsFhJ2Gfme6efOWl2ADZm+PRCB1LylmIfFq2ASBSm9QYWyXfztagHCioEU6NRxyo80/UEUCUvAdT+J1vgqQP0trp2A2tck64CLx1sST6SayX8ktrJ+hFFVG9g= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: tdpXF1YVM1njS.m7uKJc5uGdVskHPqaZd3.pPh4bBRDwT_m J32f5.SfK_BW6W_N_PbU10yPa1HjVGom52e3dJbepiOmxzgTrKuGueWhF6OE cHpX13nPbCwCVxOfrhY82TA._putefTwwDbRcecrD8uTY5Vnih_sUvQf.4yb 0T7631GcHB.MKb.agBe9W9IJUV3fwUdBnD9K1p6EZkoS1rF_ADdxtHoSSWT0 Bn7lSjz8ItrBvMdLj5eJN5r.UfdQWSHckLbtLK488kitxQFYuKOkUEKBO71V jgXIZaHcIUU6LA5LPgt9h0d2Z9yr0Czr9rU.wIH0s71_YLVMbzf1N5ZBYZRd h8ze8jGZkyWTjF6Jfcf_hi1A5dxlNIcMMeiQGFYfE8TCwKH6egk6LXzIigUn D4m8aPv_64wgouzwgm40c.d2wcs738QBr4uIoASX8Srnn6_XNg3hGoGAjvzE cmmMk23tnLQnqRBZFTA3EUIpr_uzU9s0FQS.f9tWQ3zdQpGIbQBfjFrqGPsd 1BJGGCVvDmDdJcvCuvuCeZ_zZGF5m_G5ito4clYl700XKlmObYXylXGfWnVu xwmQN3jofWZRlZmw8JQ-- X-Yahoo-SMTP: N82WFx6swBBjwcHWPFR2CGt6udzA8RPrA.xm0enFFXaK2g-- Received: from europa (mike.jeays@174.112.197.123 with login) by smtp106.rog.mail.gq1.yahoo.com with SMTP; 12 Sep 2012 11:31:17 -0700 PDT Date: Wed, 12 Sep 2012 14:31:16 -0400 From: Mike Jeays To: freebsd-questions@freebsd.org Message-ID: <20120912143116.1f8f8309@europa> In-Reply-To: References: <20120911213804.GA9817@ethic.thought.org> <20120912011443.5df17cf2.freebsd@edvax.de> <50502C51.5020601@FreeBSD.org> <20120912174625.GA17551@ethic.thought.org> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.24.4; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 18:31:19 -0000 On Wed, 12 Sep 2012 10:55:57 -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 > > > > > > > > note that I am loathe to spam this list with the following mail > > from my > > files in sept, 1988, but here it is. if I had only gr -r -w cpio > > around in all my directories, I would have found this, sent to one > > Dirm > > Myers across the pond :: > > > > > > === > > > > >From kline Sat Sep 5 11:52:20 1998 > > Subject: lost mail file... > > To: dirkm@buster.dhis.eu.org (Dirk Myers) > > Date: Sat, 5 Sep 1998 11:52:20 -0700 (PDT) > > Organization: <> thought.org: public access uNix in service... <> > > X-Mailer: ELM [version 2.4ME+ PL32 (25)] > > MIME-Version: 1.0 > > Content-Type: text/plain; charset=US-ASCII > > Content-Transfer-Encoding: 7bit > > Content-Length: 2283 > > Status: RO > > > > > > Yesterday morning I began composing the next two Q's and A's > > in my mailer. Last night in the wee hours there was a power > > glitch and I lost the mail. > > > > Enclosed is the first//next Q/A. I'll send along another one > > or two later today. One that I was playing around with *failed* > > and I'm trying to figure out why. > > > > ----- > > > > How can I uise my FBSD floppy drive to copy files to it (in this case, > > at work), and retrieve the files on my FBSD systtem at home. So far > > I've only seen examples that used floppies with a filesystem on them. > > Is there a simplr, more direct way? > > > > You can treat the 'raw' floppy device as if it is a tape drive, and > > use typically UNIX tape tools to read/write, such as tar and cpio. > > For instance, to copy the current directory onto a floppy to > > take home at night: > > > > (put the floppy in the drive, and cd to the directory where > > the files are; then ) > > > > % tar -cvf /dev/rfd0 . > > > > To read it when you get home: > > > > (put the floppy in the drive at home; and extract the tarball > > wherever you want the files) > > > > % tar -xvf /dev/rfd0 > > > > The flags -c and -x indicate create and extract mode, the ``v'' > > specifies verbose mode, and the ``f'' tells tar that the following > > argument is the file or device that tar acts upon. Here, it is > > the floppy devide. > > > > > > With cpio: > > > > (chdir to the directory where the files are) > > > > % ls | cpio -oc > /dev/rfd0 > > > > To read a cpio archive from a tape drive: > > > > % cpio -icd < /dev/rfd0 > > > > > > The flags -i and -o indicate copy-in or extract mode and > > copy-out or create archive mode. The ``c'' tells cpio > > to use the old, portablr ASCII archive format. And the > > ``d'' flag tells cpio to create directories where necessary. > > > > Do a > > > > % man cpio > > > > for much greater detail on this utility. > > > > ----- > > > > There are another one or two of the simpler Q/A's and one or two > > more involved. > > > > Then, for this month only, I want to write a paragraph or two > > about who I am and where I'm coming from. Since you are sharing > > the by-line you might want to consider this too. > > > > gary > > > > PS: Next month we get a break!! > > > > -- > > Gary D. Kline kline@tao.thought.org Public service > > uNix > > > > ==== > > as you can see, this dealt with my olden tape drive. a 250meg > > QIC drive, I think. but this was about the earliest reference > > I could find re my use of cpio. there are others in my journal > > dir that reference my running out of hard drive and using cpio > > rather > > that a straight cp -rp. [this was back when a 130meg drive was > > Huge > > and made me feel rick.] > > > > > > > > > Cheers, > > > > > > Matthew > > > > > > -- > > > 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" > > > _______________________________________________ > 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" My Linux system has both md5sum and md5deep. They give the same result, except that md5sum quotes the file name in the current directory, and md5deep gives the fully-qualified name. I have been using md5deep - I didn't know md5sum existed.