Ask Your Question

I keep running out of tmpfs when trying to install Android SDK component.

asked 2016-04-19 12:15:15 -0600


I am trying to update Android N's system image but I keep running out of tmpfs space. How do I resolve it?


image description

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2016-04-19 19:57:44 -0600

sergiomb gravatar image

updated 2016-04-20 01:53:38 -0600

you may disable tmpfs [1] , or change tmp to /var/tmp


I understood the problem is /tmp with tmpfs just have capacity of 2GB, if you need more you have to disable tmpfs on /tmp or change tmp dir of android studio

edit flag offensive delete link more


Could you please explain what that does? I feel like there's something fishy in Android SDK. The image it is trying to install shouldn't take up 4GB to unarchive.

sudhirkhanger gravatar imagesudhirkhanger ( 2016-04-19 22:19:49 -0600 )edit

It means, that tmpfs is only in RAM of your PC. It takes about 50% of RAM amount. It is very small to do installation with this /tmp directory. So you need modify your /etc/fstab to avoid using tmpfs.

mrTuborg gravatar imagemrTuborg ( 2016-04-20 06:59:17 -0600 )edit

Cool. I have filed a bug report against Android Studio as I am not sure why 4GB is not enough for it. If they don't make any progress I will think about disabling tmpfs.

sudhirkhanger gravatar imagesudhirkhanger ( 2016-04-20 07:20:48 -0600 )edit

It is not a bug :) All modern Linux distro keep tmp directory in RAM, but Android Studio I think looking more in old-fashioned distribution like Debian and Ubuntu. So, I think they have option to change default /tmp dir on something else, like it was said by @sergiomb

mrTuborg gravatar imagemrTuborg ( 2016-04-21 03:22:55 -0600 )edit

answered 2016-07-20 04:24:25 -0600

harald gravatar image

I just added


at the top of and everything works as expected now.

edit flag offensive delete link more


thanks, you saved me a lot of time

evillagr gravatar imageevillagr ( 2018-01-16 19:37:10 -0600 )edit

Question Tools

1 follower


Asked: 2016-04-19 12:15:15 -0600

Seen: 4,361 times

Last updated: Apr 20 '16