[Leaplist] moving /var/

Richard F. Ostrow Jr. rich at warfaresdl.com
Mon Feb 8 12:55:56 EST 2010


Yes, but I wouldn't recommend it...

/var in general is frequently written to, and would burn out your
ssd/sdcard quicker than you may like. An alternative is to mount /var/run,
/var/lock, and /var/tmp to a tmpfs partition (in RAM). To do this, simply
run the following command:

for x in run lock tmp ; do
mount -t tmpfs none /var/$x
done

... or modify fstab as appropriate. Each of those directories are designed
to be wiped/invalid at startup, and the only app I've found that doesn't
like this is mysqld (which creates a folder in /var/run, which of course
disappears on reboot... easy to fix once noted, but annoying... should
perhaps write up a patch and send to mysql.org).

For /var/log, either don't bother logging if you're so concerned, continue
to log on a standard hard drive, or log to a remote machine. I wouldn't
recommend logging to flash.
On Mon, February 8, 2010 12:26 pm, Tom Foster wrote:
> or at least /var/log...
>
> can I move var onto an sdcard and mount it there without any problems?, or
> maybe just /var/log?
>
> what should I look out for?
> --
> signature mischievous: "heh, heh, heh"
> -tom
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> _______________________________________________
> Leaplist mailing list
> Leaplist at leap-cf.org
> http://lists.leap-cf.org/mailman/listinfo/leaplist
>


-- 
Life without passion is death in disguise


-----------------------------------------
This email was sent using SquirrelMail.
   "Webmail for nuts!"
http://squirrelmail.org/


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the Leaplist mailing list