1

My disk became full without me noticing it so I was unable to react. Now when I come to the login screen it loops and I assume this is due to the disk being full.

Pressing ctrl + alt + f1 gets me down to the command line. However I can't even rm -f anything because I get this error

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

I don't know what to do next? How can I delete anything to get back in my system?

4
  • 1
    please add output of df -h if that works. Commented Apr 3, 2019 at 12:32
  • 1
    You get that error when running rm, or instead of your prompt? In the former case, maybe you have some alias that tries to implement "recycle bin" functionality, you could try using /bin/rm explicitly. Commented Apr 3, 2019 at 12:45
  • I'm guessing that error appears when you use tab-completion and not while running rm, right? Commented Apr 3, 2019 at 14:01
  • 1
    I wanted to suggest the same as @Panki, from my experience this happens with tab-completion and full disk. Try to list files (with sizes) without tab-comletion ls -lh /some/dir and remove respective files the same way. I would look into /var/log/ first and maybe truncate some files (e.g. truncate -s0 /some/large/file) without removing them so you don't interrupt system services. Commented Apr 3, 2019 at 14:05

1 Answer 1

0

Boot the PC from a LiveUSB, access your primary drive, and then either delete files you don't need, or move files off to another storage device.

After you have solved the immediate issue, then you may wish to consider a method to monitor space available on a regular basis, perhaps with a tool like tmpreaper which can be configured to purge files older than x days in specific directories.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.