|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Unreviewed How To and FAQ POST HERE: Tips and solutions for SUSE Linux from the community. (Please do not post questions) |
![]() |
|
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Just a little comment.
If you choose to clear /tmp at bootup and /tmp is the only directory to be cleared, setting MAX_DAYS_IN_TEMP is rather useless or can be even dangerous if you only set it to 1 day. If there are temporary files which are needed for a longer time (no, I don't have an example at the moment) which will be automatically cleared after 1 day and some application still wants to access that file later => problem. Leaving the default value (5 days IIRC //Edit: actually it's 0 = don't clean automatically) is the safer way, still everything will be cleared up on next boot.
__________________
“Never attribute to malice that which can be adequately explained by stupidity.” (R.J. Hanlon) |
|
|||
|
Never had a problem doing this. I'm actually running /tmp in RAM so that it is fast, secure, and completely purged at shutdown. Nothing is stored onto HDD. In addition I lock down /tmp for additional security.
There are some interesting suggestions, including how to make /tmp a RAM-based filesystem, here: Hardening a Linux or OpenBSD Installation |
|
|||
|
suezuh thank you for that link. I will give the /tmp in RAM a try.
Cheers |
|
|||
|
You're welcome. Just for example, here's my fstab entry:
none /tmp tmpfs rw,noexec,nosuid,nodev,noatime,nodiratime,size=200 M 1 2 The max size of /tmp in my RAM is set at 200 megs. Set it to whatever you need. The actual size varies in RAM depending on system requirements. Firefox cache is also set to run in /tmp, and therefore in RAM. I've set that to 50M. |
|
|||
|
> none /tmp tmpfs
> rw,noexec,nosuid,nodev,noatime,nodiratime,size=200 M 1 2 oh no! does a tmpfs automatically run in RAM?? i failed to note that. to force /tmp clearing at boot, and following a long ago seen post, i set my fstab to: none /tmp tmpfs auto,nodev,noexec,noatime 0 0 *without* your size limits...how does it know how much RAM it can use...or, can it FILL the RAM??? hmmmm, it has been running for months like that (rebooting after overnight shutdown to conserve energy)...should/must i change to caf4926's way??? -- Andy Sipowicz |
|
|||
|
Read "man mount" (search for tmpfs if you don't want to read all of it).
__________________
“Never attribute to malice that which can be adequately explained by stupidity.” (R.J. Hanlon) |
|
||||
|
Some data is saved to /tmp
ie; say you copy a dvd and create image only. the .iso is stored in /tmp/kde-*username With a default install that will stay there forever. I'm not sure have using /tmp to RAM would be affected by a .iso like that? I set mine to 1day But it seems users have different ideas.
__________________
Box: openSUSE 11.2 | (KDE4.3.3) | M2N4-SLI | AMD 64 X2 5200+ | nVidia 8500GT | 4GB RAM Lap: openSUSE 11.2 | Celeron 550 | (KDE4.3.3)"3" | Intel 965 GM | Lenovo R61e | 3GB RAM |
|
|||
|
does a tmpfs automatically run in RAM??
Yes. *without* your size limits...how does it know how much RAM it can use...or, can it FILL the RAM??? By default, it uses up to half. hmmmm, it has been running for months like that (rebooting after overnight shutdown to conserve energy)...should/must i change to caf4926's way??? Do it any way you'd like. |
|
||||
|
I set this up 2 days ago and so far I have no problems other than a slightly longer boot time due to the files being removed and more disc space
![]() I had about 4 Gb of temporary files apparantly. Probably the last DVD I 'backed up' with K9copy.
__________________
Lord Flasheart: Always treat your plane like you treat your woman. Lieutenant George: Take her home at the weekend to meet your mother? Lord Flasheart: No, get inside her five times a day and take her to heaven and back! |
![]() |
|
| Bookmarks |
| Tags |
| /tmp directory, clear temp |
| Thread Tools | |
| Display Modes | |
|
|