LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   No space left on device (http://www.linuxquestions.org/questions/linux-newbie-8/no-space-left-on-device-766960/)

pinga123 11-04-2009 11:32 PM

No space left on device
 
Hi guys whenever i execute any command i get above mentioned error .
Please help
following is the output of df command but i dont know which file to delete to free up the space.
Code:

[root@OVM-SERVER-1 running_pool]# df
Filesystem          1K-blocks      Used Available Use% Mounted on
/dev/sda5              3050060  3049980        0 100% /
/dev/sda1              101086    45724    50143  48% /boot
tmpfs                  278100        0    278100  0% /dev/shm
10.180.45.151:/nfs_share
                      71482688  24082144  43710848  36% /var/ovs/mount/93B14928C7A6438284753B2F2AB197BB


evo2 11-05-2009 12:08 AM

Most likly there is something very large in /tmp

Have a look with the following command:

ls -lhrS /tmp

This will list all the files in order of size. If you are running an apt based distro and have recently upgraded you can clean out the downloaded package files using:

apt-get clean

If the above don't help. Report back an I can give you some ways to track down large files.

Cheers,

Evo2.

Wim Sturkenboom 11-05-2009 01:47 AM

The command that gives the used space is du
Code:

root@btd-techweb01:~# du -h --max-depth=1 /
5.5M    /bin
314K    /dev
8.9M    /etc
21M    /lib
2.5K    /mnt
9.2M    /opt
135K    /tmp
512    /sys
1.9G    /var
1.8G    /usr
3.1M    /boot
926M    /home
258M    /proc
11M    /sbin
1.8M    /root
16M    /server
4.9G    /
root@btd-techweb01:~#

Next you can iterate through the big directories.


All times are GMT -5. The time now is 11:10 PM.