新しいHDD接続時にformatコマンドで認識させます。
bash-3.00# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
/pci@1f,0/pci@1,1/scsi@2/sd@0,0
1. c0t1d0 <FUJITSU-MAN3735MC-0110 cyl 24345 alt 2 hd 8 sec 737>
/pci@1f,0/pci@1,1/scsi@2/sd@1,0
増設した1番のディスクを指定します。
Specify disk (enter its number): 1
selecting c0t1d0
[disk formatted]
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
!<cmd> - execute <cmd>, then return
quit
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
パーティション情報を表示します。
partition> print
Current partition table (unnamed):
Total disk cylinders available: 24345 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wm 0 0 (0/0/0) 0
2 backup wu 0 - 24344 68.44GB (24345/0/0) 143538120
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
6番のスライスにパーティションを作成します。
partition> 6
Part Tag Flag Cylinders Size Blocks
6 unassigned wm 0 0 (0/0/0) 0
Enter partition id tag[unassigned]: home
Enter partition permission flags[wm]:※read,write
Enter new starting cyl[0]:
Enter partition size[0b, 0c, 0e, 0.00mb, 0.00gb]: 24344c ※シリンダで指定
partition> print
Current partition table (unnamed):
Total disk cylinders available: 24345 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wm 0 0 (0/0/0) 0
2 backup wu 0 - 24344 68.44GB (24345/0/0) 143538120
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 home wm 0 - 24343 68.44GB (24344/0/0) 143532224
7 unassigned wm 0 0 (0/0/0) 0
labelコマンドで変更情報を書き込みます。
partition> label
Ready to label disk, continue? y
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
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
!<cmd> - execute <cmd>, then return
quit
format> quit
続いてnewfsコマンドでフォーマットします。
bash-3.00# newfs /dev/rdsk/c0t1d0s6
newfs: /dev/rdsk/c0t1d0s6 は最後に /mnt としてマウントされています
newfs: 新しいファイルシステム /dev/rdsk/c0t1d0s6 を作成しますか: (y/n)? y
警告: 最終シリンダで 3904 セクタが割り当てられません。
/dev/rdsk/c0t1d0s6: 全セクター数: 143532224 (シリンダ数: 23362、トラック数: 48、セクター数: 128)
70084.1MB、1461 シリンダグループ (16 c/g, 48.00MB/g, 5824 i/g)
スーパーブロックのバックアップの位置 (fsck -F ufs -o b=# のため) :
32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,
シリンダグループの初期化:
.............................
スーパーブロックのバックアップの位置 (最後の 10 シリンダグループのため):
142644640, 142743072, 142841504, 142939936, 143038368, 143136800, 143235232,
143333664, 143432096, 143530528
mountコマンドで増設したHDDを接続します。
bash-3.00# mount /dev/dsk/c0t1d0s6 /mnt
bash-3.00# df -h
ファイルシステム サイズ 使用済み 使用可能 容量 マウント先
/dev/dsk/c0t0d0s0 13G 4.6G 8.0G 37% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 1.1G 1.4M 1.1G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
fd 0K 0K 0K 0% /dev/fd
swap 1.1G 32K 1.1G 1% /tmp
swap 1.1G 40K 1.1G 1% /var/run
/dev/dsk/c0t0d0s7 2.9G 2.9M 2.8G 1% /export/home
/dev/dsk/c0t1d0s6 67G 64M 67G 1% /mnt
最終更新:2010年01月17日 02:33