# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0
1. c0t2d0
Specify disk (enter its number): 1selecting c0t2d0
[disk formatted, no defect list found]
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
! - execute , then return
quit
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
! - execute , then return
quit
partition> 7Part Tag Flag Cylinders Size Blocks
7 home wm 0 - 19155 37.27GB (19156/0/0) 78156480
Enter partition id tag[home]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]:
Enter partition size[78156480b, 19156c, 19155e, 38162.34mb, 37.27gb]:
format> t
AVAILABLE DRIVE TYPES:
0. WDC WD400BB-22DEA0
1. other
Specify disk type (enter its number)[0]:
selecting c0t2d0
[disk formatted, no defect list found]
format> saSaving new disk and partition definitions
Enter file name["./format.dat"]:
format> q
# newfs /dev/dsk/c0t2d0s7newfs: /dev/rdsk/c0t2d0s7 上次被安装为 /export/home0
newfs: 建构新的文件系统 /dev/rdsk/c0t2d0s7: (y/n)? y
/dev/rdsk/c0t2d0s7: 在 19156 磁道上,16 扇区的 255 柱面的 78156480 扇区
38162.3MB 在 737 柱面群组 (26 c/g, 51.80MB/g, 6400 i/g)
超块 (fsck -F ufs -o b=#) 备份在:
32, 106368, 212704, 319040, 425376, 531712, 638048, 744384, 850720, 957056,
初始化柱面组:
..............
最后 10 个柱面组的超级块备份位置:
77121984, 77228320, 77334656, 77440992, 77547328, 77653664, 77760000,
77866336, 77972672, 78074912,
# mkdir /export/home0# mount /dev/dsk/c0t2d0s7 /export/home0
# bash
# export LANG=en# export TERM=vt100# vi /etc/vfstab