Solved

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

Posted on 2004-08-16
5
338 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
  • 3
  • 2
5 Comments
 
LVL 8

Expert Comment

by:da99rmd
Comment Utility
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
Comment Utility
104M

0
 
LVL 8

Accepted Solution

by:
da99rmd earned 500 total points
Comment Utility
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
Comment Utility
Whats the easist way to clean out this file?
0
 

Author Comment

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

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now