From owner-freebsd-stable@FreeBSD.ORG Mon Nov 21 09:11:54 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 71E6816A41F for ; Mon, 21 Nov 2005 09:11:54 +0000 (GMT) (envelope-from b.candler@pobox.com) Received: from orb.pobox.com (orb.pobox.com [207.8.226.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11C9543D46 for ; Mon, 21 Nov 2005 09:11:53 +0000 (GMT) (envelope-from b.candler@pobox.com) Received: from orb (localhost [127.0.0.1]) by orb.pobox.com (Postfix) with ESMTP id 04B996D6; Mon, 21 Nov 2005 04:12:15 -0500 (EST) Received: from mappit.local.linnet.org (212-74-113-67.static.dsl.as9105.com [212.74.113.67]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by orb.sasl.smtp.pobox.com (Postfix) with ESMTP id C751187; Mon, 21 Nov 2005 04:12:13 -0500 (EST) Received: from brian by mappit.local.linnet.org with local (Exim 4.54 (FreeBSD)) id 1Ee7iJ-0005fE-4g; Mon, 21 Nov 2005 09:11:51 +0000 Date: Mon, 21 Nov 2005 09:11:51 +0000 From: Brian Candler To: Robert Marella Message-ID: <20051121091151.GA21747@uk.tiscali.com> References: <20051116101200.GA2823@uk.tiscali.com> <20051116165712.GB33710@slackbox.xs4all.nl> <20051120210459.GA19861@uk.tiscali.com> <20051120141156.6c424415@frankie.konav201.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051120141156.6c424415@frankie.konav201.local> User-Agent: Mutt/1.4.2.1i Cc: freebsd-stable@freebsd.org Subject: Re: CF card and /dev filesystem entries X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Nov 2005 09:11:54 -0000 On Sun, Nov 20, 2005 at 02:11:56PM -1000, Robert Marella wrote: > > Now, that does the job: > > > > root@billdog brian# dd if=/dev/null of=/dev/da0 count=0 > > 0+0 records in > > 0+0 records out > > 0 bytes transferred in 0.000028 secs (0 bytes/sec) > > root@billdog brian# ls -l /dev/da0* > > crw-r----- 1 root operator 0, 107 Nov 20 21:00 /dev/da0 > > crw-r----- 1 root operator 0, 115 Nov 20 21:00 /dev/da0s1 > > root@billdog brian# > > > > However, I'm not sure I actually *like* opening my CF card in such a > > way that I would be likely to overwrite the partition table if I hit > > a wrong key... > > > > Regards, > > > > Brian. > > > I am not sure if this is any different but when placing or changing a > card in my card reader I run " cat /dev/null > /dev/daX" before > mounting. I have cards of different sizes and it would fail to mount a > different size card without doing the above first. Yeah, that's the same thing: open the device for write and then close it again. I still wouldn't be happy that in a haze I might type cat /dev/zero >/dev/daX instead of cat /dev/null >/dev/daX but I guess I can write a script. Regards, Brian.