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.
One day when I started my Mandrake 2005 Limited Edition system it displayed loads of strange HD errors. (Sorry, can't recall them). I restarted immediately. After this my root-partition had 0 mb space left (I had about 700 before). I tried running fsck but it did not help. After some search I found a file kalled "kcore" in the directory /proc. It was 1200 mb big and I am pretty certain it was not there before. So I tried to remove it, but nothing helps. I have all write-rights, I am root and owner of the file. However, every time when I use "rm kcore" it says "Could not remove "kcore" : Operation not permitted". What shall I do with it? I removed some programs which I did not needed and now I have 200 mb free on the root-partition, but I really need the rest of the space back. Any ideas?
Ah, I didn't know that. But what could cause the loss of data then? What is taking it up?
Also, something must be wrong with it anyway, since there is no way my 256 mb ram could hold a 1020 mb file.
The HDD errors were probably caused by the full disk, so you probably won't have anything to worry about after you remove some of the junk that is on it.
Check out the du command. Specifically, you will want to start at / and run the following:
Code:
du -h --max-depth 1 ./
This will give you show you the size of all directores below the current one. From there, start going through the big directories in your structure to narrow down where your disk space went. After cleaning up some stuff, you should be back in business.
Directories such as /proc, /ksyms, /kcore, /sys and so-on are virtual. They do not physically exist and do not correspond to any disk or other resource. Rather, they are a figment of the kernel's imagination.
The /proc "filesystem," for instance, gives you a picture of the processes that are running right now. You can read from these "files," and in some cases can write to them, to see or change various settings.
This is far more elegant than having some complicated application-program interface (API) to get and retrieve kernel settings. The kernel simply exposes them as "files."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.