When using the tab bar i keep getting this error message

bash: cannot create temp file for here-document: No space left on device"

Where do you see any good ideas for this?

I have been doing some research, and many people talk about the /tmp file, which might be having some overflow. When I execute df -h I get.

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2       9.1G  8.7G     0 100% /
udev             10M     0   10M   0% /dev
tmpfs           618M  8.8M  609M   2% /run
tmpfs           1.6G     0  1.6G   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           1.6G     0  1.6G   0% /sys/fs/cgroup
/dev/sda1       511M  132K  511M   1% /boot/efi
/dev/sda4       1.8T  623G  1.1T  37% /home
tmpfs           309M  4.0K  309M   1% /run/user/116
tmpfs           309M     0  309M   0% /run/user/1000

It looks like the /dev/data directory is about to explode, however if i tip.

$ du -sh /dev/sda2
0   /dev/sda2

It seems empty

I'm new to debian and i really don't know how to proceed I used to typically access this computer with ssh Besides this problem i have several others with this computer, they might be related, for instance each time i want to enter my user using the gui (with root it works) i get.

Xsession: warning: unable to write to /tmp: Xsession may exit with an error

Best Answer


If anyone gets here with this error when their disk isn't full, be sure to check not just df but also df -i . There's a fixed number of inodes on a filesystem and every file needs one If you have just tons of small files, it's very easy for your filesystem to fill up with these small files while there's still plenty of space left on the drive when you run df .