From owner-freebsd-current@FreeBSD.ORG Sun Apr 20 13:04:41 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F12F937B401 for ; Sun, 20 Apr 2003 13:04:40 -0700 (PDT) Received: from gw.pelleg.org (gw.pelleg.org [205.201.13.235]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04CFB43FBD for ; Sun, 20 Apr 2003 13:04:40 -0700 (PDT) (envelope-from dpelleg@cs.cmu.edu) Received: from lank.auton.cs.cmu.edu (lank.wburn [192.168.3.41]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits))OK)) by gw.pelleg.org (Postfix) with ESMTP id A29F45A23; Sun, 20 Apr 2003 16:04:37 -0400 (EDT) Received: by lank.auton.cs.cmu.edu (Postfix, from userid 7675) id A8ED816C; Sun, 20 Apr 2003 16:04:26 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16034.64842.255947.330276@gargle.gargle.HOWL> Date: Sun, 20 Apr 2003 16:04:26 -0400 To: ticso@cicely.de 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> <20030418130014.GN10848@cicely9.cicely.de> X-Mailer: VM 7.00 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid From: Dan Pelleg cc: freebsd-current@freebsd.org Subject: Re: usb cf reader X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Dan Pelleg List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Apr 2003 20:04:41 -0000 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: The data for partition 3 is: The data for partition 4 is: # 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