March 9, 201511 yr Hello, I'm trying to recover a file I accidentally deleted (and am hoping I haven't yet overwritten) from my unRAID server using the debugfs tool. The problem I'm running into is that whenever I try to open a filesystem, I get this message "Bad magic number in super-block while opening filesystem" and have no idea what that is, and google has not really been my friend either with this one. I'm hoping someone here can help me get past this and recover the file (presuming it is still there). I'm running unRAID 4.5.6 currently. Thanks.
March 9, 201511 yr I don't think debugfs supports reiserfs. Why are you not using reiserfsck? I hope you have a full backup of the rest of the files, because running file system tools can be risky. If the data is important and not backed up anywhere, you really should be working on a dd copy of the drive in question and leave the original alone. There is a good reason data recovery is a high $$$$ business.
March 9, 201511 yr Author I'm not using reiserfsck because I'm not really a linux guy and didn't know about it. So far the attempt has been limited to what I've found on Google. So, there is only 1 deleted file that I care about, and though it would be a pain in the a**, I could make it new. the most important thing is no to cause problems with any other files, which are all more critical than this one. I just thought if I could find a relatively easy way to get it back, that would be great. Ironically, I thought the file I deleted was the backup, I'd forgotten that I moved the main file over to the server to provide some protection.
March 9, 201511 yr If you want to attempt recovery of that one file, back up all your important files first, then post back for more help with the specific commands you can try. As you have just found out, having files on a fault tolerant server is no substitute for a proper backup. Also, don't write any files to the drive you wish to try to recover. Deleting a file marks the space as available for new files, so anything you add to that drive may overwrite what you are trying to recover. Recreating the single deleted file may be less of a PITA than trying to undelete it, but in any case you need to figure out a backup strategy.
March 9, 201511 yr Author Well, I have a (mostly) proper backup, I just didn't update the backup set when I moved that file to a new location, oops. 99% of that server houses media (about 9 tb worth), which I don't back up, but don't want to mess up either, so I guess I'll just recreate the doc, and make sure the new one is in the backup set correctly. Thanks for the input, thought it would end up this way, but wanted to be sure before I gave up.
Archived
This topic is now archived and is closed to further replies.