Re: How to prevent /tmp files from being deleted at reboot
On Sun, Jul 10, 2016 at 03:32:12PM +0200, Linux-Fan wrote:
> [Sat, 9 Jul 2016 23:16:29 +0200] MI <mi.lists.debian@alma.ch> wrote:
> > > IMO: If you have a program that relies on files or directories
> > > in /tmp being persistent, then that program is buggy, not Debian.
> >
> > It's not a program. It's just me, mostly while setting up and testing
> > a fresh system, which may need frequent reboots.
>
> ...but may I suggest you to use `/var/tmp` as a workaround?
> `/var/tmp` is a persistent alternative to `/tmp`.
>
> HTH
> Linux-Fan
I set the following link (in single user mode):
– – – – – – – – – – –
rm -rf /tmp
chmod 1777 /var/TMP
ln -s /var/TMP /tmp
Additionly I altered /etc/default/rcS:
# TMPTIME=0
TMPTIME=8
– – – – – – – – – – –
So far, my system seems to be running smoothly; (with MANY reboots a day
as I am trying out a cohabitation of my favourite old 'icewm' with Debians
chosen xfce4-wm.)
My oldest files and directories in '/tmp' date from july 31.
(Hoping my answer won't be redundant, as only skimmed my mails in a rush.)
Regards Wilko
Reply to: