No Space Left on Device, but device has tons of space.... CONFUSED!!

When I type my "mail" command i get

/tmp: No Space Left On Device

I've ran the following commands and here's what I get:

[root@board tmp]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda8             494M  108M  360M  23% /
/dev/sda3              23M  4.7M   16M  22% /boot
none                  502M     0  502M   0% /dev/shm
/dev/sda9              61M  4.1M   53M   8% /tmp
/dev/sda5              19G  1.8G   15G  10% /usr
/dev/sda7              11G  5.4G  5.2G  51% /var
/dev/sda2            1011M  237M  723M  25% /home

[root@board tmp]# df -i
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/sda8             130560   18850  111710   15% /
/dev/sda3               6024      42    5982    1% /boot
none                  128554       1  128553    1% /dev/shm
/dev/sda9              16064     330   15734    3% /tmp
/dev/sda5            2480640   91679 2388961    4% /usr
/dev/sda7            1488032  240166 1247866   17% /var
/dev/sda2             131616    9974  121642    8% /home

Any ideas?

Who is Participating?
da99rmdConnect With a Mentor Commented:
so you mean that 104 MB would fit on this post :)
>/dev/sda9              61M  4.1M   53M   8% /tmp

check man for mail and try moving the temp dir of mail to another dir with the space required.
or empty the mail file befor manually with an text editor.

cp  /var/spool/mail/<username> /var/spool/mail/<username>.bak
vim /var/spool/mail/<username> #and remove som old mails for example mail with attacjments, you have the backup left.

Hi sneidig,
how big is your mail file ?

otherwise run a fsck to solve the problem can e som filesystem inconsistency.

sneidigAuthor Commented:

sneidigAuthor Commented:
Whats the easist way to clean out this file?
sneidigAuthor Commented:
Ok, i got it fixed. I just kept removing mail until i was able to access the mail command.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.