Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Oct 1997 22:31:26 -0500 (EST)
From:      Alfred Perlstein <perlsta@cs.sunyit.edu>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Recovering Lost Inode?
Message-ID:  <Pine.BSF.3.96.971027215943.1224C-100000@server.local.sunyit.edu>
In-Reply-To: <3455334C.D2AD37F6@reef.com>

next in thread | previous in thread | raw e-mail | index | archive | help
i've always wondered why when a file was deleted there was an intelegent
way of moving it to a volitile directory where it could be overwritten at
any time, but if moved out of that dir it would be marked non-volitile
again....

(maybe i've used win95 once too many...)

-Alfred

On Mon, 27 Oct 1997, James Buszard-Welcher wrote:

> Thanks for the response.  I'm sure it's too late now, with inode
> recycling, etc.  However, if I had been unable to umount the
> filesystem... (we now enter the theoretical zone)
> *could* I have been able to use somekindof Norton's Utilities-esque
> package for UNIX which could check inodes and look for ones that
> were 'file starters', and maybe check the that if all of the inodes
> pointed to by that starter inode (it was big file so I excect
> a level or two of inode redirection) were still intact it could
> pull it back?  Kinda like an 'un-delete' fsck?  Ever hear of
> such a thing?
> 
> Greg Lehey wrote:
> > 
> > On Mon, Oct 27, 1997 at 02:10:04PM -0600, James Buszard-Welcher wrote:
> > > I had a daemon writing to a file...  I then rm-ed the file, but the
> > > daemon still had the filehandle and was writing to it.
> > >
> > > Well... I killed the daemon, which had been writing to this invisible
> > > inode.
> > >
> > > Is there ANY way (fsdb, fsck, some great perl hack) to find out what
> > > this inode was and link it back into some directory so I can get at
> > > the file contents?
> > 
> > Not after you stopped the daemon.  Then the link count goes to 0 and
> > the file is removed.
> > 
> > Greg
> 
> -- 
> James Buszard-Welcher | VOX 847.729.8600 | "It's not the stuff...
> Technical Director    | FAX 847.729.1560 |  it's the power to
> Silicon Reef, Inc.    | PGR 800.418.0016 |  *MAKE* the stuff."
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971027215943.1224C-100000>