9. 도서관/__다. UNIX

dd disk dump 에 관하여..

행복 금융 2008. 9. 8.





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

시스템 정상 부팅 후 서비스 시도



댓글

💲 추천 글