   HELP!!! Linux undelete
  Like the silly arsehead I am I just typed "rm *" instead of "rm *~" and trashed about twenty hours work. I'm using Slackware 9, ReiserFS and logged in as root, and I haven't toutched the machine since. What can I do to recover my stuff?Edit: FAT32, not ReiserFS. oops. i have several partitions, y'see.   ********"It was this spirit of national efficiency in the Circumlocution Office that had gradually led to its having something to do with everything."[edited by - walkingcarcass on February 16, 2004 9:54:24 AM]
  Dunno if you can, but goes to show you how great it is to back up. I think I will now. ;  There isn''t a reliable undelete for ReiserFS, but you can usually do some good by running reiserfs --rebuild-tree. That will try to rebuild the directory structure by searching for any data that looks like a disk file. You should back up anything important on that partition first, and make sure it''s unmounted before trying it, though. It takes some time to complete, and if you interrupt it, your partition WILL be unmountable. ;  If the data is easily recognisable, such as source code, you could dd your entire partition and search through the dumped file, copy and paste retrieval. Space could be an issue of course.  ;Deleted files recovery howto (looks like ext2 only, sorry)I suggest you do some searching for howto documents. I think I saw one somewhere that describes how to dumb the contents of a partition and use grep to find parts of the files. ;  Moral of the story: Set up cron to back up your files every night. ;quote:Original post by smart_idiot  Moral of the story: Set up cron to back up your files every night.   Other moral of the story: think before you type, especially when logged in as root and sitting in /. ;  I imagine that command would have asked for confirmation if he was logged in as root, but I could be wrong. ;quote:Original post by smart_idiot  I imagine that command would have asked for confirmation if he was logged in as root, but I could be wrong.Linux only asks ''Are You Sure?'' when you ask it to. Most machines have an alias that automatically adds that option to many commands though. ;  Ya know, there is a *Nix forum on here. 