Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jan 2003 08:13:05 +0100
From:      Stijn Hoop <stijn@win.tue.nl>
To:        David Gerard <fun@thingy.apana.org.au>
Cc:        questions@freebsd.org
Subject:   Re: attaching a umass device?
Message-ID:  <20030109071305.GC5564@pcwin002.win.tue.nl>
In-Reply-To: <20030109021324.GU32176@thingy.apana.org.au>
References:  <20030109021324.GU32176@thingy.apana.org.au>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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 ...
> 
> 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="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 CompactFlash 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: <SanDisk ImageMate II 1.30> Removable Direct Access SCSI-2 device 
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 while
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

-- 
"Coca-Cola is solely responsible for ensuring that people - too stupid to know
not to tip half-ton machines on themselves - are safe. Forget parenting - the
blame is entirely on the corporation for designing machines that look so
innocent and yet are so deadly."
	-- http://www.kuro5hin.org/?op=displaystory;sid=2001/10/28/212418/42

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+HSEBY3r/tLQmfWcRAgnxAKCXS5AxDC+PL6YENj8CwGYjq7H8gACfUP5s
7i9KkI8zvq6DnoWLwGz2SH8=
=Gtiy
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030109071305.GC5564>