So I blundered today. I reset the config of my truenas server wanting to only reset the network config without realizing it would reset everything (yes I know, it says that in the manual). The problem is that my dataset is encrypted and the key I saved isn't working for some reason. I took out the boot drive and I want to try to recover the removed config db file which stores the keys and all the other config information.
Since truenas is based on FreeBSD, I figured I'd ask here to see if anyone can help. Is there any way to recover this deleted data from the boot drive? I can plug it in to a Windows or Linux machine to use any tools you suggest. I know of a few tools but I don't know how to use them. My backup plan is to find a data recovery service, but those seem expensive from what I've seen and I don't even know if that will work.
Thanks
Edit: The file setup of my NAS is a couple RAID drives, which are still in tact and the encrypted data is still there, and a boot drive which is undamaged, but the config file I want is a .db file which inside it holds the key to decrypt the RAID on startup. I believe the boot drive is a ZFS filesystem just like the RAID drives, and the OS is truenas which is build on FreeBSD.
Since truenas is based on FreeBSD, I figured I'd ask here to see if anyone can help. Is there any way to recover this deleted data from the boot drive? I can plug it in to a Windows or Linux machine to use any tools you suggest. I know of a few tools but I don't know how to use them. My backup plan is to find a data recovery service, but those seem expensive from what I've seen and I don't even know if that will work.
Thanks
Edit: The file setup of my NAS is a couple RAID drives, which are still in tact and the encrypted data is still there, and a boot drive which is undamaged, but the config file I want is a .db file which inside it holds the key to decrypt the RAID on startup. I believe the boot drive is a ZFS filesystem just like the RAID drives, and the OS is truenas which is build on FreeBSD.