On Thu, 14 Oct 2004, Jonas Steverud wrote:

> Wayne Brehob <[EMAIL PROTECTED]> writes:
>
> > On Mon, 11 Oct 2004, Christian SIMON wrote:
> [...]
> > There is a system 'unlink' command, and I believe this can be used to
> > remove directories as well as files.
>
> There is just a slight problem to the reasoning: If unlink has been
> used (I don't have the documentation for it so I can't double check)
> but on Un*x systems in general, a file is not removed as long as any
> program uses the file or directory. The idea behind this is that a
> program can create a file in /tmp and then remove it. That way the
> temporary file will be removed from the system as soon as the program
> quits - even if it crashes. No more left-behind temporary files.
>
> If you logged in I assume your home directory is marked as used by
> your master process and will not be removed as long as that one is
> still living. As soon as you reboot or log off, it dies.
>
That's a good point.  The inode for your home directory must still
exist somewhere if a process is holding it.  Did you say you're still
logged in?  I don't know how you'd ever find it on the disk, as the
directory entry for it in /Users is apparently gone, but perhaps there
is a way to find the inode number in the process table, and get something
to re-link to it.

> I have no idea what the problem is, but if this is the problem,
> all your files will be deleted as soon as you reboot - or more
> specifically, when you log off.
>
This part may be true, but I was sort of hoping it's not ;-).  If
something simply unlinked your home directory, but didn't go through
the work of unlinking the entire tree below it (and you probably would
have heard your disk change tracks a lot of times in a hurry if it had
gone that far) it's left most of the tree intact.  Since 'fsck' will
see that there are disk blocks claimed by inodes that aren't in a
directory some where, it will create entries for them in list+found.
Well, that's what I'm hoping, anyway.

Wayne

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Wayne Brehob, [EMAIL PROTECTED] Home:   248-478-7663
23496 Derby Lane                Office: 248-427-4496
Farmington Hills, MI  48336     Mobile: 248-763-0210
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to