Solaris USB Disk

Use the follow to locate a USB disk partition to mount.

Commands

  • rmformat
  • prtvtoc

Example of locating the device partition.

mbraden-u60# rmformat
Looking for devices...
     1. Logical Node: /dev/rdsk/c0t6d0s2
        Physical Node: /pci@1f,4000/scsi@3/sd@6,0
        Connected Device: TOSHIBA  DVD-ROM SD-M1401 1009
        Device Type: DVD Reader
     2. Logical Node: /dev/rdsk/c2t0d0s2
        Physical Node: /pci@1f,4000/usb@4,3/storage@6/disk@0,0
        Connected Device: Maxtor   OneTouch         0122
        Device Type: Removable
mbraden-u60# 

The device I am looking for is the Maxtor OneTouch.

Note: Remember in Solaris, the syntax for a device is c=Controller, t=Target ID, d=Disk ID and s=Slice or Partition where slice 2 is used to represent all the partitions.

To list the partitions on the Maxtor OneTouch USB drive, use prtvtoc with the Logical Node from from the rmformat output.

Use prtvtoc to show the partition map of the device.

mbraden-u60# prtvtoc /dev/rdsk/c0t0d0s2
* /dev/rdsk/c0t0d0s2 partition map
*
* Dimensions:
*     512 bytes/sector
*     107 sectors/track
*      27 tracks/cylinder
*    2889 sectors/cylinder
*   24622 cylinders
*   24620 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      2    00    4194828  66932352  71127179   /
       1      3    01          0   4194828   4194827
       2      5    00          0  71127180  71127179
mbraden-u60#

To mount and use the USB drive, mount partition 0 to get the root partition of the USB disk. In this case, the root partition is slice 0. So mount /dev/dsk/c2t0d0s0.

For more information locate the Solaris 10 Admin Guide Devices

Advertisement