From owner-freebsd-questions Wed Jan 8 23:13: 3 2003 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 4F17937B401 for ; Wed, 8 Jan 2003 23:13:01 -0800 (PST) Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5618C43E4A for ; Wed, 8 Jan 2003 23:13:00 -0800 (PST) (envelope-from stijn@pcwin002.win.tue.nl) Received: from pcwin002.win.tue.nl (orb_rules@localhost [127.0.0.1]) by pcwin002.win.tue.nl (8.12.6/8.12.6) with ESMTP id h097D58k005739; Thu, 9 Jan 2003 08:13:05 +0100 (CET) (envelope-from stijn@pcwin002.win.tue.nl) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.12.6/8.12.6/Submit) id h097D5Ld005738; Thu, 9 Jan 2003 08:13:05 +0100 (CET) Date: Thu, 9 Jan 2003 08:13:05 +0100 From: Stijn Hoop To: David Gerard Cc: questions@freebsd.org Subject: Re: attaching a umass device? Message-ID: <20030109071305.GC5564@pcwin002.win.tue.nl> References: <20030109021324.GU32176@thingy.apana.org.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZfOjI3PrQbgiZnxM" Content-Disposition: inline In-Reply-To: <20030109021324.GU32176@thingy.apana.org.au> User-Agent: Mutt/1.4i X-Bright-Idea: Let's abolish HTML mail! Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --ZfOjI3PrQbgiZnxM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 09, 2003 at 01:13:24PM +1100, David Gerard wrote: > This is probably really simple, but I couldn't see it in the handbook ... >=20 > I've plugged a umass device (a camera) into a USB port. What do I do now = to > get access to the data? You need to have usbd running (usbd_enable=3D"YES" in /etc/rc.conf), and have some options in the kernel: device scbus # SCSI bus device pass # SCSI passthrough device device da # SCSI disk device (for umass) Maybe doing a '# kldload umass' with a stock GENERIC kernel will also work, I don't know. At any rate, when you plug it in, the kernel should discover a new da device, da0 in my case since I don't have any other SCSI disks: Jan 1 20:01:26 firsa /kernel: umass0: SanDisk Corporation ImageMate Compac= tFlash USB, rev 1.10/0.09, addr 2 Jan 1 20:01:26 firsa /kernel: umass0: Get Max Lun not supported (STALLED) Jan 1 20:01:27 firsa /kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Jan 1 20:01:27 firsa /kernel: da0: Removable D= irect Access SCSI-2 device=20 Jan 1 20:01:27 firsa /kernel: da0: 650KB/s transfers Jan 1 20:01:27 firsa /kernel: da0: 122MB (250881 512 byte sectors: 64H 32S= /T 122C) I was then able to do something like # mount -t msdos /dev/da0s1 /foo To access the data. Note that my CF has partitions (?!) which took me a whi= le to figure out. It may be that your camera doesn't need that in which case you need to do 'mount /dev/da0 /foo' of course. Note that I have a card reader in which I plug my compact flash card; some digital cameras don't have umass access but need their own protocol, for which gphoto is likely to have support (as another poster alread said). HTH, --Stijn --=20 "Coca-Cola is solely responsible for ensuring that people - too stupid to k= now not to tip half-ton machines on themselves - are safe. Forget parenting - t= he blame is entirely on the corporation for designing machines that look so innocent and yet are so deadly." -- http://www.kuro5hin.org/?op=3Ddisplaystory;sid=3D2001/10/28/212418/42 --ZfOjI3PrQbgiZnxM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+HSEBY3r/tLQmfWcRAgnxAKCXS5AxDC+PL6YENj8CwGYjq7H8gACfUP5s 7i9KkI8zvq6DnoWLwGz2SH8= =Gtiy -----END PGP SIGNATURE----- --ZfOjI3PrQbgiZnxM-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message