Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Nov 2012 08:15:00 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        Thomas Mueller <mueller23@insightbb.com>
Cc:        Mike Clarke <jmc-freebsd2@milibyte.co.uk>, freebsd-questions@freebsd.org
Subject:   Re: Mounting SD card.
Message-ID:  <alpine.BSF.2.00.1211150807210.62459@wonkity.com>
In-Reply-To: <4B.91.25607.F66B4A05@smtp02.insight.synacor.com>
References:  <4B.91.25607.F66B4A05@smtp02.insight.synacor.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



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