From owner-freebsd-current Mon Apr 26 10:51:14 1999 Delivered-To: freebsd-current@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (Postfix) with ESMTP id 2011914C38 for ; Mon, 26 Apr 1999 10:51:11 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.8/8.8.8) with ESMTP id KAA25933; Mon, 26 Apr 1999 10:51:07 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Mon, 26 Apr 1999 10:51:06 -0700 (PDT) From: Doug White To: ayk1@ukc.ac.uk Cc: freebsd-current@FreeBSD.ORG Subject: Re: file disappeared? In-Reply-To: <199904261653.RAA89313@pcayk.ukc.ac.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 26 Apr 1999, Dean Lombardo wrote: > 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?!!! Are you running soft updates? It takes ~30s for changes to take effect if you are. I noticed this myself last week. > 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) I assume this was in single user mode, otherwise you made a gigantic mess. :-) Doug White Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve http://gladstone.uoregon.edu/~dwhite | www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message