Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Nov 2005 09:11:51 +0000
From:      Brian Candler <B.Candler@pobox.com>
To:        Robert Marella <rmarella@gmail.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: CF card and /dev filesystem entries
Message-ID:  <20051121091151.GA21747@uk.tiscali.com>
In-Reply-To: <20051120141156.6c424415@frankie.konav201.local>
References:  <20051116101200.GA2823@uk.tiscali.com> <20051116165712.GB33710@slackbox.xs4all.nl> <20051120210459.GA19861@uk.tiscali.com> <20051120141156.6c424415@frankie.konav201.local>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051121091151.GA21747>