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

    Use Ramdisk without reboot

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 3 Posters 578 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.
    • Y
      yswery
      last edited by

      I can see that in System settings we can check the 'use ram disk for /tmp and /var' which is awesome but it clearly states that a reboot is required.

      Is there a way (in command-line or a like) to safely set up ramdisk without the need to do a full reboot?

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

        @yswery

        Short answer : no.

        /var/ is heavily used by the system, see for yourself.
        Nearly every process has to be stopped first before the underlying file structure is changed.

        This is not a "lets' add a D:\ drive as a ram disk" situation, it replaces the actual /var/ and /tmp/

        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 3
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          You could setup a ramdisk and mount it at the console for some other purpose.

          You can't set /tmp and/or /var to be ramdisks without rebooting.

          Steve

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