USB Administration Guide

How to Add a Hot-Pluggable USB Camera

Use this procedure to add a hot-pluggable USB camera.

  1. Plug in and turn on the USB camera.

    The USB subsystem and the SCSA subsystem create a logical device for the camera. After the camera is plugged in, output is written to the console window and the /var/adm/messages file.

  2. Examine the output written to the console window.

    Examining this output enables you to determine what logical device was created so that you can then use that device to access your images. The output will look similar to the following:

    Jul 15 09:53:35 buffy usba: [ID 349649]       OLYMPUS, C-3040ZOOM,
    Jul 15 09:53:35 buffy genunix: [ID 936769] scsa2usb1 is 
    Jul 15 09:53:36 buffy scsi: [ID 193665] sd3 at scsa2usb1: 
    target 0 lun 0
  3. Mount the USB camera file system.

    The camera's file system is most likely a PCFS file system. In order to mount the file system on the device created, the slice that represents the disk must be specified. The slice is normally s0 for a SPARC system, and p0 for an Intel system.

    For example, to mount the file system on an Intel system, execute the following command:

    % mount -F pcfs /dev/dsk/c3t0d0p0:c /mnt

    To mount the file system on a SPARC system, execute the following command:

    % mount -F pcfs /dev/dsk/c3t0d0s0:c /mnt

    For information on mounting file systems, see “Mounting and Unmounting File Systems (Tasks)” in System Administration Guide, Volume 1.

  4. Verify that the image files are available.

    For example:

    % ls /mnt/DCIM/100OLYMP/
    P7220001.JPG*  P7220003.JPG*  P7220005.JPG*
    P7220002.JPG*  P7220004.JPG*  P7220006.JPG*
  5. View and manipulate the image files created by the USB camera.

    % /usr/dt/bin/sdtimage &
  6. Unmount the file system before disconnecting the camera.

    Unmount the file system by executing the following command:

    % umount /mnt
  7. Turn off and disconnect the camera.