My new PC has an internal 16-in-1 card reader connected via USB 2.0. The
device is the Techsolo TCR-1640
(http://www.techsolo.de/product/cardreader/tcr_1640/index.php).
I boot from a compact flash inserted in it and I can mount and unmount
the same CF once the system has booted and has mounted the root
partition from my graid3 array.
The problem arise when I replace the inserted CF with another one (with
different size and filesystem) and try to mount it. Fdisk can correctly
sees the new partition table, but devfs is not updated and I cannot
mount the new media. I tried to issue all sort of camcontrol commands
(rescan the bus, eject and load the device, ...) but the dev entries
remain unchanged (equal as boot time) even if the card is inserted or
removed (camcontrol tur can see if the media is ready or not).
The system is a recent 6.1-PRERELEASE.
Any ideas or suggestions?
Follows some more debug info.
Boot messages if CF is not present:
umass0: Generic Mass Storage Device, rev 2.00/1.27, addr 2
da2 at umass-sim0 bus 0 target 0 lun 0
da2: <Generic USB SD Reader 1.00> Removable Direct Access SCSI-0 device
da2: 40.000MB/s transfers
da2: Attempt to query device size failed: NOT READY, Medium not present
da3 at umass-sim0 bus 0 target 0 lun 1
da3: <Generic USB CF Reader 1.01> Removable Direct Access SCSI-0 device
da3: 40.000MB/s transfers
da3: Attempt to query device size failed: NOT READY, Medium not present
da4 at umass-sim0 bus 0 target 0 lun 2
da4: <Generic USB SM Reader 1.02> Removable Direct Access SCSI-0 device
da4: 40.000MB/s transfers
da4: Attempt to query device size failed: NOT READY, Medium not present
da5 at umass-sim0 bus 0 target 0 lun 3
da5: <Generic USB MS Reader 1.03> Removable Direct Access SCSI-0 device
da5: 40.000MB/s transfers
da5: Attempt to query device size failed: NOT READY, Medium not present
(da2:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
(da2:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da2:umass-sim0:0:0:0): SCSI Status: Check Condition
(da2:umass-sim0:0:0:0): NOT READY csi:0,aa,55,40 asc:3a,0
(da2:umass-sim0:0:0:0): Medium not present
(da2:umass-sim0:0:0:0): Unretryable error
Opened disk da2 -> 6
(da2:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
(da2:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da2:umass-sim0:0:0:0): SCSI Status: Check Condition
(da2:umass-sim0:0:0:0): NOT READY csi:0,aa,55,40 asc:3a,0
(da2:umass-sim0:0:0:0): Medium not present
(da2:umass-sim0:0:0:0): Unretryable error
Opened disk da2 -> 6
(da2:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
(da2:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da2:umass-sim0:0:0:0): SCSI Status: Check Condition
(da2:umass-sim0:0:0:0): NOT READY csi:0,aa,55,40 asc:3a,0
(da2:umass-sim0:0:0:0): Medium not present
(da2:umass-sim0:0:0:0): Unretryable error
Opened disk da2 -> 6
(da2:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
(da2:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da2:umass-sim0:0:0:0): SCSI Status: Check Condition
(da2:umass-sim0:0:0:0): NOT READY csi:0,aa,55,40 asc:3a,0
(da2:umass-sim0:0:0:0): Medium not present
(da2:umass-sim0:0:0:0): Unretryable error
Opened disk da2 -> 6
(da3:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0
(da3:umass-sim0:0:0:1): CAM Status: SCSI Status Error
(da3:umass-sim0:0:0:1): SCSI Status: Check Condition
(da3:umass-sim0:0:0:1): NOT READY csi:0,aa,55,40 asc:3a,0
(da3:umass-sim0:0:0:1): Medium not present
(da3:umass-sim0:0:0:1): Unretryable error
Opened disk da3 -> 6
(da3:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0
(da3:umass-sim0:0:0:1): CAM Status: SCSI Status Error
(da3:umass-sim0:0:0:1): SCSI Status: Check Condition
(da3:umass-sim0:0:0:1): NOT READY csi:0,aa,55,40 asc:3a,0
(da3:umass-sim0:0:0:1): Medium not present
(da3:umass-sim0:0:0:1): Unretryable error
Opened disk da3 -> 6
(da3:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0
(da3:umass-sim0:0:0:1): CAM Status: SCSI Status Error
(da3:umass-sim0:0:0:1): SCSI Status: Check Condition
(da3:umass-sim0:0:0:1): NOT READY csi:0,aa,55,40 asc:3a,0
(da3:umass-sim0:0:0:1): Medium not present
(da3:umass-sim0:0:0:1): Unretryable error
Opened disk da3 -> 6
(da3:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0
(da3:umass-sim0:0:0:1): CAM Status: SCSI Status Error
(da3:umass-sim0:0:0:1): SCSI Status: Check Condition
(da3:umass-sim0:0:0:1): NOT READY csi:0,aa,55,40 asc:3a,0
(da3:umass-sim0:0:0:1): Medium not present
(da3:umass-sim0:0:0:1): Unretryable error
Opened disk da3 -> 6
(da4:umass-sim0:0:0:2): READ CAPACITY. CDB: 25 40 0 0 0 0 0 0 0 0
(da4:umass-sim0:0:0:2): CAM Status: SCSI Status Error
(da4:umass-sim0:0:0:2): SCSI Status: Check Condition
(da4:umass-sim0:0:0:2): NOT READY csi:0,aa,55,40 asc:3a,0
(da4:umass-sim0:0:0:2): Medium not present
(da4:umass-sim0:0:0:2): Unretryable error
Opened disk da4 -> 6
(da4:umass-sim0:0:0:2): READ CAPACITY. CDB: 25 40 0 0 0 0 0 0 0 0
(da4:umass-sim0:0:0:2): CAM Status: SCSI Status Error
(da4:umass-sim0:0:0:2): SCSI Status: Check Condition
(da4:umass-sim0:0:0:2): NOT READY csi:0,aa,55,40 asc:3a,0
(da4:umass-sim0:0:0:2): Medium not present
(da4:umass-sim0:0:0:2): Unretryable error
Opened disk da4 -> 6
(da4:umass-sim0:0:0:2): READ CAPACITY. CDB: 25 40 0 0 0 0 0 0 0 0
(da4:umass-sim0:0:0:2): CAM Status: SCSI Status Error
(da4:umass-sim0:0:0:2): SCSI Status: Check Condition
(da4:umass-sim0:0:0:2): NOT READY csi:0,aa,55,40 asc:3a,0
(da4:umass-sim0:0:0:2): Medium not present
(da4:umass-sim0:0:0:2): Unretryable error
Opened disk da4 -> 6
(da4:umass-sim0:0:0:2): READ CAPACITY. CDB: 25 40 0 0 0 0 0 0 0 0
(da4:umass-sim0:0:0:2): CAM Status: SCSI Status Error
(da4:umass-sim0:0:0:2): SCSI Status: Check Condition
(da4:umass-sim0:0:0:2): NOT READY csi:0,aa,55,40 asc:3a,0
(da4:umass-sim0:0:0:2): Medium not present
(da4:umass-sim0:0:0:2): Unretryable error
Opened disk da4 -> 6
(da5:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0
(da5:umass-sim0:0:0:3): CAM Status: SCSI Status Error
(da5:umass-sim0:0:0:3): SCSI Status: Check Condition
(da5:umass-sim0:0:0:3): NOT READY csi:0,aa,55,40 asc:3a,0
(da5:umass-sim0:0:0:3): Medium not present
(da5:umass-sim0:0:0:3): Unretryable error
Opened disk da5 -> 6
(da5:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0
(da5:umass-sim0:0:0:3): CAM Status: SCSI Status Error
(da5:umass-sim0:0:0:3): SCSI Status: Check Condition
(da5:umass-sim0:0:0:3): NOT READY csi:0,aa,55,40 asc:3a,0
(da5:umass-sim0:0:0:3): Medium not present
(da5:umass-sim0:0:0:3): Unretryable error
Opened disk da5 -> 6
(da5:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0
(da5:umass-sim0:0:0:3): CAM Status: SCSI Status Error
(da5:umass-sim0:0:0:3): SCSI Status: Check Condition
(da5:umass-sim0:0:0:3): NOT READY csi:0,aa,55,40 asc:3a,0
(da5:umass-sim0:0:0:3): Medium not present
(da5:umass-sim0:0:0:3): Unretryable error
Opened disk da5 -> 6
(da5:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0
(da5:umass-sim0:0:0:3): CAM Status: SCSI Status Error
(da5:umass-sim0:0:0:3): SCSI Status: Check Condition
(da5:umass-sim0:0:0:3): NOT READY csi:0,aa,55,40 asc:3a,0
(da5:umass-sim0:0:0:3): Medium not present
(da5:umass-sim0:0:0:3): Unretryable error
Opened disk da5 -> 6
If a CF is inserted at boot I get:
da3 at umass-sim0 bus 0 target 0 lun 1
da3: <Generic USB CF Reader 1.01> Removable Direct Access SCSI-0 device
da3: 40.000MB/s transfers
da3: 30MB (62720 512 byte sectors: 64H 32S/T 30C)
and no da3:umass-sim0:0:0:1 errors
%usbdevs -dovf /dev/usb4
Controller /dev/usb4:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000),
VIA(0x0000), rev 1.00, device uhub4
port 1 powered
port 2 powered
port 3 powered
port 4 powered
port 5 addr 2: high speed, power 250 mA, config 1, Mass Storage
Device(0x6362), Generic(0x058f), rev 1.27, device umass0
port 6 powered
port 7 powered
port 8 powered
%camcontrol devlist
<QUANTUM ATLAS_V_18_WLS 0230> at scbus1 target 0 lun 0 (da0,pass0)
<QUANTUM ATLAS10K3_18_WLS 020W> at scbus1 target 2 lun 0 (da1,pass1)
<Generic USB SD Reader 1.00> at scbus2 target 0 lun 0 (da2,pass2)
<Generic USB CF Reader 1.01> at scbus2 target 0 lun 1 (da3,pass3)
<Generic USB SM Reader 1.02> at scbus2 target 0 lun 2 (da4,pass4)
<Generic USB MS Reader 1.03> at scbus2 target 0 lun 3 (da5,pass5)
<PLEXTOR DVDR PX-750A 1.01> at scbus4 target 0 lun 0 (cd0,pass6)
<HL-DT-ST DVD-ROM GDR8164B 0L06> at scbus4 target 1 lun 0 (cd1,pass7)
--
Alex Dupre