Go to main content

マニュアルページ セクション 8: システム管理コマンド

印刷ビューの終了

更新: 2022年7月27日
 
 

prtvtoc(8)

名前

prtvtoc - ディスクジオメトリおよびパーティション分割に関する情報の報告

形式

prtvtoc [-fhs] [-t vfstab] [-m mnttab] device

説明

The prtvtoc command allows the contents of the disk label to be viewed.

device 名は、/dev/rdsk/c?t?d?s2 の形式で raw デバイスのファイル名にすることも、/dev/dsk/c?t?d?s2 の形式でブロック型デバイスのファイル名にすることもできます。The command must be run by a user with read access to the given device file, which is normally limited to the root user.

オプション

サポートしているオプションは、次のとおりです。

–f

空き領域の開始ブロックアドレス、ブロック数、未使用パーティションなど、ディスク空き領域の情報を報告します。

–h

通常の出力からヘッダーを省略します。

–m mnttab

マウントされているファイルシステムのリストとして、/etc/mnttab の代わりに mnttab を使用します。

–s

通常の出力から列ヘッダーを除くすべてのヘッダーを省略します。

–t vfstab

ファイルシステムデフォルトのリストとして、/etc/vfstab の代わりに vfstab を使用します。

使用例 1 prtvtoc コマンドを使用する

The following example uses the prtvtoc command on a 558.91-gigabyte hard disk:

example# prtvtoc /dev/rdsk/c0t5000CCA0438594D4d0s2
* /dev/rdsk/c0t5000CCA0438594D4d0s2 partition map
*
* Dimensions:
*     512 bytes/sector
*     668 sectors/track
*      27 tracks/cylinder
*   18036 sectors/cylinder
*   64988 cylinders
*   64986 accessible cylinders
*
* Label:
*   SMI/VTOC
*
* Flags:
*   1: unmountable
*  10: read-only
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      2    00          0    270540    270539
       1      3    01     270540    270540    541079
       2      5    01          0 1172087496 1172087495
       6      4    00     541080 1171546416 1172087495
example#

上記の Tag 列内のデータは、次のようなパーティションのタイプを示します。

「名前」
数値
UNASSIGNED
0x00
BOOT
0x01
ROOT
0x02
SWAP
0x03
USR
0x04
BACKUP
0x05
STAND
0x06
VAR
0x07
HOME
0x08
ALTSCTR
0x09
CACHE
0x0a
RESERVED
0x0b
SYSTEM
0x0c
BOOT
0x18

上記の Flags 列内のデータは、次のように、パーティションをマウントする方法を示します。

「名前」
数値
MOUNTABLE, READ AND WRITE
0x00
NOT MOUNTABLE
0x01
MOUNTABLE, READ ONLY
0x10
使用例 2 –f オプションを付けて prtvtoc コマンドを使用する

The following example uses the prtvtoc command with the –f option on a 558.91-gigabyte hard disk:

example# prtvtoc –f /dev/rdsk/c0t5000CCA056443D34d0
FREE_START=34 FREE_SIZE=222 FREE_COUNT=1 FREE_PART=134567
使用例 3 1T バイトを超えるディスクで prtvtoc コマンドを使用する

次の例では、1T バイトを超えるディスクで prtvtoc コマンドを使用します。

example# prtvtoc /dev/rdsk/c0t600144F00010E0352FB45F06DC2A0001d0
* /dev/rdsk/c0t600144F00010E0352FB45F06DC2A0001d0 partition map
*
* Dimensions:
*     512 bytes/sector
* 3221225472 sectors
* 3221225405 accessible sectors
*
* Label:
*   EFI/GPT
*
* Flags:
*   1: unmountable
*  10: read-only
*
* Unallocated space:
*       First     Sector    Last
*       Sector     Count    Sector
*          34        14        47
*   3221209040        15 3221209054
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      4    00         48 3221208992 3221209039
       8     11    00  3221209055     16384 3221225438

属性

属性についての詳細は、マニュアルページの attributes(7) を参照してください。

属性タイプ
属性値
使用条件
system/core-os

関連項目

attributes(7), devinfo(8), fmthard(8), format(8), mount(8)

警告

mount コマンドでは、「マウント不可」のビットは検査されません。