Subject: Re: how to clear a file?
To: Brad Salai <bsalai@tmonline.com>
From: Todd Vierling <tv@NetBSD.ORG>
List: netbsd-help
Date: 03/26/1998 08:59:16
On Thu, 26 Mar 1998, Brad Salai wrote:

: UNREF FILE I=19091  OWNER=root MODE=100644
: SIZE=0 MTIME=Mar 25 02:00 1998
: CLEAR? no

: How do I clear this? It has been this way for about a year.

Reboot single user (you haven't rebooted in a year, right?  :)

# fsck /dev/thatdisk

UNREF FILE I=19091  OWNER=root MODE=100644
SIZE=0 MTIME=Mar 25 02:00 1998
CLEAR? y

(enter "y" there).  No, there is no way to do this multi-user as the
filesystem can get confused if you modify it underneath running programs.
When single user, the filesystem is mounted read-only, so when the
read-write mount update is done, the filesystem is not confused.

-- 
-- Todd Vierling (Personal tv@pobox.com; Bus. todd_vierling@xn.xerox.com)