/usr/sbin/prtvtoc
rootユーザでのみ実行可能です。
prtvtoc [オプション] rawデバイス | ディスクのVTOCの情報を表示します。 |
---|
-f | 空きスペース、ブロックの数、未使用のパーティションのスターティングブロックアドレスを表示します。 |
---|---|
-h | ヘッダーを省略して表示します。 |
-m mnttab | マウントされているファイルシステムのリストとして、/etc/mnttabの代わりに mnttab を使用します。 |
-s | 列ヘッダー以外のすべてのヘッダーを省略して表示します。 |
-t vfstab | ファイルシステムデフォルトのリストとして /etc/vfstabに代わって vfstabを使用します。 |
prtvtoc /dev/rdsk/c0t0d0s0
prtvtoc -s /dev/rdsk/c0t0d0s0
ディスク /dev/rdsk/c0t0d0s0 のVTOC情報を表示します。
# prtvtoc /dev/rdsk/c0t0d0s0 * /dev/rdsk/c0t0d0s0 partition map * * Dimensions: * 512 bytes/sector * 574 sectors/track * 10 tracks/cylinder * 5740 sectors/cylinder * 12437 cylinders * 12435 accessible cylinders * * Flags: * 1: unmountable * 10: read-only * Unallocated space: * First Sector Last * Sector Count Sector * 71158780 218120 71376899 * First Sector Last * Partition Tag Flags Sector Count Sector Mount Directory 0 2 00 0 64862000 64861999 / 1 3 01 64862000 6296780 71158779 2 5 00 0 71376900 71376899
ヘッダを省略してディスク /dev/rdsk/c0t0d0s0のVTOC情報を表示します。
# prtvtoc -s /dev/rdsk/c0t0d0s0 * Partition Tag Flags Sector Count Sector Mount Directory 0 2 00 0 64862000 64861999 / 1 3 01 64862000 6296780 71158779 2 5 00 0 71376900 71376899