시스템의 전원을 끈후 새 디스크를 연결한다.
시스템의 전원을 킨후 화면이 올라올때 "stop" key와 "a" key를 동시에 늘러 ok 상태로 시스템을 내린 후 아래의 명령을 사용하여 리부팅 한다.
ok probe -scsi-all : 명령후 디스크가 제대로 인식돼는지 확인
: 제대로 인식 됐으면.
ok boot -r : 명령으로 시스템 재설정 부팅
시스템이 부팅된후 root로 로그인 한후 fotmat 명령 실행 후 새로연결한 디스크 번호 선택 여기서는 c0t1d0 디스크를 붙이는 것으로 하여 설명하겠습니다.
#format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0
/pci@1f,0/pci@1,1/ide@3/dad@0,0
1. c0t1d0
/pci@1f,0/pci@1,1/ide@3/dad@0,0
** Specify disk (enter its number): 1 -------> 1번 선택
selecting c0t1d0
[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
! - execute , then return
quit
** format> partition ------> "partition" 친후 enter
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> print -------> "print" 친후 enter
Current partition table (original):
Total disk cylinders available: 59301 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 0 0 (0/0/0) 0
1 swap wu 0 0 (0/0/0) 0
2 backup wm 0 - 59300 28.50GB (59301/0/0) 59775408
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
print결과에서 2번 part가 전체 디스크의 용량을 보여 주며, 위의 결과에서 보면 전체 디스크 용량은 28.50GB이고 59300개의 cylinder를 가지고 있음을 알수 있다
사용할 slice(part)와 각 slice에 할당할 디스크 사이즈를 결정하고 아래와 같이 선택을 한다.
전체 디스크 용량을 2개의 slice로 나누고 5과 6번 slice를 사용하고자 할때;
** partition> 5 -------------> 5번 선택
Part Tag Flag Cylinders Size Blocks
5 unassigned wm 0 0 (0/0/0) 0
Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]: 0
Enter partition size[0b, 0c, 0.00mb]: 3000mb
** partition> print ----------> "print" 침
Current partition table (unnamed):
Total disk cylinders available: 2036 + 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 wm 0 - 59300 28.50GB (59301/0/0) 59775408
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
** 5 unassigned wm 0 - 6095 2.93GB (6096/0/0) 6144768
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
partition> 6
Part Tag Flag Cylinders Size Blocks
6 unassigned wm 0 0 (0/0/0) 0
Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]: 1018
Enter partition size[0b, 0c, 0.00mb]: 1018c
partition> print
Current partition table (unnamed):
Total disk cylinders available: 2036 + 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 wm 0 - 59300 28.50GB (59301/0/0) 59775408
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
** 5 unassigned wm 0 - 6095 2.93GB (6096/0/0) 6144768
6 unassigned wm 6096 - 59299 24.50GB (52188/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
partition 작업이 끝나면 label을 실행 한다.
** partition> label ------> "label" 이라고 친다.
** Ready to label disk, continue? y -----> " y " 치고 엔터
이후 q 를 두번 쳐서 format 명령을 빠져 나온다.
다음으로 newfs를 실행하여 UNIX filesystem을 새 디스크의 각 slice에 만든다
# newfs /dev/rdsk/c0t1d0s5
"c#t#d#s#" 은 새 디스크의 각 slice에 해당하는 디바이스 이름을 쓴다.
newfs 작업이 끝나면 새 filesystem을 mount하여 사용한다.
/home로 mount 한다면
명령어를 이용하여 filesystem을 mount할때 :
# mount -F ufs /dev/dsk/c0t1d0s5 /home
/etc/vfstab을 사용하여 mount 할때에는 아래와 같이 vfstab에 정의한 후,
/dev/dsk/c0t1d0s5 /dev/rdsk/c0t1d0s5 /home ufs 2 yes -
아래의 명령을 사용한다.
# mountall
시스템이 rebooting된 후에 자동 mount되게 하려면 /etc/vfstab에 정의해야 한다.
위의 모든 작업이 끝나면 아래 명령어를 사용하여 새 filesystem이 mount되에
있는지 확인한다.
# df -k
시스템의 전원을 킨후 화면이 올라올때 "stop" key와 "a" key를 동시에 늘러 ok 상태로 시스템을 내린 후 아래의 명령을 사용하여 리부팅 한다.
ok probe -scsi-all : 명령후 디스크가 제대로 인식돼는지 확인
: 제대로 인식 됐으면.
ok boot -r : 명령으로 시스템 재설정 부팅
시스템이 부팅된후 root로 로그인 한후 fotmat 명령 실행 후 새로연결한 디스크 번호 선택 여기서는 c0t1d0 디스크를 붙이는 것으로 하여 설명하겠습니다.
#format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0
/pci@1f,0/pci@1,1/ide@3/dad@0,0
1. c0t1d0
/pci@1f,0/pci@1,1/ide@3/dad@0,0
** Specify disk (enter its number): 1 -------> 1번 선택
selecting c0t1d0
[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
! - execute , then return
quit
** format> partition ------> "partition" 친후 enter
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> print -------> "print" 친후 enter
Current partition table (original):
Total disk cylinders available: 59301 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 0 0 (0/0/0) 0
1 swap wu 0 0 (0/0/0) 0
2 backup wm 0 - 59300 28.50GB (59301/0/0) 59775408
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
print결과에서 2번 part가 전체 디스크의 용량을 보여 주며, 위의 결과에서 보면 전체 디스크 용량은 28.50GB이고 59300개의 cylinder를 가지고 있음을 알수 있다
사용할 slice(part)와 각 slice에 할당할 디스크 사이즈를 결정하고 아래와 같이 선택을 한다.
전체 디스크 용량을 2개의 slice로 나누고 5과 6번 slice를 사용하고자 할때;
** partition> 5 -------------> 5번 선택
Part Tag Flag Cylinders Size Blocks
5 unassigned wm 0 0 (0/0/0) 0
Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]: 0
Enter partition size[0b, 0c, 0.00mb]: 3000mb
** partition> print ----------> "print" 침
Current partition table (unnamed):
Total disk cylinders available: 2036 + 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 wm 0 - 59300 28.50GB (59301/0/0) 59775408
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
** 5 unassigned wm 0 - 6095 2.93GB (6096/0/0) 6144768
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
partition> 6
Part Tag Flag Cylinders Size Blocks
6 unassigned wm 0 0 (0/0/0) 0
Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]: 1018
Enter partition size[0b, 0c, 0.00mb]: 1018c
partition> print
Current partition table (unnamed):
Total disk cylinders available: 2036 + 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 wm 0 - 59300 28.50GB (59301/0/0) 59775408
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
** 5 unassigned wm 0 - 6095 2.93GB (6096/0/0) 6144768
6 unassigned wm 6096 - 59299 24.50GB (52188/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
partition 작업이 끝나면 label을 실행 한다.
** partition> label ------> "label" 이라고 친다.
** Ready to label disk, continue? y -----> " y " 치고 엔터
이후 q 를 두번 쳐서 format 명령을 빠져 나온다.
다음으로 newfs를 실행하여 UNIX filesystem을 새 디스크의 각 slice에 만든다
# newfs /dev/rdsk/c0t1d0s5
"c#t#d#s#" 은 새 디스크의 각 slice에 해당하는 디바이스 이름을 쓴다.
newfs 작업이 끝나면 새 filesystem을 mount하여 사용한다.
/home로 mount 한다면
명령어를 이용하여 filesystem을 mount할때 :
# mount -F ufs /dev/dsk/c0t1d0s5 /home
/etc/vfstab을 사용하여 mount 할때에는 아래와 같이 vfstab에 정의한 후,
/dev/dsk/c0t1d0s5 /dev/rdsk/c0t1d0s5 /home ufs 2 yes -
아래의 명령을 사용한다.
# mountall
시스템이 rebooting된 후에 자동 mount되게 하려면 /etc/vfstab에 정의해야 한다.
위의 모든 작업이 끝나면 아래 명령어를 사용하여 새 filesystem이 mount되에
있는지 확인한다.
# df -k