From owner-freebsd-usb@FreeBSD.ORG Tue Aug 4 19:46:21 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DEA1D10659E1 for ; Tue, 4 Aug 2009 19:46:21 +0000 (UTC) (envelope-from sarumont@sigil.org) Received: from mail.sigil.org (mail.sigil.org [208.86.227.164]) by mx1.freebsd.org (Postfix) with ESMTP id A63BE8FC1A for ; Tue, 4 Aug 2009 19:46:21 +0000 (UTC) (envelope-from sarumont@sigil.org) Received: from localhost (localhost [127.0.0.1]) by mail.sigil.org (Postfix) with ESMTP id 8E6FFBF8F6 for ; Tue, 4 Aug 2009 14:44:36 -0500 (CDT) X-Virus-Scanned: amavisd-new at sigil.org Received: from mail.sigil.org ([127.0.0.1]) by localhost (mail.sigil.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id TWurrPNgQ91a for ; Tue, 4 Aug 2009 14:44:10 -0500 (CDT) Received: from illusion.portal.sigil.org (ip72-202-157-83.ks.ks.cox.net [72.202.157.83]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sigil.org (Postfix) with ESMTPSA id 4AABBBF644 for ; Tue, 4 Aug 2009 14:44:10 -0500 (CDT) Received: by illusion.portal.sigil.org (sSMTP sendmail emulation); Tue, 4 Aug 2009 14:45:32 -0500 From: "Richard Kolkovich" Date: Tue, 4 Aug 2009 14:45:32 -0500 To: freebsd-usb@freebsd.org Message-ID: <20090804194531.GA50999@magus.portal.sigil.org> References: <200908041641.41161.achilov-rn@askd.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FCuugMFkClbJLl1L" Content-Disposition: inline In-Reply-To: <200908041641.41161.achilov-rn@askd.ru> X-OS: FreeBSD magus 7.2-PRERELEASE i386 X-Mailer: Mutt 1.5.20 (2009-06-14) X-Composed-With: vim X-PGP-Key: http://sarumont.sigil.org/pubkey.asc User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: 28-in-1 Acorp card reader X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Aug 2009 19:46:22 -0000 --FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 04, 2009 at 04:41:40PM +0700, Rashid N. Achilov wrote: > This leads to destroy any MBR geoms for da0 and reconstruct it again. But= I=20 > think, that is extremely radical way - open raw device for writing. Is th= ere=20 > any less radical way to detect inserted flash?=20 I have a little script that I run to prod my card reader(s): #!/bin/sh sudo smartctl -a /dev/da${1} -T permissive sudo smartctl -a /dev/da${1} -T permissive dd if=3D/dev/null of=3D/dev/da${1} count=3D0 mount_msdosfs /dev/da${1}s1 ~/usb I pass in the device number (da6 would have 6...). HTH --=20 Richard Kolkovich sarumont@sigil.org --FCuugMFkClbJLl1L Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAkp4j9sACgkQfXtD1KVAIbB2DgCg4O+Ors54EvvWNap6OwnG1qbk zFwAoIlBmooV7cF7qqWRvJ01nTk5VXLC =BsbT -----END PGP SIGNATURE----- --FCuugMFkClbJLl1L--