Help~! Strange Disc Full ...running out of space...
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Help~! Strange Disc Full ...running out of space...
i have a linux box with RH9
recently i found that my linux box running out of space
# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 14143744 13467836 0 100% /
/dev/hda1 99043 9321 84608 10% /boot
none 62996 0 62996 0% /dev/shm
so i remove old backup file from this server, eat space around 2G ...
But when i recheck the disk space, still same !
0% free on /
it caused mysql server unable to start ... coz there is no free space to write
what should i do now ?
# cd /
#du -sh `ls`
4.6M bin
5.1M boot
420K dev
18M etc
545M home
4.0K initrd
54M lib
16K lost+found
4.0K misc
760M mnt
4.0K opt
du: `proc/4198/fd/3': No such file or directory
129M proc
5.9M root
12M sbin
1.3M tmp
4.0G usr
4.8G var
here i found a file named /var/log/bandwith, eat space 4G
so i deleted this file, and run again #du -sh `ls`
the result comes out :
Code:
# du -sh `ls`
4.6M bin
5.1M boot
420K dev
18M etc
545M home
4.0K initrd
54M lib
16K lost+found
4.0K misc
760M mnt
4.0K opt
du: `proc/4198/fd/3': No such file or directory
129M proc
5.9M root
12M sbin
1.3M tmp
4.0G usr
841M var
and i check the free space again :
Code:
# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 14143744 13440764 0 100% /
/dev/hda1 99043 9321 84608 10% /boot
none 62996 0 62996 0% /dev/shm
cd to /var/log and delete superfluent logfiles (and .tar.gz backups of logs). Do the same in /var/run and its subfolders. You may also want to take a look into /tmp.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.