Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Convert /tmp/config.cache to config.xml

    General pfSense Questions
    1
    2
    367
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      S_m
      last edited by

      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.

      Screenshot 2023-01-26 at 19.09.32.png

      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?

      S 1 Reply Last reply Reply Quote 0
      • S
        S_m @S_m
        last edited by

        UPDATE: FIXED
        I got to mount only the zroot/ROOT/default dataset manually on another mountpoint, and BINGO, everything was there.

        1 Reply Last reply Reply Quote 2
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.