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

    How to switch off hard disk after boot

    Scheduled Pinned Locked Moved General pfSense Questions
    10 Posts 3 Posters 1.2k 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.
    • U
      Ulysses_
      last edited by

      Most of the time the firewall is idle. Could save some electricity by switching off hard disk.

      1. Can this be done temporarily when idle?

      2. Can this be done permanently as in some linux distros that load the entire filing system to ram if you boot with "toram" boot code?

      3. If not, where can I find the best forum for freebsd to have this considered as a feature?

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

        We specifically disable drive power management because it has a bad habit of trashing drive heads on FreeBSD due to constant park/unpark load cycles.

        If you're worried about power, get an SSD.

        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
        • U
          Ulysses_
          last edited by

          Alright, is there something I can do to at least not use the hard drive at all after boot, just like the "toram" boot code in some linuxes? Does the embedded version do that?

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

            You can enable RAM disks for /tmp and /var but you can't ever disable the drive entirely.

            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
            • U
              Ulysses_
              last edited by

              There's something in my CMOS settings that suspends the hard disk after a given time if enabled. How does the embedded version of pfsense avoid writing to an SSD drive?

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

                There is no embedded version as of 2.4.

                But it essentially did what the option to put /tmp and /var in RAM did. Anything volatile goes in a RAM disk (logs, config files, status files, etc).

                With modern high-quality hardware it really doesn't matter. Nothing to worry about, not worth the effort.

                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
                • U
                  Ulysses_
                  last edited by

                  Any idea why the live CD is not available any more?

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

                    LiveCD was more trouble than it was worth. Seriously, just do a full install to a real drive (SSD or HDD) and let it go. There is nothing to be gained from all that fiddling on modern hardware.

                    The LiveCD, NanoBSD, and other such things were made obsolete by the advancement of technology. If they still had any value, they wouldn't have been removed.

                    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
                    • SammyWooS
                      SammyWoo
                      last edited by

                      I too am cheap on electricity, hate noise and heat but I have come to realize, with empirical data, than my past obsession with turning things off is been overtaken by very efficient electronics of today's. I use SSD everywhere except my main storage NAS of course, and fitted with NAS-rated mechanical drives which is designed to turn 24x7, taking less than 10w per 4TB drive.ย  I tried at first to sleep these drives when idle but then parts of my system would balk and go into hissy-fit having to wait for asleep drives to wake up. It seems developers used to design for slow hard drives and built in wait loops but no longer, software expect storage to be ready to work the instant is called for and error out when not.ย  I think if you insist you will bump into difficulties at every turn, and well ur on your own.

                      1 Reply Last reply Reply Quote 0
                      • U
                        Ulysses_
                        last edited by

                        What NAS hardware would you recommend? Or perhaps NAS+pfsense? Or even NAS+pfsense+ADSL router?

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