DD 명령어 수행
[HOST-SVR:/export/home/]# dd if=/dev/rdsk/c0t0d0s2 of=/dev/rdsk/c0t8d0s2 bs=4096k
xxxx Records In
xxxx Records Out
[HOST-SVR:/export/home/]# fsck -y /dev/rdsk/c0t8d0s0
** /dev/rdsk/c0t8d0s0
** Last Mounted on /mnt
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
47291 files, 988999 used, 799092 free (2572 frags, 99565 blocks, 0.1% fragmentation)
[HOST-SVR:/export/home/]# mount /dev/dsk/c0t8d0s0 /mnt
[HOST-SVR:/export/home/]#cd /mnt/etc
[HOST-SVR:/export/home/]#vi vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes -
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/c0t0d0s6 /dev/rdsk/c0t0d0s6 /usr ufs 1 no -
/dev/dsk/c0t0d0s5 /dev/rdsk/c0t0d0s5 /var ufs 1 no -
/dev/dsk/c0t0d0s7 /dev/rdsk/c0t0d0s7 /export/home ufs 2 yes -
/dev/dsk/c0t9d0s7 /dev/rdsk/c0t9d0s7 /DATA1 ufs 2 yes -
/dev/dsk/c0t10d0s7 /dev/rdsk/c0t10d0s7 /DATA2 ufs 2 yes -
swap - /tmp tmpfs - yes -
~
~
~
~
~
~
~
~
~
vi 상태에서 Shift+:(콜론)을 치신 후
:%s/t0/t1/g 이렇게 입력 하신후 엔터
:wq!
저장 후 종료
마운트 해제
[HOST-SVR:/export/home/]#umount /mnt
--확인 방법--
[HOST-SVR:/export/home/]#repeat 10 sync
[HOST-SVR:/export/home/]#halt
시스템 종료 후 Disk8 로 부팅 시도
OK boot disk8
시스템 정상 부팅 후 서비스 시도
'9. 도서관 > __다. UNIX' 카테고리의 다른 글
메모리 사용량 보는 방법 (prstat나 top말고) (0) | 2008.09.16 |
---|---|
vxdisk list 또는 vxvol startall이 느리다??? (0) | 2008.09.09 |
.cshrc (0) | 2008.08.21 |
grep 과 tail 사용법 (0) | 2008.08.14 |
Unix/Linux 해킹 피해 시스템 분석 절차 (0) | 2008.08.05 |
댓글