From owner-freebsd-questions@FreeBSD.ORG Sun Sep 14 04:07:59 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC51316A4C0 for ; Sun, 14 Sep 2003 04:07:59 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDD9943FA3 for ; Sun, 14 Sep 2003 04:07:57 -0700 (PDT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.9/8.12.9) with ESMTP id h8EB7qQw045907 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Sun, 14 Sep 2003 13:07:56 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.9/8.12.9) with ESMTP id h8EB7phF024045 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 14 Sep 2003 13:07:52 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.9/8.12.9) with ESMTP id h8EB7prY068337; Sun, 14 Sep 2003 13:07:51 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.9/8.12.9/Submit) id h8EB7nsB068336; Sun, 14 Sep 2003 13:07:50 +0200 (CEST) Date: Sun, 14 Sep 2003 13:07:49 +0200 From: Bernd Walter To: Chris Shenton Message-ID: <20030914110749.GQ26878@cicely12.cicely.de> References: <86n0d94o2q.fsf@PECTOPAH.shenton.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86n0d94o2q.fsf@PECTOPAH.shenton.org> X-Operating-System: FreeBSD cicely12.cicely.de 5.1-CURRENT alpha User-Agent: Mutt/1.5.4i cc: freebsd-questions@freebsd.org Subject: Re: How to read CF card via USB with umass on 4.7-STABLE? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Sep 2003 11:07:59 -0000 On Fri, Sep 12, 2003 at 06:52:13PM -0400, Chris Shenton wrote: > I have an old digital camera which has a 64MB CF card in it. A friend > loaned me a USB card reader to extract the images. I don't seem to be > able to mount it on FreeBSD-4.7-STABLE per the umass man page. > > After plugging in the card and USB reader, dmesg shows: > > umass0: PQI Travel Flash, rev 1.10/2.05, addr 2 > da1 at umass-sim0 bus 0 target 0 lun 0 > da1: Removable Direct Access SCSI-2 device > da1: 650KB/s transfers > da1: 62MB (126976 512 byte sectors: 64H 32S/T 62C) Looks good. > The man page says: > > camcontrol rescan 0 > > Rescan a Zip drive that was added after boot. The command above assumes > that the Zip drive is the first SCSI bus in the system. > > disklabel -w -r da0 zip100 > newfs da0c > mount -t ufs /dev/da0c /mnt > > I do the camcontrol and it appears to see it: > > thanatos# camcontrol rescan 0 > Re-scan of bus 0 was successful > thanatos# camcontrol devlist -v > scbus0 on ahc0 bus 0: > at scbus0 target 0 lun 0 (pass0,da0) > < > at scbus0 target -1 lun -1 () > scbus1 on umass-sim0 bus 0: > at scbus1 target 0 lun 0 (da1,pass1) > scbus-1 on xpt0 bus 0: > < > at scbus-1 target -1 lun -1 (xpt0) Not need to do this as the device is already working. > I skip the disklabel and newfs since I've got photos on it already. > Attempts to mount fail: > > thanatos# mount -t ufs /dev/da1c /mnt > mount: /dev/da1c on /mnt: incorrect super block > thanatos# mount -t msdos /dev/da1c /mnt > msdos: /dev/da1c: Invalid argument > > Any clues? Thanks. A photo disk is most likely not ufs - it's msdosfs. msdosfs is not is normaly not used on the whole device (exeptions are floppies), so you want using the correct slice. E.g. mount -t msdos /dev/da1s1 /mnt -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de