LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices

Reply
 
Search this Thread
Old 12-06-2004, 01:00 AM   #1
mr666white
Member
 
Registered: Jun 2004
Location: Leeds, England
Distribution: Gentoo, IPCop
Posts: 54

Rep: Reputation: 15
Mounting /var/log as a tmpfs


I have come to the conclusion that mounting /var/log as a tmpfs would be a really nice idea to save disk access and thus on battery life.

I'm not quite sure how to do this as /var/log would want syncing with the harddisk upon shutdown (ideally).

At the moment I have a 4mb tmpfs mounted as /var/log and that keeps the logs working for as long as the box is on, but then i lose them.

I guess i could run a script on shutdown to copy the logs to /var/oldlog or something... Makes for individual logs each session, and I guess I could tar and bzip them to save some space...

But is there a better way? anyone have any ideas?

Thanks in advance

MrWhite
 
Old 12-06-2004, 05:08 PM   #2
hostprotect
Member
 
Registered: Nov 2004
Posts: 56

Rep: Reputation: 15
what about exporting all the logs to a remote machine ?
 
Old 12-06-2004, 08:07 PM   #3
mr666white
Member
 
Registered: Jun 2004
Location: Leeds, England
Distribution: Gentoo, IPCop
Posts: 54

Original Poster
Rep: Reputation: 15
That's not too attractive, the laptop needs to run independantly of network connections.
 
  


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
suspicious entry in /var/log/auth.log buehler Linux - Security 5 04-27-2005 05:11 PM
Deleted /var/log/messages, can't log any files-iptables chingyenccy Linux - Newbie 7 02-27-2005 04:03 PM
Strange results in /var/log/apache/access.log subt13 Linux - Security 2 08-03-2004 01:21 PM
pppd logging to /var/log/ppp.log problem mrtwice Linux - Software 1 01-10-2004 05:38 PM
iptables, changing log file from /var/log/messages acid2000 Linux - Networking 3 03-11-2003 08:38 PM


All times are GMT -5. The time now is 02:28 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration