Re: usb cf reader

From: Dan Pelleg <daniel+bsd_at_pelleg.org>
Date: Sun, 20 Apr 2003 16:04:26 -0400
Bernd Walter writes:
 > On Fri, Apr 18, 2003 at 08:26:17AM -0400, Dan Pelleg wrote:
 > > Just in case it might help, have a look at:
 > > 
 > > http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/50633
 > > 
 > > FWIW I found that a script that:
 > > - sleeps 5 seconds
 > > - if /dev/da0s1 doesn't exist, tries to mount /dev/da0  (and always fails)
 > > - mounts /dev/da0s1
 > > 
 > > works, if I hook it to usbd.
 > 
 > Well - this is no solution.
 > The point here is why the fdisk table is unreadable.
 > We should be able to get an error or the device lies about successfull
 > transfers.
 > Do you see errors?
 > 

No, fdisk works for me even if /dev/da1s1 isn't created. 
Therefore I'm not seeing the same problem as the OP. For completeness I'm
attaching the output from my machine.

# ls -l /dev/da1*
crw-r-----  1 root  operator    4,  22 Apr 13 10:26 /dev/da1
# fdisk da1
******* Working on device /dev/da1 *******
parameters extracted from in-core disklabel are:
cylinders=7 heads=64 sectors/track=32 (2048 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=7 heads=64 sectors/track=32 (2048 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 1 (0x01),(Primary DOS with 12 bit FAT)
    start 32, size 15648 (7 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 244/ head 1/ sector 32
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>
# ls -l /dev/da1*
crw-r-----  1 root  operator    4,  22 Apr 13 10:26 /dev/da1
# mount /dev/da1 /mnt/cf
mount: /dev/da1 on /mnt/cf: incorrect super block
# ls -l /dev/da1*
crw-r-----  1 root  operator    4,  22 Apr 13 10:26 /dev/da1
crw-r-----  1 root  operator    4,  23 Apr 13 10:26 /dev/da1s1
# mount -t msdos /dev/da1s1 /mnt/cf
# umount /mnt/cf
#

This is on a world from Apr. 4 or so. There's this stuff in the logs, but
it seems to be harmless.

(da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 
(da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da1:umass-sim0:0:0:0): SCSI Status: Check Condition
(da1:umass-sim0:0:0:0): NOT READY asc:3a,0
(da1:umass-sim0:0:0:0): Medium not present
(da1:umass-sim0:0:0:0): Unretryable error
Received on Sun Apr 20 2003 - 11:04:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:04 UTC