ここで説明する実行例は、以下に示す条件のシステムでパーティションを作成するものです。
システムに1つのコントローラ(ディスク)だけがある。
Systemwalkerが使用するパーティションはフォーマットされていない。
注意
パーティションの作成について
実際にパーティションを作成する場合は、システムに合わせて、実行例で示す入力値を変更する必要があります。実行例と同じ入力値でパーティションを作成すると、データが破壊される場合がありますので注意してください。
formatコマンドを実行します。
formatコマンドを実行するには、スーパーユーザの権限(root権限)が必要です。
formatコマンドを実行します。
コマンドを実行し、disk一覧を表示します。
以下に、diskが1つの場合の表示例を示します。
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <ST34342A cyl 8892 alt 2 hd 15 sec 63>
/pci@1f,0/pci@1,1/ide@3/dad@0,0ディスク番号を指定します。
disk一覧の番号を指定します。以下の例では、「0」を指定します。
番号を指定し、FORMAT MENUを表示します。
Specify disk (enter its number): 0
selecting c0t0d0
No defect list found
[disk formatted, no defect list found]
Warning: Current Disk has mounted partitions.
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
show - translate a disk address
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
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quitpartitionコマンドを実行します。
partitionコマンドを実行します。
コマンドを実行し、PARTITION MENUを表示します。
format> partition
PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' 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
!<cmd> - execute <cmd>, then return
quitパーティションを確認します。
printコマンドを実行し、現在のパーティションを確認します。
partition> print
Current partition table (original): Total disk cylinders available: 8892 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 root wm 0 - 4189 2.01GB (4190/0/0) 4223520 1 swap wu 4190 - 5231 512.86MB (1042/0/0) 1050336 2 backup wu 0 - 17659 8.49GB (17660/0/0) 17801280 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 unassigned wm 0 0 (0/0/0) 0 7 unassigned wm 0 0 (0/0/0) 0
RDB管理情報専用パーティションを作成します。
パーティションを指定します。
以下の例では、パーティション3を指定します。
partition> 3 Part Tag Flag Cylinders Size Blocks 3 unassigned wm 0 0 (0/0/0) 0
パーティションIDタグを指定します。
「usr」を指定します。
Enter partition id tag[unassigned]: usr
パーティションパーミッションフラグを指定します。
「wm」を指定します。
Enter partition permission flags[wm]: wm
開始シリンダを指定します。
以下の例では、2.のprintコマンドで確認した未使用シリンダの先頭「5232」を指定します。
Enter new starting cyl[0]: 5232
パーティションサイズを指定します。
「300.0mb」を指定します。
Enter partition size[0b, 0c, 0.00mb, 0.00gb]: 300.00mb
パーティションサイズを指定します。
printコマンドを入力し、現在のパーティションを確認します。
partition> print
Current partition table (unnamed): Total disk cylinders available: 8892 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 root wm 0 - 4189 2.01GB (4190/0/0) 4223520 1 swap wu 4190 - 5231 512.86MB (1042/0/0) 1050336 2 backup wu 0 - 17659 8.49GB (17660/0/0) 17801280 3 usr wm 5232 - 5809 300.23MB (678/0/0) 645024 4 unassigned wm 0 0 (0/0/0) 0 5 unassigned wm 0 0 (0/0/0) 0 6 unassigned wm 0 0 (0/0/0) 0 7 unassigned wm 0 0 (0/0/0) 0
RDBディクショナリ用パーティションを作成します。
パーティションを指定します。
以下の例では、パーティション4を指定します。
partition> 4
Part Tag Flag Cylinders Size Blocks 4 unassigned wm 0 0 (0/0/0) 0
パーティションIDタグを指定します。
「usr」を指定します。
Enter partition id tag[unassigned]: usr
パーティションパーミッションフラグを指定します。
「wu」を指定します。
Enter partition permission flags[wm]: wu
開始シリンダを指定します。
以下の例では、3.のprintコマンドで確認した未使用シリンダの先頭「5810」を指定します。
Enter new starting cyl[0]: 5810
パーティションサイズを指定します。
「100.00mb」を指定します。
Enter partition size[0b, 0c, 0.00mb, 0.00gb]: 100.00mb
パーティションを確認します。
printコマンドを入力し、現在のパーティションを確認します。
partition> print Current partition table (unnamed): Total disk cylinders available: 8892 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 root wm 0 - 4189 2.01GB (4190/0/0) 4223520 1 swap wu 4190 - 5231 512.86MB (1042/0/0) 1050336 2 backup wu 0 - 17659 8.49GB (17660/0/0) 17801280 3 usr wm 5232 - 5809 300.23MB (678/0/0) 645024 4 usr wu 5810 - 6056 100.13MB (226/0/0) 215008 5 unassigned wm 0 0 (0/0/0) 0 6 unassigned wm 0 0 (0/0/0) 0 7 unassigned wm 0 0 (0/0/0) 0
データベーススペース用パーティションを作成します。
パーティションを指定します。
以下の例では、パーティション5を指定します。
partition> 5 Part Tag Flag Cylinders Size Blocks 5 unassigned wm 0 0 (0/0/0) 0
パーティションIDタグを指定します。
「usr」を指定します。
Enter partition id tag[unassigned]: usr
パーティションパーミッションフラグを指定します。
「wu」を指定します。
Enter partition permission flags[wm]: wu
開始シリンダを指定します。
以下の例では、4.のprintコマンドで確認した未使用シリンダの先頭「6057」を指定します。
Enter new starting cyl[0]: 6057
パーティションサイズを指定します。
「134.00mb」を指定します。
Enter partition size[0b, 0c, 0.00mb, 0.00gb]: 134.00mb
パーティションサイズを指定します。
printコマンドを入力し、現在のパーティションを確認します。
partition> print Current partition table (unnamed): Total disk cylinders available: 8892 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 root wm 0 - 4189 2.01GB (4190/0/0) 4223520 1 swap wu 4190 - 5231 512.86MB (1042/0/0) 1050336 2 backup wu 0 - 17659 8.49GB (17660/0/0) 17801280 3 usr wm 5232 - 5809 300.23MB (678/0/0) 645024 4 usr wu 5810 - 6056 100.13MB (226/0/0) 215008 5 usr wu 6057 - 6353 134.13MB (298/0/0) 291506 6 unassigned wm 0 0 (0/0/0) 0 7 unassigned wm 0 0 (0/0/0) 0
labelコマンドを実行します。
ジオメトリにパーティション情報を記録するために、labelコマンドを実行します。
「Ready to label disk,continue?」に対して、「y」を指定します。
partition> label
Ready to label disk, continue? y
パーティションの作成を終了します。
partitionを終了します。
quitコマンドを実行し、FORMAT MENUを表示します。
partition> quit
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
show - translate a disk address
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
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quitformatを終了します。
もう一度quitコマンドを実行し、シェルのプロンプトを表示します。
format> quit