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

    Recovering from "corrupt" system: How could I have done this better?

    General pfSense Questions
    2
    2
    355
    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.
    • H
      Hayzr
      last edited by

      So my system went down, I suspect it was when one of the fan blades broke and jammed the fan, thanks 3rd world electric supply company.

      I was hoping to minimize my effort in reconfiguration, but not being even remotely versed in BSD I was not hopeful. A few hours later I realized I could potentially recover my settings from the corrupted drive.

      so I installed the new HDD and booted off the installation media (with the old Hdd attached), and went into a shell.

      Geom disk list
      

      Identified the crashed HDD as da0

      ls /dev/da0* 
      

      showed me the devices registered (?) under da0 (the one I was concerned with is da0sa1)

      from there I went about mounting the old HDD

      
      mkdir /home/whatever
      mkdir /home/whatever2
      mount /dev/da0sa1 /home/whatever
      
      

      Once mounted I copied the config.xml file

      cp /home/whatever/cf/conf/conf.xml /home/whatever2/
      

      From there I went into the installation and proeceded as if new.

      Once installed I downloaded the backed up config.xml file and went through the restore process to get back to my previous settings.

      I am pretty sure my method was longer than necessary, but as a complete noob it worked for me, my question is "how could I have done this faster?"

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        Pretty much by having a backup of the config ready to go. Other than that it seems like you managed pretty well.

        Chattanooga, Tennessee, USA
        The pfSense Book is free of charge!
        DO NOT set a source port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • First post
          Last post