[SOLVED] recover files after accidental formatting of zfs

Ok, Let it the 'you are an idiot' comments roll...
Long version:
I wanted to play with zfs, so I was installing freebsd alongside my typical arch installation. During the installation, I was astonished to realize that I must have been confused by the BSD drive naming convention because I had overwritten my data partition with zfs. Of course (I am an idiot) and I had no backup.
short version:
Used to have an ext4 partition that had some files on it. Now I have a zfs partition that has no files on it.
I did not do ANYTHING after I realized the mistake. I didn't even finish the installation. To the best of my knowledge, it has never even been mounted.
What utilities give me the best chance of recovery? Is there anything specific I should know about this specific situation, recovering a journeled file system out of zfs?
Last edited by cory.schwartz (2011-03-15 16:14:48)

Turns out that TestDisk was IS in fact capable of recovering lost partitions after they have been deleted, or sometimes reformatted. According to their wiki, they do not support ZFS filesystem, so I decided to try it in hopes that it would still recover TO a zfs partition.
And, I happen to have a copy of TestDisk handy on my Parted Magic CD.
Steps taken:
-From the main menu on Test disk, Select advanced.
-Select analyze partition data.
-This correctly identified my old linux partitions, and they were marked with a D which means they were 'deleted'. I don't know if it is completely right, because I never bothered to write down the specific Hard Drive geometry before, but it looks right to me.
-hit 'Write' to write the corrected partition table to disk.
-I was able to see recovered files through the testdisk program, but I'll have to reboot for the kernel become aware of the partitions and let me mount them. So I'll be back in 5 minutes to report whether this worked.

Similar Messages

  • How do i recover files after being trashed?

    how do i recover files after being trashed?

    If you emptied the trash, you don't unless they are on your backup disk.

  • My mbpro would not start so re-installed (as instructed by the website) how do i recover files after i re-installed my OS?  thank you.

    my 13" mbpro would not start so i followed the instructions & turned out i needed to reinstall the OS.  can i still recover my files after i erased & reinstalled?  if yes, how do i do it?  thanks.

    If the system partition was erased, recovery of any files previously stored on it as identifiable entities is unlikely.
    Keeping an external CarbonCopyClone of the startup disk (free download) gets you a bootable clone (with all applications installed) so you have a chance of cloning back onto the internal disk if you ever need to reformat the partition again.

  • Curious about "Recovered Files" after restart

    Is there a way to find out the source of recovered files and what they mean? Just curious.
    My latest were:
    A folder: <msoclip>
    A folder: <CardModeFiles>
    Thank you.

    Recovered items appear when a program that creates temporary files either crashes or does not clean up after itself properly.  The Mac OS cleans the files up and puts them in this folder. This is an old apple tech note, but it is still valid:
    http://docs.info.apple.com/article.html?path=Mac/10.4/en/mh2267.html
    I think msoclip comes from some Microsoft software. I don't know about the CardModeFiles thingy. You can safely delete these files.
    charlie

  • How to recover file after battery exhaustion

    How do I recover unsaved files after battery exhaustion? Before my snow leopard installation, when I replug power after battery exhaustion, the system would restart and resume the desktop with my working files. After I installed snow leopard, the system simply went for a complete reboot every time I replug power after battery died, and thus I couldn't find the files I worked on unless I saved them. How do I find/recover the unsaved files?
    I use macbook and snow leopard. Any advice would be highly appreciated!

    I think you are seriously confused about terminology, as your post doesn't make a lot of sense. Rebooting refers to the act of restarting the Mac, just as if you turned off the machine and then turned it back on again. It restarts the system from scratch (ie, with a "fresh desktop").
    Sleep is a completely different thing. It allows the machine to stay on while cutting power to as many components as possible. This allows the machine to look like it's turned off, but it retains its state and wakes up with all the same apps/windows open.
    If you are putting your machine to sleep and finding later that it has not retained the state, as you seem to be saying, that means the battery has died and the machine shut down. Not a nice, gentle shut down, like when you choose Apple -> Shut Down, but an abrupt, kick-in-the-head sort of shut down that has the potential to do damage to your system software. Not to mention that you'll lose unsaved changes to open documents. This is a problem, and you need to address it.

  • "MerpAD RDC" file in Trash "Recovered Files" after every startup.

    Does anyone know what this "MerpAD RDC" file is? It shows up in the Recovered Files in my Trash every time I reboot / startup. It's not causing any trouble, just curious as to what it is.

    I have the same issue. I don't seem to see it everytime, but almost. I am going to try to keep better track of it. I have seen several different files show up here. Mostly this one.

  • Is it possible to recover files after reinstalling my whole Mac OS X?

    I recently reinstalled my whole Mac OS X in my new iMac. But I realized I forgot to backup some files (my Pictures folder!).
    Is there a way I can recover those files? When I reinstalled the software (using the DVD's the iMac came with) I used the option erase and install (I don't remember exactly what it said but it was the complete reinstallation option.
    Thank you.

    It could be - remember that a folder is really just a special kind of file. The files within it are just additional files, linked to it as contents in the file allocation table. And all of them are not necessarily kept as a discreet contiguous chunk of data on the hard disc. So yes, it is possible that the folder itself is fine, but the files within it are not.
    Or, as mentioned, it could be something else, like permissions, or a corrupted iPhoto database, or who knows?
    Did you look at the DR3 FAQ? Does it make any sense to you, given whatever was displayed while the recovery software was running?
    DR3 online FAQ entry:
    I recovered files, but they won’t open. What’s wrong?
    The answer to this question depends on whether you’re talking about files recovered from under the “CBR” folder, or other ones.
    Files recovered by catalog (i.e. Not from the CBR folder)
    It's normal for a small percentage of recovered files to be bad. But if you have checked a number of them and none of them are good, then chances are that they were recovered with wrong ABL setting. Pick out a few files to use as test files, and go back and select a different ABL choice (Expert>Allocation Blocks Layout..menu) and recover and test those few. If you find an ABL setting that gives good results on those files, re-do your big recovery with that setting. For more information, read the material on Allocation Block Layout in section 8.2.1 of the Data Rescue 3 Users Guide.
    Files recovered by content (i.e. from the CBR folder)
    It's also normal for a small percentage of these files to be bad. If the original file was fragmented (not stored on disk in consecutive blocks), then it can not be properly recovered by content. In most normal situations, most files on a user's disk will not be fragmented. Typical fragmentation rates for files tend to be just a few percent.
    Note: The ABL setting plays No role in recovering files under the CBR folder.

  • Recovering files after a force shut down

    **** all,
    My mbp froze up last night and I had to do a forced shut down. When I rebooted all was fine except for a pages document that was open during the freeze was lost. Can this file be recovered?
    Thanks,
    Brian

    I don't know if Pages periodically saves to a temp file, but if it does, that temp file should be in a Recovered Files folder in your trash can. If it's not there, or if you emptied your trash and got rid of that Recovered Files folder, then you're out of luck. Any unsaved changes are gone.

  • Recovered files after reboot

    why there is recovered files folder in my trash. inside the folder, its wkresources program. anyone could help?

    http://support.apple.com/kb/TA23371?viewlocale=en_US

  • Recover my voice memos after accidentally format my iPhone 4s

    I accidently format my Iphone  4s and forget to back up my voice memos...
    i never back up the file in itunes
    can someone please tell me what to do to get them back??
    thank you

    They now exist only in your fond and wistful remembrances.

  • Recovering Iphone after accidentally erased using 'Find My Iphone'

    I accidentally ERASED my iphone using 'Find My Iphone' on my iPad. How can i Recover my files in my Iphone?
    I haven't done any backups recently. not even using iClouds.

    Apple doesn't exert any control over any of the data on your iPhone, only you do. 

  • Recover file I accidentally saved over?

    hi, I have a serious problem here... I saved a file as PSD ,then delet all the layers and was doing another stuff on the sheet( the reason I did this is because I wanted the same page size and was lazy to enter the size:| )after I finished, I saved the file to another name. but, I found that the first file that i saved manually , is replaced by an autosave file on my work procedure on the second file. I know this happend because I was working with the sama names, but is there any way that I can restore my first file that I saved to what I manually saved?:( I didnt know this whould happend... adobe shouldnt autosave on the manually saved files...:( pleaseeeeeeeeee help me, what can I do here?

    Sorry to bring up an old thread but a Google search for this same problem kept bringing me here. Not sure if this is a new feature or not but I accidentally did the same thing. I opened up a file to use the layout, re-did a whole new ad and then in a hurry, two hours later I pushed the (command+s) button and to my dismay, saved over the entire original file. Then I opened up the history panel from the windows drop down and noticed at the top of the history panel there was a version of the file, as it was, when I opened it. So I saved the file as a different name, crossed my fingers and pushed the little button at the top of the history actions next to the thumbnail of the original file. And BAM! it restored the file back to it's original glory it was in, right when I opened it. Re-saved the original and was able to keep both files. Yay, win for me!

  • Recover files after crash

    I just had an unpleasant experience: I was working on some LaTeX files in Kile, then tried to open a file in Kaffeine, which made KDE crash. I had no alternative but to turn off the computer, and when I turned it on again, the LaTeX files were apparently damaged. At first, they appeared with their full sizes in the file manager, but only the first page-and-a-half came up in Kile (or in any other editor, for that matter), but after some more fiddling around (including an expedition to Windows to see if they were accessible from there - the files are on a vfat partition) they show up with file size 0.
    Is there a way to recover them? Luckily, I have the dvi files from them, so I can recover the text, but I'd hate to go through all the latex coding over again.

    Hate to bump such an old thread.... but this is exactly what just happened to me. And I'm going crazy considering the amount of work I've put into the document. I was just a couple lines from uploading my work... and then this. Didn't make a backup cause, honest to God, I did not expect something like this to happen.

  • Problem recovering files after performing minimized system image

    I have been looking for a quick and easy way to remove bloatware on my HP Pavilion dv6 laptop and I recently came across the option to minimize the system image.  When performing the task, I was given the option to first back up all my files and I thought this was great.  After waiting about 2 hours for it to creat the backup, it created a 67.5 GB file on my backup drive and then proceeded to minimize the system image.  When it was complete my laptop rebooted and went through all the steps of setting up for first-time use.  When everything was done, I hooked up my backup drive and navigated to the file recovery folder entitled "Backup_2011-10-28 125331."  Within the folder was a "Recovery.exe" file so I assumed I simply had to run the file and everything would be restored.  However, all it did was create a file on drive C: in the "System Recovery Files" that basically looks like just a list of files.  The file that was made was only 12 GB which doesn't make sense considering the original backup folder took up 67.5 GB on my backup drive.  
    I assumed that this recovery file would simply perform a system recovery, putting back all the user-created files where they were originally and basically restoring my system to how it was before minimizing the system image, except obviously for the fact that the system image would be smaller.  Was I wrong in assuming this or am I not restoring my system correctly?  When going into windows and attempting to restore from the backup created by whatever HP program that made it, the file isn't even given as a possible source to back up from.  How can I get my computer back to where it was before the restore?  I had over 100 GB worth of music, games, and programs on there that are now lost and trying to even remember what all I lost will be greatly time-consuming, not to mention how long it will take actually getting all the files back.  Can anyone help me with this? Thanks in advance!
    This question was solved.
    View Solution.

    Thank you for your prompt reply!  I looked in the FBData folder like you said but there doesn't appear to be a "Backup.wim" file at all.  There are 368 "Backup#.swm" files and a couple files called "SourceFileList" and "TypeList" but no wim file.  The "Backup_2011-10-28 125331" file is 67.5 GB (72,481,045,331 bytes).
    Here's a list of the files and folders in the file:
    FBData (67.4 GB Folder)
    language (1.61 MB Folder)
    Dbg.log (398 KB Text Doc)
    DiscVerifierLib.dll (222 KB file)
    HPFileMgr.dll (440 KB file)
    Restore.exe (17.6 MB application)
    Hope this helps! Thanks once again.

  • Recover files after run recovery disk

    Hi, i have an a305-s6898 with Xp.
    I carry the NB to service and there they run the Recovery Disk (that crash, delete, erase, all my XP system, files, mails, disk partitions, etc)
    Does any have an idea if a could recover some files?  (mi xp configuration, partitions, files, something?)
    Does any have an idea if i should (must or could) call to toshiba center and tell him, that his service center at argentnina sucks!?
    Thanks.

    The only chance you have of getting anything back is by sending the drive to one of the drive recovery specialist companies and have them see if they can retreive them.  There is no guarantee that they will be able to do so and the cost would begin around $1000.00 and go up from there. Unless you have some priceless documents or photos that can't be replaced you might as well just move on.
    If you don't post your COMPLETE model number it's very difficult to assist you. Please try to post in complete sentences with punctuation, capitals, and correct spelling. Toshiba does NOT provide any direct support in these forums. All support is User to User in their spare time.

Maybe you are looking for