/usr/sbin/format
rootユーザでのみ実行可能です
| format -e | SMIラベルとEFIラベルを書換えるのに使用します。 |
|---|
| なし | 使用できるディスクを示した番号付きリストが表示され、リスト内の番号でディスクを指定するように求められます。 |
|---|---|
| -d | formatプログラム開始時にカレントにするディスクを指定します。 |
| -e | エキスパートメニューを受付ます。 |
| -f | 標準入力ではなく、コマンドファイルからコマンドを受付ます。 |
| -l | 指定されたログファイルに記録します。 |
| -m | 拡張メッセージを有効にします。 |
| -M | 拡張メッセージを有効にします。 |
| -p | プログラムの開始時にカレントにするディスクのパーティションテーブルを指定します。 |
| -s | サイレントモード。あらゆる標準出力を抑制します。 |
| -t | プログラムの開始時にカレントにするディスクのタイプを指定します。 |
| -x | データファイルに指定されているディスクのリストを使用します。 |
format -e
EFIラベルの場合は2のbackupが無く8のパーティションが作られます。
Current partition table (original): Total disk sectors available: 35678442 + 16384 (reserved sectors) Part Tag Flag First Sector Size Last Sector 0 usr wm 34 17.01GB 35678442 1 unassigned wm 0 0 0 2 unassigned wm 0 0 0 3 unassigned wm 0 0 0 4 unassigned wm 0 0 0 5 unassigned wm 0 0 0 6 unassigned wm 0 0 0 8 reserved wm 35678443 8.00MB 35694826 partition>
formatコマンドに-eオプションを指定します。
# format -e
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
200000
/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): 4
selecting c1t1d0
[disk formatted]
labelを指定します。
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> label
SMI Labelを選択します。
[0] SMI Label [1] EFI Label Specify Label type[1]: 0 Warning: This disk has an EFI label. Changing to SMI label will erase all current partitions. Continue? y Auto configuration via format.dat[no]? n Auto configuration via generic SCSI-2[no]? n format> p
ラベルが書換えられたことを確認します。
partition> p Current partition table (default): Total disk cylinders available: 12435 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 root wu 0 - 91 128.93MB (7282/0/0) 41944320 1 swap wu 92 - 183 128.93MB (92/0/0) 264040 2 backup wu 0 - 12434 17.02GB (12435/0/0) 35688450 3 unassigned wm 0 0 (0/0/0) 0 4 unassigned wm 0 0 (0/0/0) 0 5 unassigned wm 0 0 (0/0/0) 0 6 usr wm 184 - 12434 16.77GB (12251/0/0) 35160370 7 unassigned wm 0 0 (0/0/0) 0 partition>