Re: Sun Solaris USB Flash Drive mount command (scsa2usb driver)

From: Juergen Keil (jk_at_tools.de)
Date: 09/29/03

  • Next message: dave: "lagato or veritas"
    Date: 29 Sep 2003 18:50:50 +0200
    
    

    unixasaurus@yahoo.com (Eunice Santorini) writes:

    > QUESTION: The command below was suggested (based on the ouput from the
    > previous command above; but I have no clue what this tells me)?
    >
    > csh% ls -alrt /dev/rdsk | grep "pci@8,700000/usb@5,3/hub@3/storage@1"
    > WHICH REPORTED:
    > ../../devices/pci@8,700000/usb@5,3/hub@3/storage@1/disk@0,0:h,raw
    > ../../devices/pci@8,700000/usb@5,3/hub@3/storage@1/disk@0,0:g,raw
    > ../../devices/pci@8,700000/usb@5,3/hub@3/storage@1/disk@0,0:f,raw
    > ../../devices/pci@8,700000/usb@5,3/hub@3/storage@1/disk@0,0:e,raw
    > ../../devices/pci@8,700000/usb@5,3/hub@3/storage@1/disk@0,0:d,raw
    > ../../devices/pci@8,700000/usb@5,3/hub@3/storage@1/disk@0,0:c,raw
    > ../../devices/pci@8,700000/usb@5,3/hub@3/storage@1/disk@0,0:b,raw
    > ../../devices/pci@8,700000/usb@5,3/hub@3/storage@1/disk@0,0:a,raw

    The idea behind this command it to find out the "logical"
    /dev/rdsk/c?t?d?s? device that maps to the usb device's "physical
    device path".

    The important information here is the name of the symbolic link that
    is listed immediatelly *before* the "->".

    Example: I just plugged in an usb flash memory device, and
    /var/adm/messages lists:

    ... USB-device: storage@1, usba10_scsa2usb17 at bus address 4
    ... Generic Mass Storage Device
    ... usba10_scsa2usb17 is /pci@1f,4000/pci@4/pci9710,35@6/hub@2/storage@1

    % ls -l /dev/rdsk | grep /pci@1f,4000/pci@4/pci9710,35@6/hub@2/storage@1
    lrwxrwxrwx 1 root root 75 Sep 26 20:00 c3t0d0s0 -> ../../devices/pci@1f,4000/pci@4/pci9710,35@6/hub@2/storage@1/disk@0,0:a,raw
    lrwxrwxrwx 1 root root 75 Sep 26 20:00 c3t0d0s1 -> ../../devices/pci@1f,4000/pci@4/pci9710,35@6/hub@2/storage@1/disk@0,0:b,raw
    lrwxrwxrwx 1 root root 75 Sep 26 20:00 c3t0d0s2 -> ../../devices/pci@1f,4000/pci@4/pci9710,35@6/hub@2/storage@1/disk@0,0:c,raw
    lrwxrwxrwx 1 root root 75 Sep 26 20:00 c3t0d0s3 -> ../../devices/pci@1f,4000/pci@4/pci9710,35@6/hub@2/storage@1/disk@0,0:d,raw
    lrwxrwxrwx 1 root root 75 Sep 26 20:00 c3t0d0s4 -> ../../devices/pci@1f,4000/pci@4/pci9710,35@6/hub@2/storage@1/disk@0,0:e,raw
    lrwxrwxrwx 1 root root 75 Sep 26 20:00 c3t0d0s5 -> ../../devices/pci@1f,4000/pci@4/pci9710,35@6/hub@2/storage@1/disk@0,0:f,raw
    lrwxrwxrwx 1 root root 75 Sep 26 20:00 c3t0d0s6 -> ../../devices/pci@1f,4000/pci@4/pci9710,35@6/hub@2/storage@1/disk@0,0:g,raw
    lrwxrwxrwx 1 root root 75 Sep 26 20:00 c3t0d0s7 -> ../../devices/pci@1f,4000/pci@4/pci9710,35@6/hub@2/storage@1/disk@0,0:h,raw

    This tells me the usb flash device is on contoller #3, target #0, disk
    #0.


  • Next message: dave: "lagato or veritas"

    Relevant Pages