Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Background on this issue: I, in a fit of stupidity, deleted all files in the /var/log folder due to it filling up all the time and me ending with 100% full hard drive. I am running this computer simply as a router (dhcp, shorewall), and my 300gb hard drive keeps filling up (with no reason, as I have no programs running that [i think] would fill up the log folder [anymore...]).
Also, these commands were run within one day of restarting. When I shutdown initially it told me it was 100% full, and upon restart it claimed 61%. At the time of writing, it now claims to be 86% full (due to *HUGE* log files, that are now in the /var/log folder, so that will explain about 90gb of difference in size between the first and last command seen here... I am working on figuring out how to use logrotate to limit log file size, because that was the initial problem I tried to fix [by rm -rf /var/log/*] and is still an issue). But, the problem I am asking about here is where are the hidden ~200gb?
root@sloan:/# du -sh *
4.2M bin
15M boot
0 cdrom
656K dev
7.1M etc
9.7M home
0 initrd.img
68M lib
16K lost+found
8.0K media
8.0K mnt
4.0K opt
du: cannot access `proc/3917/task/3917/fd/3': No such file or directory
du: cannot access `proc/3917/task/3917/fdinfo/3': No such file or directory
du: cannot access `proc/3917/fd/3': No such file or directory
du: cannot access `proc/3917/fdinfo/3': No such file or directory
0 proc
92K root
3.6M sbin
4.0K selinux
4.0K srv
0 sys
20K tmp
2.2G usr
2.2G var
0 vmlinuz
root@sloan:/# du -h / | grep ^[1-9][0-9][0-9][0-9.]*G | sort -rn
du: cannot access `/proc/5101/task/5101/fd/3': No such file or directory
du: cannot access `/proc/5101/task/5101/fdinfo/3': No such file or directory
du: cannot access `/proc/5101/fd/3': No such file or directory
du: cannot access `/proc/5101/fdinfo/3': No such file or directory
root@sloan:/# du -h / | grep ^[1-9][0-9][0-9.]*G | sort -rn
du: cannot access `/proc/5039/task/5039/fd/3': No such file or directory
du: cannot access `/proc/5039/task/5039/fdinfo/3': No such file or directory
du: cannot access `/proc/5039/fd/3': No such file or directory
du: cannot access `/proc/5039/fdinfo/3': No such file or directory
root@sloan:/# du -h / | grep ^[1-9][0-9.]*G | sort -rn
du: cannot access `/proc/5070/task/5070/fd/3': No such file or directory
du: cannot access `/proc/5070/task/5070/fdinfo/3': No such file or directory
du: cannot access `/proc/5070/fd/3': No such file or directory
du: cannot access `/proc/5070/fdinfo/3': No such file or directory
6.8G /
4.5G /var
3.1G /var/log
2.2G /usr
1.4G /usr/share
1.2G /var/cache/apt
1.2G /var/cache
1.1G /var/cache/apt/archives
Disk /dev/hda: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x775db1dc
Device Boot Start End Blocks Id System
/dev/hda1 * 1 48551 389985876 83 Linux
/dev/hda2 48552 48641 722925 5 Extended
/dev/hda5 48552 48641 722893+ 82 Linux swap / Solaris
Changed permissions for /tmp to 777, I'll see if that helps any (it did allow me to finally check my mail, which was particularly nice to see stuff from back in October when the error first started).
And I checked inodes just now too... definitely didn't help:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.