[arm-allstar] SD Card full will no write anything
Danny K5CG
k5cg at hamoperator.org
Fri Mar 27 16:53:53 EDT 2020
The file /var/log/btmp is the log of access attempts by people trying to get into your node.
For a list of souce IPs try running this
lastb -a | awk '{print $10}' | grep -v ^192 | sort | uniq | sed '/^$/d'
Change the ^192 there to your local IP subnet's first octet like ^10 or ^172 etc.
I would recommend...
1. finding out how it is that your node is so accessible to hacking attempts and secure it.
2. install a USB flash drive and mounting is as /var/log to get some space off your MicroSD card.
Danny
K5CG
----- Original Message -----
> From: "ARM Allstar" <arm-allstar at hamvoip.org>
> To: "ARM Allstar" <arm-allstar at hamvoip.org>
> Cc: "Wayne Jauss" <jauss at pacbell.net>
> Sent: Friday, March 27, 2020 2:20:26 PM
> Subject: [arm-allstar] SD Card full will no write anything
> So I thought I would share. I am Linux challenged, but found this out of need.
> My SD card had filled up maybe due to my using a public static IP, maybe due to
> allowing port forwarding on my router, but I can't be the only person with this
> trouble ever. I had filled my SD card due to the file /var/log/btmp getting too
> big so my solution was to writing a cron job as following,10,25,40,55 * * * *
> /usr/local/sbit/trimlog.sh /var/log/btmp 1000This checks the file every 15 mins
> and truncates the file and fixed it for me. Like I said, I am a newbie and any
> suggestions from the experts would be helpful. Input is very useful.Thanks for
> all you guys are doing.Wayne Jauss / N6TBQ
> _______________________________________________
>
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
More information about the ARM-allstar
mailing list