Recovering Deleted Files on ReiserFS3? 126
DarkSarin asks: "I have a rather serious problem: I managed to accidentally delete some files (rather important ones at that!) while trying to back them up to cd (I was using a GUI burning software that will remain nameless for now). How do you recover accidentally deleted files in Reiserfs? This thread (started by me) indicates that you can't recover them. Note that I had found a way to rebuild the tree, but that didn't work. It seems odd to me that you wouldn't be able to recover accidental deletions, but that really does seem to be the case. Help? Please?"
Try this (Score:5, Informative)
If you're really really desperate, you can do what I did a few weeks ago. In my \
case, fsck didn't recover the partition either, indeed it crashed. So here's what's \
I did from the beginning of what I think fixed it:
1) reiserfsck --rebuild-tree
2) mount
3) reiserfsck -S
4) debugreiserfs to get metadata for Vitaly
5) mount
6) mount again
I'm not sure why this happened, but after the second mount, the partition was not \
recognizeable as ReiserFS anymore. I suspect it had to do with a few really huge \
files that were originally on the partition that reisefsck -S tried to recover. In \
doing so it probably hosed lots of stuff. Now, it was as simple as
7) reiserfsck --rebuild-tree
And I had most of my data linked under lost+found! Took me a few hours to sort \
through it all but I got back most of what I cared about. Maybe if you use the new \
pre8 fsck you won't need to jump through these hoops. Since the potential for data \
destruction is high here, I wouldn't blame you for not trying. And yes, this all \
happened by trial and error
This might help too
http://marc.theaimsgroup.com/?l=reiserfs&m=104861
Good luck!
Ask Namesys (Score:5, Informative)
http://www.namesys.com/support.html
Re:Name the program please (Score:3, Informative)
> Was a user error? Was it a bug? Is the bug being worked on?
I'm not poster so I don't know the answer to your question, but I will say I've accidently done this in K3b. I had files highlighted in the list of files to burn, AND there were files highlighted in the tree view of my filesystem. I hit the delete key thinking it would remove the ones from the list of files to burn; nope, it deleted them from the filesystem!
Re:More questions... (Score:3, Informative)
By reading the slop in between tracks. The writes look more like layers, with little bit of data poking out from the edges, to a scanning electron microscope.
Think of paint layers - at the edge, you can somtimes pick out the previous colors and the order that they were painted.
Of course, this isen't for meere mortals. People like the CIA get to play with this stuff.
Re:Good luck... (Score:3, Informative)
On the other hand, I agree that a marked for deletion queue makes a great use of "extra" disk space on a desktop system. But this use should not be forced on a filesystem that's used in a wide variety of different situations. Ideally, this idea can be done on top of the file system.
The way i did it (Score:4, Informative)
I beleive i used the --rebuild-tree option. You should follow the steps in the manpage under Example.
so in short, man reiserfsck before asking slashdot
NetWare has... (Score:1, Informative)
A filesystem has never (AFAIK) implemented a trash / recycle bin folder -- not on Windows or OS X, and not on any UNIX that I know of.
NetWare has had a very sophisticated file undeletion capability since time immemorial.
If Novell ports it to SuSE, you Linux clowns might just find yourselves in possession of a mission-critical operating system after all [not that you deserve it].
Well...to be fair. (Score:1, Informative)
But in the context menu it asks you if you want to delete or move to trash. Not the same thing! In DOS, delete, or del usually just write a lowercase delta IIRC over the first character of the file name marking the space as free to be used.
Right now, his enemy is the "relatively" obscure file system, and how much writing he's done to the harddrive since the "incident".
Re:The Coroners Toolkit (Score:4, Informative)
Re:Good luck... (Score:4, Informative)
I will point out that the filesystems included in Novell's Netware product did include a deletion-recovery tool, accessible via the salvage command. My understanding was that Netware would not permantently delete a file until that disk space was needed for active data or until a timeout period expired.
Damned handy tool, too. We had IBM's TSM for our major backup operations, but for those "oops" moments, salvage was sure handy. I hope that the new Novell might consider implementing those features on existing linux filesystems, or at least contribute native linux implemenations of their filesystems.
Re:Good luck... (Score:1, Informative)
tune2fs can fix that after creating the filesystem. But it's not wasted space, it's just reserved for root (or another user ID, if you change it - useful as a cheap quota system).
ReiserFS v3 and v4 are pretty good with space efficiency. No space is reserved for inodes, and tail-packing means very little space is wasted storing the last block of a file.
Solution (Score:3, Informative)
Re:More questions... (Score:4, Informative)
Re:Name the program please (Score:4, Informative)
To the user who gave instructions on how to use rebuild tree, those are about the same steps
I used (same -S option) on --rebuild-tree, to no avail.
So, the end result is--thanks, but so far the best advice still seems to be to pay the $25 to the folks who made the fs. I may yet do that. In the mean time, I am using my sorry winXP install....
blech
Re:Good luck... (Score:3, Informative)
Actually, OS/2 implemented it. It could be enabled/disabled per drive, the size of the trashcan could be configured, and it worked even for temporary files made by programs. And yes, it was somewhat slow.
Re:More questions... (Score:3, Informative)
Except that they don't. It's entirely a myth that the CIA can read multiply-overwritten data from hard disks. The idea that the tracks look like layers doesn't hold up - you'd have to use less and less write density every time. It doesn't happen that way.
Now, what you can do - and what does work - is look at the analogue signal from the head and see what the variance from an "average" one or zero is. So, if the head returns a 4mV pulse for a one, on average, then it's likely that a 4.1mV pulse used to be one last time, and a 3.9mV pulse used to be a zero. This is a gross oversimplification, but you get the idea. It works, but not very well.
Some file systems do have a trash can actually. (Score:2, Informative)