LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to make the /var/log folder non volatile (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-make-the-var-log-folder-non-volatile-4175603159/)

zizyx 04-04-2017 07:33 AM

how to make the /var/log folder non volatile
 
So ive been having a lot of trouble trying to get the /var/log folder non volatile. After every reboot, my logging files are gone which is unwanted since i want to see the log files if the system crashes and shuts down or restarts. I'm working on an embedded version of linux and i've tried varius configuration files and settings. I hope somebody can point me to the right direction...

sundialsvcs 04-04-2017 08:56 AM

Fundamentally, your log-folder contents ought not be "gone." Are they being stored on some kind of RAM-disk? Can you find some way to "pipe" the logs out of some serial-port to an external machine? I don't think that there is any setting that would help here.

Emerson 04-04-2017 10:04 AM

In addition, you sure the logs are not cleaned out by some script that runs on startup?

michaelk 04-04-2017 12:13 PM

Welcome to LinuxQuestions.

The odroid, Raspberry Pi and other similar systems makes the line between embedded and desktop very gray. Small embedded systems typically use a virtual system for /var or do not have logging enabled. Without knowing anything about your system we can't provide specific help but if you have syslogd then you can send the logs to a remote network syslog server or you might be able to write the logs to another directory that is not virtual.


All times are GMT -5. The time now is 01:40 AM.