[Leaplist] moving /var/
Kevin Korb
kmk at sanitarium.net
Mon Feb 8 14:56:57 EST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
That is how I setup my netbook with a crappy SSD. /tmp is a large tmpfs
with /var/tmp symlinked to it. /var/run, /var/locks, and /var/log are
all fairly small tmpfs mounts. I was originally going to just /dev/null
most of the logging but then I decided that was too much of a PITA if I
ever needed to debug something. This way I still have logging it just
doesn't survive a reboot.
On 02/08/10 12:55, Richard F. Ostrow Jr. wrote:
> 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
>>
>
>
- --
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
Kevin Korb Phone: (407) 252-6853
Systems Administrator Internet:
FutureQuest, Inc. Kevin at FutureQuest.net (work)
Orlando, Florida kmk at sanitarium.net (personal)
Web page: http://www.sanitarium.net/
PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAktwbIgACgkQVKC1jlbQAQdRqgCg+b+Si3PffVi25IvQqrY+pGuf
rNcAoIZilHrzUVarrZSWwMZLgLcxEEcg
=l3QT
-----END PGP SIGNATURE-----
--
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