Convert /tmp/config.cache to config.xml
-
TL;DR
-
pfSense CE 2.6, ZFS install.
-
l need to convert /tmp/config.cache to config.xml
I had a complete SSD failure on a pfsense install. SSD firmware died and manage to create an image from the flash, sort of.
CF dataset didn't show.
I've got some config files and data, but not a valid config.xml to get data from, I think due to compression on ZFS.
The /tmp dataset had the config.cache at 400KB with working data.
I've got a backup from a few month prior, only changes on HAproxy were lost, this is an excercise to recover data from a broken SSD, and a broken pfsense.
I'm binary searching from a valid config.xml on the recover files. But only pieces there and there.
It's possible to swap the config.cache for my recover one and then make pfsense load it and then export the config?
-
-
UPDATE: FIXED
I got to mount only the zroot/ROOT/default dataset manually on another mountpoint, and BINGO, everything was there.