2009-03-01
Rescueing files from lost+found
Oh well, I tried to search for it but failed miserably, so I’m blogging about it hoping the original author might read my post on planet.debian.org (where I read the original post):
A friend of mine might need exactly the sort of scripts someone posted here:
- Creating a list of file checksum+pathname/filename
- Reading files from lost+found and moving them to their original filename by identifying from the list in (1)
However, I can’t recall who posted about this, and don’t want to do the same work again. Please, Dear Lazyweb, help me
See also Unifying config file syntaxes with nesting
See also User configuration
See also Link collection 2009/03
Permalink

Philipp Kern said,
March 1, 2009 at 19:12 UTC (+0000)
Notice the little search box on the right on planet.d.o. Ingo Juergensmann, FWIW.
None said,
March 1, 2009 at 19:17 UTC (+0000)
http://blog.windfluechter.net/index.php?/archives/307-Automatically-restore-files-from-lost+found-improved.html
Mind you, planet debian has a search function.
Anonymous said,
March 1, 2009 at 19:18 UTC (+0000)
http://planet.debian.org/cgi-bin/search.cgi?terms=lost%2Bfound
You’re welcome.
anonymous said,
March 1, 2009 at 19:31 UTC (+0000)
http://blog.windfluechter.net/index.php?/archives/307-Automatically-restore-files-from-lost+found-improved.html
Gimli said,
March 1, 2009 at 19:38 UTC (+0000)
Ingo Jürgensmann
Automatically restore files from lost+found – improved
http://blog.windfluechter.net/index.php?/archives/307-Automatically-restore-files-from-lost+found-improved.html
alex said,
March 1, 2009 at 19:40 UTC (+0000)
http://blog.windfluechter.net/index.php?/archives/307-Automatically-restore-files-from-lost+found-improved.html
Maybe?
nion said,
March 1, 2009 at 19:43 UTC (+0000)
http://planet.debian.org/cgi-bin/search.cgi?terms=lost%2Bfound
Gregor Zattler said,
March 1, 2009 at 19:52 UTC (+0000)
Searching for “lost+found” on
http://planet-search.steve.org.uk/cgi-bin/planet-search
shows several hits this is the most promising:
http://blog.windfluechter.net/index.php?/archives/307-Automatically-restore-files-from-lost+found-improved.html
tshirtman said,
March 1, 2009 at 19:59 UTC (+0000)
http://blog.windfluechter.net/index.php?/archives/307-guid.html
quick search in google reader
Anonymous said,
March 1, 2009 at 20:10 UTC (+0000)
Planet Debian has a search bar, at the top right under the Debian logo. Typing “lost+found” into it gives the results you want right after your post.
Boyd Stephen Smith Jr. said,
March 1, 2009 at 21:13 UTC (+0000)
I think this is what you are looking for: http://blog.windfluechter.net/index.php?/archives/307-Automatically-restore-files-from-lost+found-improved.html
Ingo Jürgensmann said,
March 1, 2009 at 22:16 UTC (+0000)
That was me…
Sadly, to be honest, my scripts are not that useful, when the files are already located in lost+found. You’ll need one part of the scripts to generate the checksum file regularly (cronjob) to be able to recover files from lost+found with the second script when it’s needed.
See http://blog.windfluechter.net/index.php?/archives/307-Automatically-restore-files-from-lost+found-improved.html for more details!
sven said,
March 2, 2009 at 08:15 UTC (+0000)
Thanks for the help.
Ingo: I know, but your scripts are a really nice help when it comes to preventing the problem he has from appearing again.
If anyone is interested:
The problem for him was the following:
He had lots of files kept in a single directory. All those files were on backup.
Now he started sorting the files according to their content and context. When finished (well, a short while after he was finished, but before the next regular backup), he accidentally deleted the sorted tree.
With recover (or e2undel), he recovered parts of the sorted stuff, but most landed in some directory named after their inodes (much like e2fsck names them when it finds lost files). So, since your (Ingo’s) script could be run far more often than a full fledged backup, it might help him if something similar happens again in the future.
I already provided him with the needed info to find files which where not recovered by “recover”.
Also, I should have known that the search function on planet.d.o is not limited to the posts currently shown on the page. Stupid me…
Ingo Juergensmann said,
March 2, 2009 at 13:36 UTC (+0000)
Yes, it should be suitable for the purpose of not let that happen again.
Truely, I wonder why there exists such a tool already doesn’t, because the idea is quite simple. Maybe someone want to implement it in a clean way?
Anyway, I hope your friend finds my scripts useful in the meantime!