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

    Need Help Copying Config to USB stick formatted exFAT

    Scheduled Pinned Locked Moved General pfSense Questions
    13 Posts 3 Posters 1.9k Views
    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.
    • O
      Overcon
      last edited by

      @Overcon:

      OK I formatted it as FAT32. The system is seeing it as da0.

      Actually, when I do a df -h I see:

      /dev/ufsid/548983b680f34240 with a size of 71G used 1.4G Avail 64G Capacity 2% Mounted on /

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        Well there you go just mount it then..

        Command should be
        mount -t msdosfs /dev/da0s1 /whereyouwanttomount

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • O
          Overcon
          last edited by

          camcontrol devlist indicates it is da0 pass 2

          1 Reply Last reply Reply Quote 0
          • O
            Overcon
            last edited by

            @johnpoz:

            Well there you go just mount it then..

            Command should be
            mount -t msdosfs /dev/da0s1 /whereyouwanttomount

            I tried, I just get errors.

            m.jpg
            m.jpg_thumb

            1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by

              When I get home later I will throw up a guide for mounting a usb in pfsense.  Guess something we can put on the wiki ;)

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

              1 Reply Last reply Reply Quote 0
              • O
                Overcon
                last edited by

                @johnpoz:

                When I get home later I will throw up a guide for mounting a usb in pfsense.  Guess something we can put on the wiki ;)

                Sounds good, I appreciate it. I know just enough to be dangerous and Google the rest, but everything I find on this doesn't seem to work or errors out. Something happened when I tried to do the last major update, and since then it passes most of the traffic but the web interface is down, and it has a ton of update errors on boot like it keeps trying to complete the last major update or something. I was going to toss it on another box but can't get the config, and I can't find the backup I did a while ago!

                1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator
                  last edited by

                  Ok so I formatted a usb stick on windows as fat32

                  Plugged it into my sg4860

                  Used dmesg to see that is was seen.

                  –-
                  ugen0.4: <ufd 3.0="" silicon-power8g="">at usbus0
                  umass1 on uhub1
                  umass1: <ufd 0="" 4="" 3.0="" silicon-power8g,="" class="" 0,="" rev="" 2.10="" 1.00,="" addr="">on usbus0
                  da1 at umass-sim1 bus 1 scbus7 target 0 lun 0
                  da1: <ufd 3.0="" silicon-power8g="" pmap="">Removable Direct Access SPC-4 SCSI device
                  da1: Serial Number P140360007034BBC37517370
                  da1: 40.000MB/s transfers
                  da1: 7552MB (15466496 512 byte sectors)
                  da1: quirks=0x2 <no_6_byte>---

                  So it came up as da1

                  Then looked at it with

                  2.4.3-RELEASE][root@sg4860.local.lan]/: camcontrol devlist                                             
                  <generic ultra="" hs-combo="" 1.98="">      at scbus6 target 0 lun 0 (da0,pass0)
                  <ufd 3.0="" silicon-power8g="" pmap="">    at scbus7 target 0 lun 0 (pass1,da1)

                  Also see its there as da1

                  So I then mounted it to media, looked at it with ls.. copied over config.xml to it, looked at it again with ls to see the file there.  Then umounted it and plugged it into my windows machine - there you go my config.xml file

                  –
                  [2.4.3-RELEASE][root@sg4860.local.lan]/: mount -t msdosfs /dev/da1 /media
                  [2.4.3-RELEASE][root@sg4860.local.lan]/: cd /media
                  [2.4.3-RELEASE][root@sg4860.local.lan]/media: ls
                  System Volume Information
                  [2.4.3-RELEASE][root@sg4860.local.lan]/media: cp /conf/config.xml /media
                  [2.4.3-RELEASE][root@sg4860.local.lan]/media: ls
                  System Volume Information config.xml
                  [2.4.3-RELEASE][root@sg4860.local.lan]/media: cd /
                  [2.4.3-RELEASE][root@sg4860.local.lan]/: umount /media
                  [2.4.3-RELEASE][root@sg4860.local.lan]/:
                  –-

                  Hope that helps, the s1 would of been if there was a partition or slice on it, etc.. sorry about that.. Was doing it from memory not something do all the time ;) Much easier when I could actually do it ;)

                  configxml.png
                  configxml.png_thumb</ufd></generic></no_6_byte></ufd></ufd></ufd>

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.8, 24.11

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

                    I had to use /dev/da1s1. I got the same Invalid Argument using /dev/da1

                    ls /dev/da1*

                    This is part of the reason there is no clear documentation on this process. It is always different depending on the installed drives, the partitioning of the USB, presence of that awful U3 stuff from sandisk, etc.

                    Chattanooga, Tennessee, USA
                    A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                    DO NOT set a source address/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
                    • O
                      Overcon
                      last edited by

                      OK, that worked. I had to use da0p1 to get it to mount.

                      Thanks, guys for the help on this!

                      1 Reply Last reply Reply Quote 0
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator
                        last edited by

                        Np glad you got it sorted, derelict is correct lots of variables can be involved in this - so it can be difficult to put together any sort of comprehensive guide that covers all the possible iterations.

                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                        If you get confused: Listen to the Music Play
                        Please don't Chat/PM me for help, unless mod related
                        SG-4860 24.11 | Lab VMs 2.8, 24.11

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