Solved

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

Posted on 2004-08-16
5
343 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
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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.

813 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

11 Experts available now in Live!

Get 1:1 Help Now