/usr/sbin/format
rootユーザでのみ実行可能です
format | ディスクのパーティション分割および保守のために使用します。 |
---|
なし | 使用できるディスクを示した番号付きリストが表示され、リスト内の番号でディスクを指定するように求められます。 |
---|---|
-d | formatプログラム開始時にカレントにするディスクを指定します。 |
-e | エキスパートメニューを受付ます。 |
-f | 標準入力ではなく、コマンドファイルからコマンドを受付ます。 |
-l | 指定されたログファイルに記録します。 |
-m | 拡張メッセージを有効にします。 |
-M | 拡張メッセージを有効にします。 |
-p | プログラムの開始時にカレントにするディスクのパーティションテーブルを指定します。 |
-s | サイレントモード。あらゆる標準出力を抑制します。 |
-t | プログラムの開始時にカレントにするディスクのタイプを指定します。 |
-x | データファイルに指定されているディスクのリストを使用します。 |
format
パーティションを作成するディスクを選択します。
# format Searching for disks...done c1t3d0: configured with capacity of 34.04GB AVAILABLE DISK SELECTIONS: 0. c0t0d0/pci@17,4000/scsi@3/sd@0,0 1. c0t1d0 /pci@17,4000/scsi@3/sd@1,0 2. c0t2d0 /pci@17,4000/scsi@3/sd@2,0 3. c1t0d0 /pci@17,4000/scsi@2/sd@0,0 4. c1t1d0 /pci@17,4000/scsi@2/sd@1,0 5. c1t2d0 /pci@17,4000/scsi@2/sd@2,0 6. c1t3d0 /pci@17,4000/scsi@2/sd@3,0 7. c2t10d0 /pci@16,2000/FJSV,ulsa@1/sd@a,0 8. c2t11d0 /pci@16,2000/FJSV,ulsa@1/sd@b,0 9. c3t8d0 /pci@16,2000/FJSV,ulsa@1,1/sd@8,0 10. c3t9d0 /pci@16,2000/FJSV,ulsa@1,1/sd@9,0 Specify disk (enter its number): 8 selecting c2t11d0 [disk formatted]
partitionのpを選択します。
FORMAT MENU: disk - select a disk type - select (define) a disk type partition - select (define) a partition table current - describe the current disk format - format and analyze the disk repair - repair a defective sector label - write label to the disk analyze - surface analysis defect - defect list management backup - search for backup labels verify - read and display labels save - save new disk/partition definitions inquiry - show vendor, product and revision volname - set 8-character volume name !- execute , then return quit format> p
printのpを選択します。
PARTITION MENU: 0 - change `0' partition 1 - change `1' partition 2 - change `1' partition 3 - change `1' partition 4 - change `1' partition 5 - change `1' partition 6 - change `1' partition 7 - change `1' partition select - select a predefined table modify - modify a predefined partition table name - name the current table print - display the current table label - write partition map and label to the disk !- execute , then return quit partition> p Current partition table (original):
Enter partition id tag[unassigned]: -パーティション名を指定します。
Enter partition permission flags[wu]:-パーミッションを指定します。
Enter new starting cyl[0]:シリンダーの開始番号を指定します。
シリンダーの数値がパーティション間で重複しないように指定します。
Enter partition size[0b, 0c, 0e, 0.00mb, 0.00gb]: -パーティションサイズを指定します。
Total disk cylinders available: 49779 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 unassigned wu 0 0 (0/0/0) 0 1 unassigned wu 0 0 (0/0/0) 0 2 backup wu 0 - 49778 136.72GB (49779/0/0) 286727040 3 unassigned wu 0 0 (0/0/0) 0 4 unassigned wu 0 0 (0/0/0) 0 5 unassigned wu 0 0 (0/0/0) 0 6 unassigned wu 0 0 (0/0/0) 0 7 unassigned wu 0 0 (0/0/0) 0 partition> 0 Part Tag Flag Cylinders Size Blocks 0 unassigned wu 0 0 (0/0/0) 0 Enter partition id tag[unassigned]: usr Enter partition permission flags[wu]: Enter new starting cyl[0]: 18205 Enter partition size[0b, 0c, 18205e, 0.00mb, 0.00gb]: 20gb partition> p
Enter partition size[0b, 0c, 18205e, 0.00mb, 0.00gb]: $は最後までという意味です。
Total disk cylinders available: 49779 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 usr wu 0 - 7281 20.00GB (7282/0/0) 41944320 1 var wu 7282 - 14563 20.00GB (7282/0/0) 41944320 2 backup wu 0 - 49778 136.72GB (49779/0/0) 286727040 3 home wu 14564 - 18204 10.00GB (3641/0/0) 20972160 4 unassigned wu 0 0 (0/0/0) 0 5 unassigned wu 0 0 (0/0/0) 0 6 unassigned wu 0 0 (0/0/0) 0 7 unassigned wu 0 0 (0/0/0) 0 partition> 4 Part Tag Flag Cylinders Size Blocks 4 unassigned wu 0 0 (0/0/0) 0 Enter partition id tag[unassigned]: Enter partition permission flags[wu]: Enter new starting cyl[0]: 18205 Enter partition size[0b, 0c, 18205e, 0.00mb, 0.00gb]: $ partition> p
partition> label-VTOCにラベルを保存します。
Ready to label disk, continue? y-確認メッセージです。
Current partition table (unnamed): Total disk cylinders available: 49779 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 usr wu 0 - 7281 20.00GB (7282/0/0) 41944320 1 var wu 7282 - 14563 20.00GB (7282/0/0) 41944320 2 backup wu 0 - 49778 136.72GB (49779/0/0) 286727040 3 home wu 14564 - 18204 10.00GB (3641/0/0) 20972160 4 unassigned wu 18205 - 49778 86.72GB (31574/0/0) 181866240 5 unassigned wu 0 0 (0/0/0) 0 6 unassigned wu 0 0 (0/0/0) 0 7 unassigned wu 0 0 (0/0/0) 0 Enter partition id tag[unassigned]: Enter partition permission flags[wu]: Enter new starting cyl[0]: 18205 Enter partition size[0b, 0c, 18205e, 0.00mb, 0.00gb]: $ partition> p
partition> label-VTOCにラベルを保存します。
Ready to label disk, continue? y-確認メッセージです。
Current partition table (unnamed): Total disk cylinders available: 49779 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 usr wu 0 - 7281 20.00GB (7282/0/0) 41944320 1 var wu 7282 - 14563 20.00GB (7282/0/0) 41944320 2 backup wu 0 - 49778 136.72GB (49779/0/0) 286727040 3 home wu 14564 - 18204 10.00GB (3641/0/0) 20972160 4 unassigned wu 18205 - 49778 86.72GB (31574/0/0) 181866240 5 unassigned wu 0 0 (0/0/0) 0 6 unassigned wu 0 0 (0/0/0) 0 7 unassigned wu 0 0 (0/0/0) 0 partition> label Ready to label disk, continue? y partition> q
q で終了します。
FORMAT MENU: disk - select a disk type - select (define) a disk type partition - select (define) a partition table current - describe the current disk format - format and analyze the disk repair - repair a defective sector label - write label to the disk analyze - surface analysis defect - defect list management backup - search for backup labels verify - read and display labels save - save new disk/partition definitions inquiry - show vendor, product and revision volname - set 8-character volume name !- execute , then return quit format> p