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

    Unable to Mount NVME Hard Drive

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 4 Posters 1.4k 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.
    • P
      ProfessorManhattan
      last edited by

      Hey, so I had an extra NVME drive laying around and thought it would serve well as a place to store Squid proxy files on pfSense. I am unsure how to mount it though. I tried a dozen or so commands and tutorials without success.

      Here's the output of geom disk list

      Geom name: nvd0
      Providers:

      1. Name: nvd0
        Mediasize: 500107862016 (466G)
        Sectorsize: 512
        Mode: r0w0e0
        descr: **
        ident: **
        rotationrate: 0
        fwsectors: 0
        fwheads: 0

      Geom name: da0
      Providers:

      1. Name: da0
        Mediasize: 299966445568 (279G)
        Sectorsize: 512
        Mode: r2w2e7
        descr: HP RAID 1(1+0)
        lunid: ***
        ident: ***
        rotationrate: unknown
        fwsectors: 32
        fwheads: 255

      I tried running:

      • mount /dev/nvd0 /media (Error message: mount: /dev/nvd0: Invalid argument)
      • mount /dev/nvme0 /media (Error message: mount: /dev/nvme0: Block device required)
      • mount /dev/nvme0ns1 /media (Error message: No such file or directory)

      Does anyone know how I can mount the NVMe drive?

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        Hi,

        Formatting it first ?

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          Yeah you need to create a partition to mount first:
          https://www.freebsd.org/doc/handbook/disks-adding.html

          Be aware though that pfSense does not actually support multiple drives for anything other than disk mirrors. If you do this be sure you know what will happen if, for example, the fstab is rewritten.

          Steve

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            I'd use ZFS on there, but otherwise, what ^ he said.

            gpart create -s gpt nvd0
            gpart add -t freebsd-zfs -l data nvd0
            zpool create data gpt/data
            zfs set mountpoint=/data data
            

            Salt to taste.

            Since that's ZFS, no need to mess with fstab.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 2
            • P
              ProfessorManhattan
              last edited by

              @jimp If I use this method, can I have a usable hard drive? @stephenw10 said that pfSense does not support multiple hard drives.

              GertjanG 1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                There are some things that could use it. The syslog-ng package can specify a log storage location including a different drive for example.

                Steve

                1 Reply Last reply Reply Quote 0
                • GertjanG
                  Gertjan @ProfessorManhattan
                  last edited by

                  @ProfessorManhattan said in Unable to Mount NVME Hard Drive:

                  If I use this method, can I have a usable hard drive?

                  First, check out what ZFS is.
                  If your pfSense isn't using ZFS right : it is an install option, something you choose at the very beginning.

                  You could compare adding a drive to pfSense as adding a drive to a PC using some Windows OS :
                  It (the SATA port) has to be enabled in the BIOS) and the BIOS has to recognize it.
                  When booting your OS Windows, there will be NO D: or E: that represents the drive. You have to use the DiskManger thing to partition it. And format it using FAT32 or more recent scheme. You have to assign a drive letter.
                  Only then ... you ... can use that D:\ drive - Windows itself doesn't care about it, it lives on the C:\ and won't touch the new D:\ what so ever.

                  FreeBSD drives are mounted using the /etc/fstab file.
                  This file can be edited, and will get overwritten by pfSense whenever it sees fit (upgrades etc).
                  Consider using the EarlyShellCmd and have your drive mounted wherever you want. It will be something like /root/mybidrive/
                  The directory /root/mybidrive/ will be situated on your new big drive, not the original pfSense drive.
                  You could even do more dramatic things like placing the entire /var/ on another drive but you wind up modifying hardcoded settings and files. It not worth it ... Just re install pfSense on the newer, bigger drive.
                  Don't forget : it's a firewall , not some Desktop PC etc.

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

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