root 로 /etc/format
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
포맷 명령어들이 나오게 됩니다..
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 (original):
Total disk cylinders available: 26123 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wu 0 0 (0/0/0) 0
2 backup wu 0 - 26122 17.09GB (26123/0/0) 35840756
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 - 13756 9.00GB (13757/0/0) 18874604
7 home wm 13757 - 26121 8.09GB (12365/0/0) 16964780
파티션 번호를 선택하시고
partition> 2
Part Tag Flag Cylinders Size Blocks
2 home wm
Enter partition id tag[home]: home
원하시는 유형선택
Enter partition permission flags[wm]:
적절한 퍼미션 선택
Enter new starting cyl[0]:
시작하는 사이클 선택
Enter partition size[18874604b, 13757c, 13756e, 9216.12mb, 9.00gb]: 13757c
파티션 영역 지정
partition> quit
format> quit
이제 포맷을 해야죠
newfs /dev/dsk/c0t10d0s2 2번째파티션을 포맷합니다
그다음 파일시스템 검사를
fsck /dev/dsk/c0t10d0s2
그다음 적절한 디렉토리생성후
마운트 시키면 됩니다..
mount /dev/dsk/c0t10d0s2 /export/home1
df -h 를 눌러 확인 후 사용하시면 됩니다..
vfstab설정 (자동마운트 설정파일)
설정전
# vi /etc/vfstab
"/etc/vfstab" 9 행, 319 문자
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c0t0d0s1 - - swap - no -
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no -
/dev/dsk/c0t0d0s7 /dev/rdsk/c0t0d0s7 /export/home ufs 2 yes -
swap - /tmp tmpfs - yes -
설정후
# vi /etc/vfstab
"/etc/vfstab" 9 행, 319 문자
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c0t0d0s1 - - swap - no -
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no -
/dev/dsk/c0t0d0s7 /dev/rdsk/c0t0d0s7 /export/home ufs 2 yes -
/dev/dsk/c0t10d0s6 /dev/rdsk/c0t10d0s2 /export/home1 ufs 3 yes -
swap - /tmp tmpfs - yes -
[출처] [솔라리스] 하드추가 파티션 설정|작성자 명랑폐인
댓글 달기