[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian quirks?



In article <[🔎] Pine.HPP.3.95.960821105643.23713A-100000@gorina7.hsr.no>,
Vebjoern Forsmo  <vebjorn@hsr.no> wrote:
>> > Several programs seems to prefer /tmp over /var/tmp.
>> /tmp should probably be a symbolic link to var/tmp .
>
>I too thought about doing it this way, but I'm a bit unsure about what
>happens if the partition /var/tmp resides on can't be mounted? (Are there
>any important programs that depend upon /tmp?)

A nice solution is to boot into single user mode, umount /var, and
do the following:

mkdir /var/tmp
chmod 1777 /var/tmp
rmdir /tmp
ln -s /var/tmp /tmp

Now there is a /var/tmp directory. When you mount the real /var "over" it
you won't see it anymore but it will be there if /var can't be mounted.

The only thing you have to watch for is that you don't put any junk
in it when you are working with /var unmounted; you can't get to it
anymore to cleanup as soon as you have mounted the real /var over it.
(It _is_ an ideal place to hide stuff, though :))

Mike.
-- 
+   Miquel van Smoorenburg   + Cistron Internet Services +  Living is a     |
|  miquels@cistron.nl (SP6)  | Independent Dutch ISP     |   horizontal     |
+ miquels@drinkel.cistron.nl + http://www.cistron.nl/    +      fall        +



Reply to: