From owner-freebsd-current Mon Apr 26 9:51:36 1999 Delivered-To: freebsd-current@freebsd.org Received: from pcayk.ukc.ac.uk (pcayk.ukc.ac.uk [129.12.41.131]) by hub.freebsd.org (Postfix) with ESMTP id 26DC6150C2; Mon, 26 Apr 1999 09:51:19 -0700 (PDT) (envelope-from ayk1 @ukc.ac.uk) Received: from ukc.ac.uk (localhost [127.0.0.1]) by pcayk.ukc.ac.uk (8.9.2/8.9.2) with ESMTP id RAA89313; Mon, 26 Apr 1999 17:53:47 +0100 (BST) (envelope-from "ayk1 "@ukc.ac.uk) Message-Id: <199904261653.RAA89313@pcayk.ukc.ac.uk> Date: Mon, 26 Apr 1999 17:53:47 +0100 From: Dean Lombardo <"ayk1 "@ukc.ac.uk> Organization: University of Kent at Canterbury, UK X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 3.1-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-current@freebsd.org, freebsd-hackers@freebsd.org Subject: file disappeared? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The subject says it all: I removed a file, but according to df, it's still there! pcayk:~/tmp$ df -k . Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/wd0s1f 7621844 6975669 36428 99% /usr pcayk:~/tmp$ ls -l -rw-r--r-- 1 ayk1 users 716247040 Apr 22 1999 bigcdimage.iso pcayk:~/tmp$ rm bigcdimage.iso pcayk:~/tmp$ df -k . Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/wd0s1f 7621844 6975669 36428 99% /usr How on earth did that happen?!!! So I decided to run fsck, with -p at first: pcayk:/usr/home/ayk1# fsck -p -f /dev/wd0s1f /dev/rwd0s1f: UNREF FILE I=1111053 OWNER=ayk1 MODE=100644 /dev/rwd0s1f: SIZE=716247040 MTIME=Apr 22 20:36 1999 (CLEARED) /dev/rwd0s1f: SUMMARY INFORMATION BAD (SALVAGED) /dev/rwd0s1f: BLK(S) MISSING IN BIT MAPS (SALVAGED) /dev/rwd0s1f: FREE BLK COUNT(S) WRONG IN SUPERBLK (SALVAGED) /dev/rwd0s1f: 176217 files, 6275813 used, 1346031 free (39575 frags, 163307 blocks, 0.5% fragmentation) OK - the file's there - time to salvage it. pcayk:/usr/home/ayk1# fsck -f /dev/wd0s1f ** /dev/rwd0s1f ** Last Mounted on /usr ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups SUMMARY INFORMATION BAD SALVAGE? [yn] y BLK(S) MISSING IN BIT MAPS SALVAGE? [yn] y FREE BLK COUNT(S) WRONG IN SUPERBLK SALVAGE? [yn] y 176217 files, 6275839 used, 1346005 free (39581 frags, 163303 blocks, 0.5% fragmentation) ***** FILE SYSTEM MARKED CLEAN ***** ***** FILE SYSTEM WAS MODIFIED ***** pcayk:/usr/home/ayk1# df -k Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/wd0s1a 63503 32799 25624 56% / /dev/wd0s1f 7621844 6975664 36433 99% /usr /dev/wd0s1e 63503 11211 47212 19% /var /dev/wd2s1e 8002964 7346107 16620 100% /usr/local/mp3-archive procfs 4 4 0 100% /proc Arrgghhh - now I've done it! Any suggestions on how to deal with this? Thanks, Alex pcayk:~/tmp$ uname -a FreeBSD pcayk.ukc.ac.uk 3.1-STABLE FreeBSD 3.1-STABLE #0: Sun Apr 4 15:58:45 BST 1999 ayk1@pcayk.ukc.ac.uk:/usr/src/sys/compile/SHAKA i386 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message