LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 09-15-2005, 07:15 PM   #1
Imerion
Member
 
Registered: Dec 2004
Posts: 35

Rep: Reputation: 15
Bloated file which can't be removed...


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?
 
Old 09-15-2005, 07:38 PM   #2
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Rep: Reputation: 33
/proc is a virtual file system stored in RAM, so deleting it wont give you any more space on your hard-drive.
 
Old 09-15-2005, 09:05 PM   #3
Imerion
Member
 
Registered: Dec 2004
Posts: 35

Original Poster
Rep: Reputation: 15
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.
 
Old 09-15-2005, 09:54 PM   #4
TruckStuff
Member
 
Registered: Apr 2002
Posts: 498

Rep: Reputation: 30
For starters: http://www.google.com/search?q=%2Fproc%2Fkcore

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.
 
Old 09-15-2005, 10:37 PM   #5
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
Quote:
Originally posted by Imerion
there is no way my 256 mb ram could hold a 1020 mb file.
That's weird, because /proc/kcore is supposed to be a way to access your memory, and so should be the exact same size as your memory.
 
Old 09-16-2005, 09:44 AM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
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."
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Files removed from file system during Fedora Core Upgrade gryphonavocatio Linux - General 5 09-21-2005 12:27 PM
bloated? joshknape Mandriva 15 08-03-2005 03:57 AM
SuSE 9.2 seems to get bloated foxy123 SUSE / openSUSE 8 01-19-2005 09:30 AM
$#!% passwd file removed, how do I log in as root? BrianK Linux - General 6 08-19-2004 02:23 PM
Bloated Distros? shermang Linux - Distributions 16 09-08-2003 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration