Solaris – How to Examine a Disk Label

0
0

Examine disk label information by using the prtvtoc command.

  1. Become superuser.
  2. Display the disk label information.
    # prtvtoc /dev/rdsk/device-name

    where device-name is the raw disk device you want to examine.

Example – Examining a Disk Label :

The following example shows disk label information for a disk with a VTOC label:

# prtvtoc /dev/rdsk/c2t3d0s0
* /dev/rdsk/c2t3d0s0 partition map
*
* Dimensions:
*     512 bytes/sector
*     848 sectors/track
*      24 tracks/cylinder
*   20352 sectors/cylinder
*   14089 cylinders
*   14087 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      2    00          0 286698624 286698623
       2      5    01          0 286698624 286698623

The following example shows disk label information for a non-root pool disk with an EFI label:

# prtvtoc /dev/dsk/c8t3d0 
* /dev/dsk/c8t3d0 partition map
*
* Dimensions:
*     512 bytes/sector
* 143374738 sectors
* 143374671 accessible sectors
*
* Flags:
*   1: unmountable
*  10: read-only
*
* Unallocated space:
*       First     Sector    Last
*       Sector     Count    Sector
*          34       222       255
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      4    00        256 143358065 143358320
       8     11    00  143358321     16384 143374704

LEAVE A REPLY

Please enter your comment!
Please enter your name here