[Solved] How to prevent /tmp partition from becoming full

Raspberry Pi 2

[Solved] How to prevent /tmp partition from becoming full

Postby MrFrety » Mon Mar 09, 2015 7:52 pm

Hi!
I am trying to install Diaspora on a Raspberry Pi 2. I have met the prerequisites in this guide (https://wiki.archlinux.org/index.php/Diaspora). Now I'm trying to install diaspora-mysql using packer.
The following problem occured: No space left on device.
I ran df -h and found out that the /tmp partition is full. I rebooted to clear the partition and tried again but the disk usage of tmp rised again to 100%.
How can I prevent that? Should I install the AUR package manually so that the process writes in to a build folder instead of /tmp?

Many thanks!
Last edited by MrFrety on Mon Mar 09, 2015 10:07 pm, edited 1 time in total.
MrFrety
 
Posts: 12
Joined: Thu Feb 26, 2015 9:48 pm

Re: How to prevent /tmp partition from becoming full

Postby WarheadsSE » Mon Mar 09, 2015 7:59 pm

Is /tmp mounted as tmpfs?

Also, see manual for packer.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6764
Joined: Mon Oct 18, 2010 2:12 pm

Re: How to prevent /tmp partition from becoming full

Postby MrFrety » Mon Mar 09, 2015 9:24 pm

Yes, filesystem is tmpfs. Can't find anything on the manual related to a working directory.
Meanwhile I created a swap file but packer doesn't write to it. (>100MB RAM left during process)
MrFrety
 
Posts: 12
Joined: Thu Feb 26, 2015 9:48 pm

Re: How to prevent /tmp partition from becoming full

Postby MrFrety » Mon Mar 09, 2015 9:29 pm

Oh, I found something in the man about packer configuration. :roll:
Last edited by MrFrety on Mon Mar 09, 2015 10:16 pm, edited 1 time in total.
MrFrety
 
Posts: 12
Joined: Thu Feb 26, 2015 9:48 pm

Re: How to prevent /tmp partition from becoming full

Postby MrFrety » Mon Mar 09, 2015 10:05 pm

Now I temporarily changed TMPDIR variable according to this wiki site (https://wiki.archlinux.org/index.php/Environment_variables) using this command:
Code: Select all
env TMPDIR=~/build packer -S diaspora-mysql


I think it will work because root partiton is now shrinking instead of tmp. (which would still be full anyway)
THX. :D Will mark as solved.
MrFrety
 
Posts: 12
Joined: Thu Feb 26, 2015 9:48 pm


Return to Broadcom

Who is online

Users browsing this forum: No registered users and 1 guest