From owner-freebsd-geom@FreeBSD.ORG Tue Dec 21 10:59:27 2010 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 620DE106564A; Tue, 21 Dec 2010 10:59:27 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id D9DED8FC1C; Tue, 21 Dec 2010 10:59:26 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id oBLAxAue089757; Tue, 21 Dec 2010 11:59:25 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id oBLAxAm5089755; Tue, 21 Dec 2010 11:59:10 +0100 (CET) (envelope-from olli) From: Oliver Fromme Message-Id: <201012211059.oBLAxAm5089755@lurza.secnetix.de> To: avg@freebsd.org (Andriy Gapon) Date: Tue, 21 Dec 2010 11:59:10 +0100 (CET) In-Reply-To: <4D106702.7000608@freebsd.org> X-Mailer: ELM [version 2.5 PL8] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.5 (lurza.secnetix.de [127.0.0.1]); Tue, 21 Dec 2010 11:59:25 +0100 (CET) Cc: lev@serebryakov.spb.ru, freebsd-geom@freebsd.org Subject: Re: FreeBSD 8.2-PRERELASE doesn't see slice on SDHC card in cardreader X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2010 10:59:27 -0000 Andriy Gapon wrote: > on 21/12/2010 10:11 Oliver Fromme said the following: > > Lev Serebryakov wrote: > > > I inserted 16Gb SDHC card, with one FAT32 slice (it is card from my > > > PDA). After that I've tried: > > > [...] > > > blob# ls /dev/da0* > > > /dev/da0 > > > > # /bin/dd if=/dev/null of=/dev/da0 count=0 > > > > Then try again. > > $ true > /dev/da0 > > is shorter and less prone to typos. It's shorter, but not less prone to typos, I think. If you misspell the command, or your shell's completion happens to have a bad day, the '>' output redirection will destroy whatever is on the device. On the other hand, dd's "of=..." syntax is not understood by other commands, so it is safe even if you misstype the command. And even if you accidentally write /dev/zero instead of /dev/null, the count=0 will save you (and vice versa). Of course it's probably a good idea to wrap the command in a shell alias or function (I would call it "probe-sd" or similar), so neither the length of the command nor the possibility of typos plays a role ... Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd It's trivial to make fun of Microsoft products, but it takes a real man to make them work, and a God to make them do anything useful.