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
[-- Attachment #1 --]
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
> think, that is extremely radical way - open raw device for writing. Is there
> any less radical way to detect inserted flash?
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=/dev/null of=/dev/da${1} count=0
mount_msdosfs /dev/da${1}s1 ~/usb
I pass in the device number (da6 would have 6...). HTH
--
Richard Kolkovich
sarumont@sigil.org
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (FreeBSD)
iEYEARECAAYFAkp4j9sACgkQfXtD1KVAIbB2DgCg4O+Ors54EvvWNap6OwnG1qbk
zFwAoIlBmooV7cF7qqWRvJ01nTk5VXLC
=BsbT
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090804194531.GA50999>
