Re: attaching a umass device?
In [EMAIL PROTECTED], Robin Damm [EMAIL PROTECTED] typed: 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? I have no usb toys myself, but I gather it should be as easy as mount -t msdos /dev/$foo /mnt/$bar. Then access the camera as a regular filesystem. Grep dmesg or syslog for umass to find out the device name. It's probably da0s1. Even if you have real SCSI devices, it tends to be da0 until you tweak the kernel to reorder them so you can boot :-(. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/consulting.html Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: attaching a umass device?
On Thu, Jan 09, 2003 at 08:56:19AM -0600, Mike Meyer wrote: In [EMAIL PROTECTED], Robin Damm [EMAIL PROTECTED] typed: 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? I have no usb toys myself, but I gather it should be as easy as mount -t msdos /dev/$foo /mnt/$bar. Then access the camera as a regular filesystem. Grep dmesg or syslog for umass to find out the device name. It's probably da0s1. Even if you have real SCSI devices, it tends to be da0 until you tweak the kernel to reorder them so you can boot :-(. I'm 'lucky' I only use my CF reader with ATA devices then... My long term goal was to use SCSI disks in my home desktop, so thanks for the headsup when I'm able to do that... I think this bug should be fixed, but I'm guessing it will be kind of hard to devise a 'device probe order', or is this already in the kernel? --Stijn -- If today is the first day of the rest of your life, what the hell was yesterday? msg14829/pgp0.pgp Description: PGP signature
Re: attaching a umass device?
On Thursday 09 January 2003 13:13, 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? There is a port called gphoto2 which supports many cameras, doenst have all the features I would like, but if anyone knows a better way I would love to know (ie to upload photos back onto the flash card) - jacob Jacob RhodenPhone: +61 3 8344 6102 ITS DivisionEmail: [EMAIL PROTECTED] Melbourne University Mobile: +61 403 788 386 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: attaching a umass device?
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? I have no usb toys myself, but I gather it should be as easy as mount -t msdos /dev/$foo /mnt/$bar. Then access the camera as a regular filesystem. Grep dmesg or syslog for umass to find out the device name. -- Robin Damm [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: attaching a umass device?
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 msg14801/pgp0.pgp Description: PGP signature