On Friday 06 January 2006 21:26, Anders Johansson wrote:
On Saturday 07 January 2006 07:53, kanenas@hawaii.rr.com wrote:
The files showed deleted, but df showed hardly any free space. somehow, about 15-20 gb of space had gone missing!!!!
I'm not familiar with the details of lxdvdrip, but there is one thing that might have happened that could explain things. A file in linux is defined by its hard links. A hard link, briefly put, is an entry in a directory. A file has at least one, and can have several. When you run "rm" on a "file" what you are really doing is deleting a hardlink pointing to the file. But the file isn't really deleted until the last hardlink pointing to it is gone.
So for example
touch /tmp/foo ln /tmp/foo /tmp/fubar
The file now has two hardlinks pointing to it.
rm /tmp/foo
will remove one of them, but the actual file (in this case empty, but still) is still there, since /tmp/fubar still points to it
If you do
ls -l /tmp/foo
before you run the rm, you will see something like
-rw-r--r-- 2 user group 0 2006-01-07 08:24 /tmp/foo
The "2" after the permissions is the count of hardlinks pointing to that file Thanks for the comment Anders. Fyi, while booted on the rescue cd I switched to /tmp in sda2 and ran
. Shouldn't that have cleared everything? Also, is there anything else I can try before reformatting?