* Lost+found
@ 2008-04-08 5:20 Jeffrey Sandel
2008-04-09 2:12 ` Lost+found Barry Naujok
0 siblings, 1 reply; 7+ messages in thread
From: Jeffrey Sandel @ 2008-04-08 5:20 UTC (permalink / raw)
To: xfs
Recently I ran xfs_repair due to a firmware upgrade on an unmounted
disk. The repair recovered the data but moved it to the lost+found
directory.
How do I recover file names and ownership?
Thanks!
Jeffrey Sandel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Lost+found
2008-04-08 5:20 Lost+found Jeffrey Sandel
@ 2008-04-09 2:12 ` Barry Naujok
2008-04-09 10:28 ` Lost+found Justin Piszcz
0 siblings, 1 reply; 7+ messages in thread
From: Barry Naujok @ 2008-04-09 2:12 UTC (permalink / raw)
To: Jeffrey Sandel, xfs
On Tue, 08 Apr 2008 15:20:33 +1000, Jeffrey Sandel
<webmaster@javainbaja.com> wrote:
> Recently I ran xfs_repair due to a firmware upgrade on an unmounted
> disk. The repair recovered the data but moved it to the lost+found
> directory.
>
> How do I recover file names and ownership?
The only real options you have AFAIK is the file command to try and
identify
what type of file it is and just manually inspecting the files.
Then, you might be able to derive its filename and where it came from.
Regards,
Barry.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Lost+found
2008-04-09 2:12 ` Lost+found Barry Naujok
@ 2008-04-09 10:28 ` Justin Piszcz
2008-04-09 13:11 ` Lost+found Eric Sandeen
0 siblings, 1 reply; 7+ messages in thread
From: Justin Piszcz @ 2008-04-09 10:28 UTC (permalink / raw)
To: Barry Naujok; +Cc: Jeffrey Sandel, xfs
On Wed, 9 Apr 2008, Barry Naujok wrote:
> On Tue, 08 Apr 2008 15:20:33 +1000, Jeffrey Sandel <webmaster@javainbaja.com>
> wrote:
>
>> Recently I ran xfs_repair due to a firmware upgrade on an unmounted
>> disk. The repair recovered the data but moved it to the lost+found
>> directory.
>>
>> How do I recover file names and ownership?
>
> The only real options you have AFAIK is the file command to try and identify
> what type of file it is and just manually inspecting the files.
>
> Then, you might be able to derive its filename and where it came from.
>
> Regards,
> Barry.
>
Is there any chance this process could ever be improved so that the files
are restored back to their original locations or there is something that
keeps track of where they were located?
Justin.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Lost+found
2008-04-09 10:28 ` Lost+found Justin Piszcz
@ 2008-04-09 13:11 ` Eric Sandeen
2008-04-09 13:29 ` Lost+found Christoph Hellwig
2008-04-10 8:51 ` Lost+found Emmanuel Florac
0 siblings, 2 replies; 7+ messages in thread
From: Eric Sandeen @ 2008-04-09 13:11 UTC (permalink / raw)
To: Justin Piszcz; +Cc: Barry Naujok, Jeffrey Sandel, xfs
Justin Piszcz wrote:
>
> On Wed, 9 Apr 2008, Barry Naujok wrote:
>
>> On Tue, 08 Apr 2008 15:20:33 +1000, Jeffrey Sandel <webmaster@javainbaja.com>
>> wrote:
>>
>>> Recently I ran xfs_repair due to a firmware upgrade on an unmounted
>>> disk. The repair recovered the data but moved it to the lost+found
>>> directory.
>>>
>>> How do I recover file names and ownership?
>> The only real options you have AFAIK is the file command to try and identify
>> what type of file it is and just manually inspecting the files.
>>
>> Then, you might be able to derive its filename and where it came from.
>>
>> Regards,
>> Barry.
>>
>
> Is there any chance this process could ever be improved so that the files
> are restored back to their original locations or there is something that
> keeps track of where they were located?
The whole reason they're in lost+found is because they are "orphaned" -
allocated & in use but not referenced by any directory... so the best
xfs_repair can do is rename to lost+found with the inode number.
Crosses my mind that one could probably write a generic tool which could
work with a package manager db to check file md5sums in /lost+found, if
the files happen to be system files installed via a package.... but if
they're files from your homedir or whatnot, it's tougher.
-Eric
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Lost+found
2008-04-09 13:11 ` Lost+found Eric Sandeen
@ 2008-04-09 13:29 ` Christoph Hellwig
2008-04-11 2:07 ` Lost+found Niv Sardi
2008-04-10 8:51 ` Lost+found Emmanuel Florac
1 sibling, 1 reply; 7+ messages in thread
From: Christoph Hellwig @ 2008-04-09 13:29 UTC (permalink / raw)
To: Eric Sandeen; +Cc: Justin Piszcz, Barry Naujok, Jeffrey Sandel, xfs
On Wed, Apr 09, 2008 at 08:11:13AM -0500, Eric Sandeen wrote:
> The whole reason they're in lost+found is because they are "orphaned" -
> allocated & in use but not referenced by any directory... so the best
> xfs_repair can do is rename to lost+found with the inode number.
At least until we get parent pointers. Niv, any updates?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Lost+found
2008-04-09 13:11 ` Lost+found Eric Sandeen
2008-04-09 13:29 ` Lost+found Christoph Hellwig
@ 2008-04-10 8:51 ` Emmanuel Florac
1 sibling, 0 replies; 7+ messages in thread
From: Emmanuel Florac @ 2008-04-10 8:51 UTC (permalink / raw)
To: Eric Sandeen; +Cc: Justin Piszcz, Barry Naujok, Jeffrey Sandel, xfs
Le Wed, 09 Apr 2008 08:11:13 -0500
Eric Sandeen <sandeen@sandeen.net> écrivait:
> Crosses my mind that one could probably write a generic tool which
> could work with a package manager db to check file md5sums
> in /lost+found, if the files happen to be system files installed via
> a package....
Yup, I've done something similar when I used a PC with a bugged via
chipset which regularly broke apart filesystems under heavy load... I
used a tool named afick to index the whole disks (it stores md5 of
everything in a small db) and with some tinkering I was able to restore
everything from lost+found each time some filesystem went belly up
(once a month...)
--
----------------------------------------
Emmanuel Florac | Intellique
----------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Lost+found
2008-04-09 13:29 ` Lost+found Christoph Hellwig
@ 2008-04-11 2:07 ` Niv Sardi
0 siblings, 0 replies; 7+ messages in thread
From: Niv Sardi @ 2008-04-11 2:07 UTC (permalink / raw)
To: Christoph Hellwig
Cc: Eric Sandeen, Justin Piszcz, Barry Naujok, Jeffrey Sandel, xfs
Christoph Hellwig <hch@infradead.org> writes:
> On Wed, Apr 09, 2008 at 08:11:13AM -0500, Eric Sandeen wrote:
>> The whole reason they're in lost+found is because they are "orphaned" -
>> allocated & in use but not referenced by any directory... so the best
>> xfs_repair can do is rename to lost+found with the inode number.
>
> At least until we get parent pointers. Niv, any updates?
I was lost in DMAPI land for a while, I'll resume work on PP next week,
patches up for review soonish after I fix some issues.
Cheers,
--
Niv Sardi
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-04-11 2:07 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-08 5:20 Lost+found Jeffrey Sandel
2008-04-09 2:12 ` Lost+found Barry Naujok
2008-04-09 10:28 ` Lost+found Justin Piszcz
2008-04-09 13:11 ` Lost+found Eric Sandeen
2008-04-09 13:29 ` Lost+found Christoph Hellwig
2008-04-11 2:07 ` Lost+found Niv Sardi
2008-04-10 8:51 ` Lost+found Emmanuel Florac
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox