From owner-freebsd-questions@FreeBSD.ORG Thu Nov 15 15:15:03 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 47013171B for ; Thu, 15 Nov 2012 15:15:03 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id F39C68FC12 for ; Thu, 15 Nov 2012 15:15:02 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id qAFFF1RP062909; Thu, 15 Nov 2012 08:15:01 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id qAFFF01d062904; Thu, 15 Nov 2012 08:15:00 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Thu, 15 Nov 2012 08:15:00 -0700 (MST) From: Warren Block To: Thomas Mueller Subject: Re: Mounting SD card. In-Reply-To: <4B.91.25607.F66B4A05@smtp02.insight.synacor.com> Message-ID: References: <4B.91.25607.F66B4A05@smtp02.insight.synacor.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Thu, 15 Nov 2012 08:15:01 -0700 (MST) Cc: Mike Clarke , freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Nov 2012 15:15:03 -0000 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 >>> > >> 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.