Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Feb 2006 16:07:45 -0800 (PST)
From:      Doug White <dwhite@gumbysoft.com>
To:        Dmitry Morozovsky <marck@rinet.ru>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: USB Flash reader under RELENG_6: force GEOM rescan
Message-ID:  <20060209160623.E10921@carver.gumbysoft.com>
In-Reply-To: <20060209210748.L87003@woozle.rinet.ru>
References:  <200602091804.k19I41RN023914@lurza.secnetix.de> <20060209210748.L87003@woozle.rinet.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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@gumbysoft.com          |  www.FreeBSD.org



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