• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 823 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 Dec 9, 2018, 7:06 PM

    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
    • B
      bmeeks
      last edited by Dec 9, 2018, 7:31 PM

      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 Dec 12, 2018, 5:47 PM

        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?

        B 1 Reply Last reply Dec 12, 2018, 10:00 PM Reply Quote 0
        • B
          bmeeks @pas
          last edited by Dec 12, 2018, 10:00 PM

          @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 Dec 13, 2018, 7:40 AM

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

            1 Reply Last reply Reply Quote 0
            1 out of 5
            • First post
              1/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received