Date: Mon, 21 Nov 2005 15:48:46 +0100 From: Andre Albsmeier <Andre.Albsmeier@siemens.com> To: Brian Candler <B.Candler@pobox.com> Cc: freebsd-stable@freebsd.org, Robert Marella <rmarella@gmail.com> Subject: Re: CF card and /dev filesystem entries Message-ID: <20051121144846.GA10523@curry.mchp.siemens.de> In-Reply-To: <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> <20051121091151.GA21747@uk.tiscali.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 21-Nov-2005 at 09:11:51 +0000, Brian Candler wrote: > 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. FYI, http://www.freebsd.org/cgi/query-pr.cgi?85975 -Andre
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051121144846.GA10523>