Date: Sun, 20 Apr 2003 16:04:26 -0400 From: Dan Pelleg <daniel+bsd@pelleg.org> To: ticso@cicely.de Cc: freebsd-current@freebsd.org Subject: Re: usb cf reader Message-ID: <16034.64842.255947.330276@gargle.gargle.HOWL> In-Reply-To: <20030418130014.GN10848@cicely9.cicely.de> References: <20030417191637.GA505@trudy.torrini.home> <20030418002448.GH10848@cicely9.cicely.de> <20030418075945.GB4089@trudy.torrini.home> <20030418104635.GL10848@cicely9.cicely.de> <u2sbrz4yot2.fsf@gs166.sp.cs.cmu.edu> <20030418130014.GN10848@cicely9.cicely.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?16034.64842.255947.330276>