relocating /tmp to other media

Dimitar Vasilev dimitar.vassilev at gmail.com
Mon Nov 7 19:12:10 GMT 2005


2005/11/7, Roland Smith <rsmith at xs4all.nl>:
> On Mon, Nov 07, 2005 at 01:54:29PM -0500, Dave wrote:
> > Hello,
> >    I'm trying to run bitdefender on a 5.4 system. It works fine up until /
> > fills up, i'm having it scan a 40 gb smb mounted windows share and when /
> > fills specifically /tmp bitdefender cores out. My / filesystem on this box
> > is i believe either 130mb or 256mb, and this issue does not occur when
> > scanning a 20 gb drive. I was wondering if it's possible to relocate /tmp
> > to other media ramdisk, tmpfs, or the like?
>
> If you have a partition with enough space (e.g. /usr); Create a
> directory /usr/tmp. Drop into single user mode and move everything from
> /tmp to /usr/tmp. Remove /tmp, and create a symlink /tmp to /usr/tmp.
>
> Roland
> --
> R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
> public key: http://www.xs4all.nl/~rsmith/pubkey.txt
If you have enough RAM, try also memfs for tmp.
However beware of zipbombs ;-)

--
Димитър Василев
Dimitar Vassilev

GnuPG key ID: 0x4B8DB525
Keyserver: pgp.mit.edu
Key fingerprint: D88A 3B92 DED5 917E 341E D62F 8C51 5FC4 4B8D B525


More information about the freebsd-questions mailing list