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
[EMAIL PROTECTED]          |  www.FreeBSD.org
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to