USB Flash reader under RELENG_6: force GEOM rescan
Doug White
dwhite at gumbysoft.com
Thu Feb 9 16:07:45 PST 2006
On Thu, 9 Feb 2006, Dmitry Morozovsky wrote:
> OF> >
> OF> > dd if=/dev/da0 of=/dev/da0 count=1
> OF> >
> OF> > which results in error, but actually create GEOMs
> OF>
> OF> The following should work as well, without giving an error:
> OF>
> OF> dd if=/dev/null of=/dev/da0 count=0
> OF>
> OF> It opens the device for writing (without actually writing
> OF> anything) and immediately closes it again, which causes
> OF> devfs to be "triggered".
>
> Aha, actually, it works. Thanks.
How about 'fdisk da0'? :)
I have a usb drive that takes a while to become ready after being
inserted. It initially generates errors when attempting to access it.
Yours may have a similar issue.
--
Doug White | FreeBSD: The Power to Serve
dwhite at gumbysoft.com | www.FreeBSD.org
More information about the freebsd-stable
mailing list