在 Oracle® Solaris 11.2 中管理设备

退出打印视图

更新时间: 2014 年 7 月
 
 

显示磁盘标签信息

要显示磁盘标签信息,请使用 prtvtoc 命令。

# prtvtoc path/device-name

其中 device-name 是要检查的原始磁盘设备(位于 path 中)。


注 -  要使用此命令,必须拥有相应的管理权限。请参阅在 Oracle Solaris 11.2 中确保用户和进程的安全 中的使用所指定的管理权限

信息因磁盘的当前标签而异。在带有 VTOC 标签的磁盘上,命令输出将包含有关磁轨和柱面的信息。在带有 EFI 标签的磁盘上,命令输出不会提供任何磁轨或柱面信息。

示例 6-5  有关带有 VTOC 标签的磁盘的标签信息
# 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
示例 6-6  有关带有 EFI 标签的根池磁盘的标签信息
# prtvtoc /dev/dsk/c7t0d0s1
* /dev/dsk/c7t0d0s1 partition map
*
* Dimensions:
*     512 bytes/sector
* 156301488 sectors
* 156301421 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     24    00        256    524288    524543
1      4    00     524544 155760527 156285070
8     11    00  156285071     16384 156301454
~#
示例 6-7  有关带有 EFI 标签的非根池磁盘的标签信息
# 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