Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Cloud Shell `No space left on device` even though disk not full?

I am trying to replace my local development machine with Google Cloud Sheel. When running yarn on Cloud Shell, the system says I am out of space. But df tells me there is lots of space remaining (only 68% used on /home)

@cloudshell:~/***$ df
Filesystem                        1K-blocks     Used Available Use% Mounted on
overlay                            62742040 43483680  19241976  70% /
tmpfs                                 65536        0     65536   0% /dev
tmpfs                               8200748        0   8200748   0% /sys/fs/cgroup
/dev/disk/by-id/google-home-part1   5028480  3229288   1520716  68% /home
/dev/sda1                          62742040 43483680  19241976  70% /root
/dev/root                           2006736  1012260    994476  51% /lib/modules
shm                                   65536        0     65536   0% /dev/shm
tmpfs                               8200748      904   8199844   1% /google/host/var/run
user@cloudshell:~/**$ pwd
/home/user/***
user@cloudshell:~/***$ mkdir test
mkdir: cannot create directory ‘test’: No space left on device

Am I missing something? Why does the system say out of space when there is 32% left?

like image 591
jones Avatar asked Nov 04 '25 08:11

jones


1 Answers

According to the Cloud Shell documentation:

Cloud Shell provisions 5 GB of free persistent disk storage mounted as your $HOME directory on the virtual machine instance.

...

If you encounter a no space left on device error, you'll need to remove files from your home directory using the Cloud Shell terminal to free up space.

So it is possible that when it reaches a certain threshold of disk usage that message will pop up.

like image 76
llompalles Avatar answered Nov 07 '25 14:11

llompalles



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!