Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Aug 2009 14:45:32 -0500
From:      "Richard Kolkovich" <sarumont@sigil.org>
To:        freebsd-usb@freebsd.org
Subject:   Re: 28-in-1 Acorp card reader
Message-ID:  <20090804194531.GA50999@magus.portal.sigil.org>
In-Reply-To: <200908041641.41161.achilov-rn@askd.ru>
References:  <200908041641.41161.achilov-rn@askd.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



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