[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Konqueror to inform about hard links?
From: Christoph <chris () inferno ! nadir ! org>
Date: 2008-08-30 23:07:25
Message-ID: 200808310107.25623.chris () inferno ! nadir ! org
[Download RAW message or body]
Hi Mac,
On Friday 29 August 2008 10:03:06 macintoshzoom wrote:
> Scenario:
> As I got out of space when try ¡ng to install a new kde, I just
> discovered that my /usr (separately created OpnBSD fs) partition has
> some GB of duplicate files, as Konqueror (su) says.
So you find a file in /usr and want to delete it but another hard link points
to the same inode so you don't earn more space when deleting the file. That
is your problem ? This might be the answer:
make a "stat" on the file you want to delete:
chris@teZ7i:~$ stat /usr/big_file
File: `/usr/big_file'
Size: 0 Blocks: 8 IO Block: 4096 regular empty file
Device: fe01h/65025d Inode: 243617 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2008-08-31 01:04:10.000000000 +0200
Modify: 2008-08-31 01:04:10.000000000 +0200
Change: 2008-08-31 01:04:10.000000000 +0200
The Inode of this file is 243617. All you have to do now is
to find every other file pointing to the same inode. (this is what hard-links
are).
So find to your rescue:
find /usr -inum 243617
Delete all found files and you get the space you wanted.
Best regards,
Christoph
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic