From owner-freebsd-questions@FreeBSD.ORG Thu Nov 15 19:10:29 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 A90BFE77 for ; Thu, 15 Nov 2012 19:10:29 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 348098FC17 for ; Thu, 15 Nov 2012 19:10:28 +0000 (UTC) Received: from [89.204.153.68] (helo=tiny.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1TZ4pL-0004j5-Iw; Thu, 15 Nov 2012 20:10:16 +0100 Received: from tiny.Sisis.de (localhost [127.0.0.1]) by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id qAFJACXZ001230; Thu, 15 Nov 2012 20:10:12 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by tiny.Sisis.de (8.14.5/8.14.3/Submit) id qAFJAAe2001229; Thu, 15 Nov 2012 20:10:10 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Thu, 15 Nov 2012 20:10:10 +0100 From: Matthias Apitz To: Fernando =?iso-8859-1?Q?Apestegu=EDa?= Subject: Re: Mounting SD card. Message-ID: <20121115191009.GA1191@tiny.Sisis.de> References: <201211142058.18913.jmc-freebsd2@milibyte.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 10.0-CURRENT r226986 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.153.68 Cc: Mike Clarke , freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Nov 2012 19:10:29 -0000 El día Thursday, November 15, 2012 a las 05:57:45PM +0100, Fernando Apesteguía escribió: > On Thu, Nov 15, 2012 at 3:06 AM, Warren Block wrote: > > On Wed, 14 Nov 2012, Mike Clarke wrote: > > > >> On Wednesday 14 November 2012 19:43:30 Fernando Apesteguía wrote: > >> > >>> If I boot the system and plug the SD card in, the green led > >>> doesn't even switch on and there is only a /dev/da0 that I can not > >>> mount. If I boot the system with the card plugged in, the green led is > >>> on and there is a /dev/da0s1 device that I can't still mount because > >>> mount_msdosfs returns an Input/Output error after some time. > >> > >> > >> 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 > > That doesn't work for me, but the dd operation does. What can be the difference? Both commands open the file /dev/da0 for: open("/dev/da0",O_WRONLY|O_CREAT|O_TRUNC,0666) = 3 without writing any myte to it; you can proof this with: # truss dd if=/dev/null of=/dev/da0 count=0 and # truss sh < /dev/da0 EOF matthias -- Sent from my FreeBSD netbook Matthias Apitz | - No system with backdoors like Apple/Android E-mail: guru@unixarea.de | - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | - No proprietary attachments phone: +49-170-4527211 | - Respect for open standards