List Info

Thread: relocating /tmp to other media




relocating /tmp to other media
user name
2005-11-07 19:08:34
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/~r
smith/) Please send e-mail as plain text.
public key: http://www.xs
4all.nl/~rsmith/pubkey.txt
relocating /tmp to other media
user name
2005-11-07 19:12:09
2005/11/7, Rolannessto <rsmithxs4all.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/~r
smith/) Please send e-mail as plain text.
> public key: http://www.xs
4all.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
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )