LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-04-2017, 08:33 AM   #1
zizyx
LQ Newbie
 
Registered: Apr 2017
Posts: 1

Rep: Reputation: Disabled
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...
 
Old 04-04-2017, 09:56 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179
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.
 
Old 04-04-2017, 11:04 AM   #3
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,317

Rep: Reputation: Disabled
In addition, you sure the logs are not cleaned out by some script that runs on startup?
 
Old 04-04-2017, 01:13 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,526

Rep: Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137
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.

Last edited by michaelk; 04-04-2017 at 01:18 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make Folder/file writable other than /var folder in Linux based router nlsatish26 Linux - Embedded & Single-board computer 7 12-12-2016 01:33 AM
How to make Folder/file writable other than /var folder in Linux based router nlsatish26 Linux - Embedded & Single-board computer 2 12-07-2016 08:51 AM
In /var log folder is missing suresh.k Linux - Newbie 3 12-28-2011 01:22 AM
Can Samhain log my entries in /var/log/secure and /var/log/mesage to a central server abefroman Linux - Software 2 04-13-2008 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration