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

    USB stick access via shell…?

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 2 Posters 7.6k 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.
    • G
      GS850L
      last edited by

      Is there a way for pfsense to access a usb stick in the shell?

      Thank you

      1 Reply Last reply Reply Quote 0
      • dotdashD
        dotdash
        last edited by

        Just make a mount point in /tmp or something and mount it.
        On the console you should see a message when you plug the stick in. It usually comes up as da0.
        Drop to a prompt and make the mount point- mkdir /tmp/usb
        If it's a FAT stick from a Windows box, you need to mount as dos fs- mount_msdosfs /dev/da0s1 /tmp/usb
        You can then cd to /tmp/usb and copy files or whatever. If you are running nano, remember to mount rw if you need to copy somewhere other then tmp or var.

        1 Reply Last reply Reply Quote 1
        • G
          GS850L
          last edited by

          Thanks for the info.

          I should have mentioned I am running pfsense in virtual box at the moment. Is accessing a usb drive possible in that scenario?

          Good day

          1 Reply Last reply Reply Quote 0
          • dotdashD
            dotdash
            last edited by

            Not familiar with that. In ESXi, you can pass the device from the host to the guest. Perhaps you can do something similar.

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