28-in-1 Acorp card reader

Richard Kolkovich sarumont at sigil.org
Tue Aug 4 19:46:22 UTC 2009


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 at sigil.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-usb/attachments/20090804/e3cfb505/attachment.pgp


More information about the freebsd-usb mailing list