CF card and /dev filesystem entries

Doug White dwhite at gumbysoft.com
Sat Nov 19 16:49:53 PST 2005


On Thu, 17 Nov 2005, Oliver Fromme wrote:

> Brian Candler <B.Candler at pobox.com> wrote:
>  > However, when I insert a CF card with normal partioning I need /dev/da0s1,
>  > and this is not present in the /dev filesystem because the partition table
>  > has not been read.
>  >
>  > # mount -t msdos /dev/da0s1 /mnt/cf
>  > mount_msdosfs: /dev/da0s1: No such file or directory
>  >
>  > Just reading the first block is not sufficient:
>  >
>  > # dd if=/dev/da0 of=/dev/null count=1
>  > 1+0 records in
>  > 1+0 records out
>  > 512 bytes transferred in 0.040984 secs (12493 bytes/sec)
>  > # mount -t msdos /dev/da0s1 /mnt/cf
>  > mount_msdosfs: /dev/da0s1: No such file or directory
>
> I think devfs is updated when a descriptor on the device
> which was opended for writing is closed.  But you don't
> actually have to write anything.  That means, the following
> command should do it:
>
> # dd if=/dev/null of=/dev/da0 count=0

Or "fdisk da0" or "bsdlabel da0" or something like that :-)

-- 
Doug White                    |  FreeBSD: The Power to Serve
dwhite at gumbysoft.com          |  www.FreeBSD.org


More information about the freebsd-stable mailing list