DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-04-19 01:34:07

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Symlink /tmp directory?

Hi,

during compiling of some applications I ran into the problem that the compiler would write temp files to /tmp, which is located on the NAS' ramdisk and hence very small (10MB). On 2 occasions compilation could not be completed because there was no space left.

Is it possible to redirect the compiler to a different temp-dir?
Or is there a safe way to symlink the original /tmp to somewhere else? I'm reluctant to try, as there are multiple files in /tmp which seem important to the device.

Offline

 

#2 2008-04-19 07:46:15

jdoering
Member
Registered: 2008-04-10
Posts: 95

Re: Symlink /tmp directory?

I hit the same think (compiling cmake); I just copied the /tmp files to a new disk location and symlinked briefly to compile; may not be "safe" so I didn't do anything else with the box while compiling and restarted right after (my concern was open file handles and such)...

It's very easy to compile lsof (http://people.freebsd.org/~abe/) for the 323 then it's easy to see if running processes have open handles to /tmp.

-Jeff

Offline

 

#3 2008-04-19 15:11:32

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Symlink /tmp directory?

Often, setting TMPDIR and/or TEMPDIR in the environment helps.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB