Change size of /tmp | yaourt no space left on device

This forum is for discussion about general software issues.

Change size of /tmp | yaourt no space left on device

Postby Evils » Mon May 04, 2015 1:38 am

Hi,

I always get the following error message when trying to install plex media server on my PogoPlug device through yaourt:

$this->bbcode_second_pass_code('', '/usr/lib/yaourt/pkgbuild.sh: line 176: cannot create temp file for here-document: No space left on device
')

looking into df -h revealed that my /tmp partition is only 60mb big while the spk downloaded through yaourt is already 90mb big, therefore it always fails at 59.xmb

Now normally I would go into my fstab and change the size of my /tmp partition, unfortunately with Arch Linux ARM, there's no such entry (actually, why?!).

So how can I change the size of my tmpfs?!

Thanks
Evils
 
Posts: 20
Joined: Fri May 01, 2015 2:36 am

Re: Change size of /tmp | yaourt no space left on device

Postby moonman » Mon May 04, 2015 3:02 am

Plex is in our repos
/tmp is in tmpfs (ram) so ypu can't change the size of it
You can mask it with systemctl mask tmp.mount so tmp will be on hdd
Yaourt has a setting where you can choose your temporary directory
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Change size of /tmp | yaourt no space left on device

Postby Evils » Fri May 15, 2015 4:05 am

I must have overseen it the first time, luckily the Arch Linux wiki gives a solution:

$this->bbcode_second_pass_quote('', 'T')he tmpfs can also be temporarily resized without the need to reboot, for example when a large compile job needs to run soon. In this case, you can run:
$this->bbcode_second_pass_code('', '# mount -o remount,size=4G,noatime /tmp')
Evils
 
Posts: 20
Joined: Fri May 01, 2015 2:36 am

Re: Change size of /tmp | yaourt no space left on device

Postby moonman » Fri May 15, 2015 5:12 am

If you have 16GB of ram that is fine. Otherwise you will need swap that is 4GB, which is worse than just masking tmp.mount
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Change size of /tmp | yaourt no space left on device

Postby Evils » Sat May 23, 2015 5:18 am

Well, if you look at the wiki page, you'll clearly see that I only copied the example.
Nevertheless, I only needed to raise it to 1GB and my swap file was big enough for that. Did the trick for me, though, what you said
$this->bbcode_second_pass_code('', 'systemctl mask tmp.mount') didn't work as it only created a symlink to /dev/null for that file and I couldn't find an option with packer to set the tmp directory.

I appreciate your answer and I'm sure it's the better solution, though the one I used and found seems easier and more universal without having to tweak with settings and such things
Evils
 
Posts: 20
Joined: Fri May 01, 2015 2:36 am

Re: Change size of /tmp | yaourt no space left on device

Postby moonman » Sat May 23, 2015 7:42 am

No worries.

After you mask it, you need to reboot. Now your /tmp is a regular directory.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am


Return to General

Who is online

Users browsing this forum: No registered users and 19 guests