Solved

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

Posted on 2004-08-16
5
350 Views
Last Modified: 2010-04-20


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?

Thanks
0
Comment
Question by:sneidig
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 8

Expert Comment

by:da99rmd
ID: 11812123
Hi sneidig,
how big is your mail file ?
/var/spool/mail/<username>

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

/Rob
0
 

Author Comment

by:sneidig
ID: 11812160
104M

0
 
LVL 8

Accepted Solution

by:
da99rmd earned 500 total points
ID: 11812243
sneidig,
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.



/Rob
0
 

Author Comment

by:sneidig
ID: 11812571
Whats the easist way to clean out this file?
0
 

Author Comment

by:sneidig
ID: 11813003
Ok, i got it fixed. I just kept removing mail until i was able to access the mail command.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question