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

    Deleting log files through boot concole

    Scheduled Pinned Locked Moved IDS/IPS
    5 Posts 2 Posters 825 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
      pas
      last edited by

      After a misconfiguration I managed to fill my entire drive with suricata-logs. Now pfsense won't boot at all and it is only showing error messages that the drive is too full to start normal.

      I've located the logs through the console accessable in the boot-menu. The issue is now that the file-system is mounted read-only and I'm not able to delete the logfiles.

      Any tips on how to do this? I'm new to freebsd so suggestions on which commands to use and correct syntax is much appreciated!

      It is running the latest version of pfsense and its not configured to be accessible over ssh.

      1 Reply Last reply Reply Quote 0
      • bmeeksB
        bmeeks
        last edited by

        You will need to remount the file system as read/write using this command:

        /sbin/mount -o rw /
        

        Try this from the single-user mode command prompt and look for the Suricata logs in /var/log/suricata.

        1 Reply Last reply Reply Quote 0
        • P
          pas
          last edited by

          Thanks @bmeeks !

          Unfortunately I got an error;

          mount: /dev/gptid/[id of some kind]: R/W mount of / denied. Filesystem is not clean - run fsck. Forced mount will invalidate journal contents: Operation not permitted.
          

          Any idea?

          bmeeksB 1 Reply Last reply Reply Quote 0
          • bmeeksB
            bmeeks @pas
            last edited by

            @pas said in Deleting log files through boot concole:

            Thanks @bmeeks !

            Unfortunately I got an error;

            mount: /dev/gptid/[id of some kind]: R/W mount of / denied. Filesystem is not clean - run fsck. Forced mount will invalidate journal contents: Operation not permitted.
            

            Any idea?

            Yeah, you're going to have to try running fsck to see if it can repair the disk volume. This page can help you out. Using the Alternate Method shown about midway that page should work for you on pfSense.

            1 Reply Last reply Reply Quote 0
            • P
              pas
              last edited by

              Will test this later today. Your help is highly appreciated!

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