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

Colin Law clanlaw at gmail.com
Tue May 9 08:19:48 UTC 2023


On Tue, 9 May 2023 at 09:03, Bo Berglund <bo.berglund at gmail.com> wrote:
>
> /dev/nvme0n1p6           30G   28G     0 100% /   <== WHAT????
> ...
> /dev/nvme0n1p8          259G  215G   31G  88% /home
> ...
>
> My scripts run on thge home partition which is well below being full.
>
> What can have happened and how can I fix it?
>
> To mee it lokks like / should have 2G free, and also that it should not get into
> play since the operations are done on /home

I think the reason it is saying 100% is that Linux reserves some space
on each drive in case the system needs some, in order to prevent the
OS from crashing horribly.
It may be /tmp that is being written to.
I like ncdu for finding where space is being used up.  Install it if
necessary and run
sudo ncdu /
It will show you usage on a folder basis and you can step in to look
at lower levels. You need sudo if running on / otherwise it errors on
dirs it cannot read.

Colin




More information about the ubuntu-users mailing list