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

    How to add new disk?

    Scheduled Pinned Locked Moved Hardware
    3 Posts 2 Posters 2.3k 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
      GrobovoI
      last edited by

      How to add new disk?
      mount /dev/ad4/ /mnt/ - not work. โ€“--> mount: /dev/ad4 : Invalid argument
      pfsense 2.0.3

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

        Is that disk formatted at all?

        Wipe the disk's old partitions

        dd if=/dev/zero of=/dev/ad4 count=2 bs=1k

        Give it a basic partition table

        fdisk -BI ad4

        Give it a disk label

        bsdlabel -w ad4s1

        Format the partition

        newfs -L myextradrive -U /dev/ad4s1

        Mount it

        mount -t ufs /dev/ufs/myextradrive /mnt

        You can then add a line for that to /etc/fstab to make it come back at bootup. ย (At least on a full install, NanoBSD isn't quite that easy)

        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 0
        • G
          GrobovoI
          last edited by

          Thanks, it works.
          but i can't do automount
          /etc/fstab:

          /dev/ufs/pfsense0 / ufs ro,sync,noatime 1 1
          /dev/ufs/cf /cf ufs ro,sync,noatime 1 1
          /dev/ufs/ad4 /mnt ufs rw,sync,noatime 1 1
          

          in dmesg no errors
          mount -a work properly

          P.S. Sorry for my bad english

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