Subject : rm command로도 지워지지않는 file을 지우는 방법
Description :
. su root /* 먼저 Super mode로 들어간다. */
. ls -li filename /* indode number를 확인한다. */
82 -rw-r--r-- 1 kumars 0 Jun 26 09:13 filename
. df .
/* 현재 filesystem의 device file을 확인한다. */
/home (/dev/dsk/c0t3d0s7 ): 104682 블럭 236066 파일
/* Solaris 2.x 예. */
. clri /dev/dsk/c0t3d0s7 82 /* inode를 지운다. */
. Reboot if it's on root or else:
A. sync ; sync ; sync
B. kill -15 1 or shutdown now /* for single user */
C. umount filesystem
D. fsck -y /dev/xxxxx -y
E. ^D to multiuser
. fsck /* fsck를 하는동안 remove할것인지를 물으면
"y"로 답한다. */
Revision History
작성일자 : 96.06.14
작성자 : 이민호
수정일자 :
수정자