Mounting SD card.

Warren Block wblock at wonkity.com
Thu Nov 15 15:15:03 UTC 2012


On Thu, 15 Nov 2012, Thomas Mueller wrote:

>>> I think that's pretty much standard behaviour. The solution appears to be
>>> to "wake" it up with the following incantation:
>
>>>    dd if=/dev/null of=/dev/da0 count=0
>
>>> That's what works here. See the thread starting with
>>> <http://lists.freebsd.org/pipermail/freebsd-questions/2010-February/212109.html>
>
>> true > /dev/da0
>
>> is a little shorter and safer.  The search keywords for this are "GEOM
>> retaste" or "retasting".
>
> Could you also do a read such as
>
> dd if=/dev/da0 of=/dev/null bs=16k count=1

Unfortunately, no.  Retastes are only done after a device has been 
opened for write.  true(1) is nice for that because it never actually 
writes anything.

This still feels awkward and dangerous to me, and I'd like to see an 
explicit gretaste command.


More information about the freebsd-questions mailing list