Date: Mon, 9 May 2011 10:22:34 +0800 From: dave jones <s.dave.jones@gmail.com> To: freebsd-usb@freebsd.org Subject: Problem with automount usb sd reader Message-ID: <BANLkTin7RMZ6GX1HqwN1tLhC8HHBq%2B-AkQ@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hello,
I have a usb-based sdcard reader in my computer:
umass0: <Generic USB Storage, class 0/0, rev 2.00/94.51, addr 2> on usbus4
umass0: SCSI over Bulk-Only; quirks = 0x0000
umass0:2:0:-1: Attached to scbus2
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:28,0 (Not
ready to ready change, medium may have changed)
da0 at umass-sim0 bus 0 scbus2 target 0 lun 0
If I want to mount the sd card, I have to run "true > /dev/da0" first
to create /dev/da0s1 device node.
In order to automount, I was trying to add the following lines in
/etc/devd.conf but doesn't work.
attach 10 {
device-name "umass0";
action "true > /dev/da0; mount /dev/da0s1 /mnt";
};
Any solutions? Thank you.
BR.
Dave.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTin7RMZ6GX1HqwN1tLhC8HHBq%2B-AkQ>
