LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 07: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, 08:56 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,691
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
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, 10:04 AM   #3
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

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

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
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 12:18 PM.
 
  


Reply



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 12: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 07:51 AM
In /var log folder is missing suresh.k Linux - Newbie 3 12-28-2011 12: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 04:13 PM

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

All times are GMT -5. The time now is 11:21 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
Open Source Consulting | Domain Registration