I've got some problem with my root directory.
As you know this directory has 1,8Gb of space (from df -h) and this is an issue for me because when i try to unrar (with unrar installed with ipkg) a big file, I get "No space left on device" error. In fact unrar uses the root directory like a tmp folder while it's in extracting process.
There is something that I can do to solve it?
Change home directory?
Add a new user that can access via ssh and that can use a custom home folder?
set TMPDIR environment variable to a free disk space path : (it works on MyBookLive and gzip)
MyBookLive:/CacheVolume# mkdir tmp MyBookLive:/CacheVolume# export TMPDIR=/CacheVolume/tmp MyBookLive:/CacheVolume# echo $TMPDIR /CacheVolume/tmp
Please confirm if it works for your WhiteLight
Nice try but sill not work for unrar. Now I'm trying to install gzip, but I've figured out that when I close my SSH session the TMPDIR variable is gone. In fact when I open a new session "echo $TMPDIR" doesn't print anything on standard output.
Normal, it's related to the current session, you need to restate the variable
Nope even with gzip.
There are 6 part of RAR and when I launch (after the export of TMPDIR)
Nothing happen. Seems that gzip doesn't work on rar part file and unrar only use home directory like temp.
Maybe I can try to make TMPDIR variable permantely? (I don't now know if could be a problem but for TMPDIR variable I've set /DataVolume/Public/Temp (Temp is a directory that already exists)
Thanks to bourgeoa, everything works out fine.
Seems that the TMPDIR variable must be exactly "/CacheVolume/tmp" or it won't works.
Now my problem is to make this variable permanent. I've tried to add into my .bashrc and .bash_profile the line "export TMPDIR=/CacheVolume/tmp" but in other session or after reboot when I type echo $TMPDIR nothing shows up. It's important for me to set this variable permanent because I launch my extracting process with "screen" so I can close my SSH connection without stop the process.
First : it seems you are on a MyBook Live. If it's the case can you restart the discussion in the good forum.
Second : I have googled "redirect tmp". The solution seems here
Hope it solves your Pb. Please post the result
I have got white light edition.
I'm not sure to mess up with my home folder location. The guide is for linux and is on /tmp folder that isn't part of my pb.
The problem is that my home directory is used like temp directory and I can't manage that. Today I'm trying to extract another 9 part archive and I've got the same pb (even with export TMPDIR). I can't figure out how to set a different directory for unrar maybe I can resize the mount of root partition.
This is my df -h
Filesystem Size Used Available Use% Mounted on /dev/md0 1.8G 276.8M 1.5G 15% / /dev/md3 949.6M 120.5M 780.8M 13% /var /dev/md2 928.3G 806.8G 121.5G 87% /DataVolume /dev/ram0 61.9M 12.0k 61.9M 0% /mnt/ram /dev/md2 928.3G 806.8G 121.5G 87% /shares/Download /dev/md2 928.3G 806.8G 121.5G 87% /shares/Public /dev/md2 928.3G 806.8G 121.5G 87% /shares/fabiomilano /dev/md2 928.3G 806.8G 121.5G 87% /shares/Personale
Is it possibile to resize the /dev/md0 size?
It's not on an other solution that making using $TMPDIR but on redirecting "/tmp" to "/DataVolume/tmp" with a symbolic link
mkdir /DataVolume/tmp chmod 777 /DataVolume/tmp ln -s /DataVolume/tmp /tmp
For now I've solved it with a script and cron.
The script export TMPDIR before it starts to extract and with cron everything is automatic (cause the rar part are downloaded with another process that is in background)
This week-end I won't be at home so it will be a good test. Hope the script won't let me in big trouble.
Thanks again for your time and patience.
PS: "/tmp" didn't bored me because the temporany file was extracted in /root (I saw them with ls -a during extracting process) and then moved into the destination folder.