From nobody@FreeBSD.ORG Mon Aug  9 12:14:46 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 7006E14E3B; Mon,  9 Aug 1999 12:14:46 -0700 (PDT)
Message-Id: <19990809191446.7006E14E3B@hub.freebsd.org>
Date: Mon,  9 Aug 1999 12:14:46 -0700 (PDT)
From: henryt4@yahoo.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: /usr  and /var files all gone
X-Send-Pr-Version: www-1.0

>Number:         13045
>Category:       misc
>Synopsis:       /usr  and /var files all gone
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    sheldonh
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug  9 12:20:01 PDT 1999
>Closed-Date:    Mon Aug 30 05:49:49 PDT 1999
>Last-Modified:  Mon Aug 30 05:52:12 PDT 1999
>Originator:     Henry
>Release:        2.2.2
>Organization:
>Environment:
133 MHZ pentinum pc
48MB ram, 1.6G HD.
>Description:
I copy too many files to /usr and /var directories, when 
I use "df" , it shows negative % of usage or availability 
on /usr and /var.  It just overwrite the limit of /usr and
/var. I reboot it couple times, it still ok, but suddenly
one day, all the files are gone, I can only boot to / and 
use sh. it shows no files there. I can't even use "ls". 
it ask me to fsck. 
When I install another fbsd on another HD, I mount the
old fbsd partition, and I can see old files there, but 
it's /usr and /var directories' files are gone.
Is there any ways to recover those files. thanks
>How-To-Repeat:
keep copy files to /usr and /var, overwrite the size
limit of /usr and /var.
use "df" and see if it's negative % usage or availablity.
it's like if /usr directory's size is 200M, but u keep
copy files, like 250M to /usr, it will just overwrite.
it won't crash, cause it has reserved space for it, when
"df", it only shows negative %.
reboot PC couple times, or running other OS, until one
day, suddenly, u can only boot to / and find no files
there.

>Fix:


>Release-Note:
>Audit-Trail:

From: Dag-Erling Smorgrav <des@flood.ping.uio.no>
To: henryt4@yahoo.com
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: misc/13045: /usr  and /var files all gone
Date: 11 Aug 1999 10:03:01 +0200

 henryt4@yahoo.com writes:
 > When I install another fbsd on another HD, I mount the old fbsd
 > partition, and I can see old files there, but it's /usr and /var
 > directories' files are gone. Is there any ways to recover those
 > files. thanks
 
 It sounds to me like /usr and /var are simply not mounted.
 
 DES
 -- 
 Dag-Erling Smorgrav - des@flood.ping.uio.no
 
State-Changed-From-To: open->feedback 
State-Changed-By: sheldonh 
State-Changed-When: Mon Aug 16 10:17:21 PDT 1999 
State-Changed-Why:  
I see you've already had one response to your problem report. Could you 
let me know whether the problem was simply that the filesystems weren't 
mounted? If you don't know what I'm talking about, let me know and I'll 
give you a hand. 


Responsible-Changed-From-To: freebsd-bugs->sheldonh 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Mon Aug 16 10:17:21 PDT 1999 
Responsible-Changed-Why:  
I'll wait for feedback. 
State-Changed-From-To: feedback->closed 
State-Changed-By: sheldonh 
State-Changed-When: Mon Aug 30 05:49:49 PDT 1999 
State-Changed-Why:  
After getting close to a conclusion with the originator, it got to 
the point where I can't get feedback. The problem _was_ that the 
partitions weren't mounted. We got him up to the point where 
he could inspect the partitions, but there seemed to be major  
fs corruption that fsck couldn't sort out. I suggested 
newfs and installation, since which point I haven't heard from 
him (18 August). 
>Unformatted:
