I am getting a no space left on device error

16,104

Solution 1

Clearing the temporary folder worked for me...

sudo rm -rf /tmp/*

Solution 2

You can increase available space in tmp by doing remount instead of "rm -rf" :

mount -o remount,size=8G,noatime /tmp
Share:
16,104
Sharang Gupta
Author by

Sharang Gupta

I'm currently pursuing my MSc in Computer Science from University of Southampton, and have over 3 years of professional work experience as a python developer and a full stack developer

Updated on June 13, 2022

Comments

  • Sharang Gupta
    Sharang Gupta almost 2 years

    I tried installing a tablet as a virtual device and after installing it , It does not even show and my gradle stopped syncing citing no space on device...

    Also I could not get the gradle vm settings to increase the memory using the option -Xmx512m

    I could not delete the virtual device as it does not show any as intsalled , i cannot add as it shows no image available and the standalone sdk manager also does not open saying lack of memory...

    I have a lot of disk and RAM free , and am at a loss...

    I tried invalidating cache and restarting , that didnt help either... Any help will be appreciated...

    OS : Solus Android Studio Version : 2.2

  • nurettin
    nurettin about 6 years
    That potentially erases lock files, PID files, socket files and so on.
  • insign
    insign over 5 years
    Not sure how erase temp can make damages but it workd for me.
  • insign
    insign over 5 years
    Looks a nice idea to avoid it happen again.
  • Akito
    Akito over 3 years
    No idea why, but this helped! Don't know why it needed /tmp....