Ben-Nes Michael wrote:
> Hi All
>
> I downloaded the new RedHat 6.2 iso from few sources.
> When I came this morning I found out that the image at my HD is much too
> big 850MB so I rm it.
> The problem was that the HD space left as it was before the delete.
>
Take it as a rule of thumb: You don't delete files in UNIX. You decrement
the
refrence count to them. The fact that the file may be deleted when
the refcount is 0, is not under your control.
Also, there are no files, so to speak. WHat you have on disk, is inodes,
which in the directory ( which is also an inode) attached to a name, what
you refer as the "filename". when some process open()s a file by name,
the inode is found on disk, and the refcount to it is incremented, and a
vnode is created in the RAM, and the refcount to it is incremeneted.
So:
You cannot assume you deleted a "file" (on-disk inode) unless you know
for sure all the in-memory vnodes refrencing that "file" are deleted, which
is
to themselfs, they also have a refrence count, ( in case of fork() and such
).
--ury
Ury Segal
[EMAIL PROTECTED]
>
> I tried to look for huge files with find -size but no luck.
>
> Any ideas ?
>
> --
> --------------------------
> Canaan Surfing Ltd.
> Internet Service Providers
> Ben-Nes Michael - Manager
> Tel: 972-6-6925757
> Fax: 972-6-6925858
> http://www.canaan.co.il
> --------------------------
>
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]