Unix administration - lost+found recovery

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > April 2005 > lost+found recovery





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author lost+found recovery
whoha

2005-04-14, 6:03 pm

Hello

After a crash that required fsck to be run on the root device
[/dev/md/rdsk/d10] I have a directory in the lost+found that appears to
be the '/' directory.

Can I fix this short of getting the backup tapes out?

solaris 8 fully patched

Bill Marcum

2005-04-14, 6:03 pm

On Thu, 14 Apr 2005 11:48:14 -0400, whoha
<noone@nowhere.com> wrote:
> Hello
>
> After a crash that required fsck to be run on the root device
> [/dev/md/rdsk/d10] I have a directory in the lost+found that appears to
> be the '/' directory.
>
> Can I fix this short of getting the backup tapes out?
>

That depends. If the files and directories within that directory
still have their original names, you can mv them back where they belong.
If they don't, restoring or reinstalling might be the only way.
Do you know what caused the crash? Was it bad software, or a power
failure, or is the hard drive dying?


--
"I deleted a file from my PC last week and I have just realized that I
need it. If I turn my system clock back two weeks will I have my file
back again?"
Dave Hinz

2005-04-14, 6:03 pm

On Thu, 14 Apr 2005 13:37:24 -0400, Bill Marcum <bmarcum@iglou.com.urgent> wrote:
> On Thu, 14 Apr 2005 11:48:14 -0400, whoha
> <noone@nowhere.com> wrote:
> That depends. If the files and directories within that directory
> still have their original names, you can mv them back where they belong.
> If they don't, restoring or reinstalling might be the only way.
> Do you know what caused the crash? Was it bad software, or a power
> failure, or is the hard drive dying?


Been a long time since I looked, but I never remember seeing named
files in a lost and found directory, just numbered files. ?

Barry Margolin

2005-04-15, 2:49 am

In article <3c7qjeF6jhd8vU1@individual.net>,
Dave Hinz <DaveHinz@spamcop.net> wrote:

> On Thu, 14 Apr 2005 13:37:24 -0400, Bill Marcum <bmarcum@iglou.com.urgent>
> wrote:
>
> Been a long time since I looked, but I never remember seeing named
> files in a lost and found directory, just numbered files. ?
>


If a directory ends up in there, it will have a numeric name, but its
contents should still be the original names, just as the contents of an
ordinary file that ends up in there should be the old contents.

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
whoha

2005-04-15, 7:49 am

Dave Hinz wrote:
> On Thu, 14 Apr 2005 13:37:24 -0400, Bill Marcum <bmarcum@iglou.com.urgent> wrote:
>
>
>
> Been a long time since I looked, but I never remember seeing named
> files in a lost and found directory, just numbered files. ?
>

Yes the file are like #340678 I cd to this dir do a pwd and it's '/'.
I then do an ls and there you are in root.

Installing a patch caused the problem. On reboot I started getting
jnic1 errors that hung the reboot. Had to do a stop-a to get it back
then do a reset-all reboot from the ok prompt. Needed fsck ... rest is
not good.

Dave Hinz

2005-04-15, 5:57 pm

On Thu, 14 Apr 2005 22:09:31 -0400, Barry Margolin <barmar@alum.mit.edu> wrote:
> In article <3c7qjeF6jhd8vU1@individual.net>,
> Dave Hinz <DaveHinz@spamcop.net> wrote:
>
[vbcol=seagreen]
> If a directory ends up in there, it will have a numeric name, but its
> contents should still be the original names, just as the contents of an
> ordinary file that ends up in there should be the old contents.


Cool. I did not know that. I guess I've just been lucky enough not to
_need_ to know that...


Dave "RAID is a wonderful thing..." Hinz
Bill Marcum

2005-04-15, 5:57 pm

On Fri, 15 Apr 2005 08:46:23 -0400, whoha
<noone@nowhere.com> wrote:
> Yes the file are like #340678 I cd to this dir do a pwd and it's '/'.
> I then do an ls and there you are in root.
>

You still have a root directory, otherwise where would /lost+found be?
Do /bin, /usr, /etc and other directories still exist? I'm just
wondering, could that file in lost+found be a symbolic link?


--
"I deleted a file from my PC last week and I have just realized that I
need it. If I turn my system clock back two weeks will I have my file
back again?"
whoha

2005-04-19, 8:01 am

Bill Marcum wrote:
> On Fri, 15 Apr 2005 08:46:23 -0400, whoha
> <noone@nowhere.com> wrote:
>
>
> You still have a root directory, otherwise where would /lost+found be?
> Do /bin, /usr, /etc and other directories still exist? I'm just
> wondering, could that file in lost+found be a symbolic link?
>
>

When you do a ls -l it does not list it as an link. And yes the system
is still running more or less OK.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com