USB Flash reader under RELENG_6: force GEOM rescan
Dmitry Morozovsky
marck at rinet.ru
Fri Feb 10 00:52:38 PST 2006
On Thu, 9 Feb 2006, Doug White wrote:
DW> > OF> > dd if=/dev/da0 of=/dev/da0 count=1
DW> > OF> >
DW> > OF> > which results in error, but actually create GEOMs
DW> > OF>
DW> > OF> The following should work as well, without giving an error:
DW> > OF>
DW> > OF> dd if=/dev/null of=/dev/da0 count=0
DW> > OF>
DW> > OF> It opens the device for writing (without actually writing
DW> > OF> anything) and immediately closes it again, which causes
DW> > OF> devfs to be "triggered".
DW> >
DW> > Aha, actually, it works. Thanks.
DW>
DW> How about 'fdisk da0'? :)
That was the first I checked. Nope. Trying to update MBR on the flash works,
but then dd is a bit simpler.
DW> I have a usb drive that takes a while to become ready after being
DW> inserted. It initially generates errors when attempting to access it.
DW> Yours may have a similar issue.
No, that's not my case. In my case there is no USB event when flash is
inserted/ejected (reader is internal).
Sincerely,
D.Marck [DM5020, MCK-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck at rinet.ru ***
------------------------------------------------------------------------
More information about the freebsd-stable
mailing list