Re: why it has the hard links?



Please don't top-post.

On 2007-04-24, Stephen SM WONG <wongsm@xxxxxxxxxxxxxx> wrote:
If you want to remove sensitive information from your hard
disk, you better follow those CIA/FBI/NSA data destroy
standards! Deleting a file from a Unix filesystem is
nothing more than marking some disk sectors free for reuse!
Rewriting a file on a journal file system will not overwrite
old data immediately. And CIA/FBI/NSA are believed to be
able to recover data from hard disk eventhough those sectors
are rewritten.

I am aware of all of the above. What if (say) all I want to do is make
sure that no hard links exist to a potentially confusing config file for
some daemon that I'm no longer running? Sure, I could look in every
obvious place for said file, but what if I forget one?

Anyway, if you want to find all hard links, you can use
"-inum" with "find". Of you can use "-samefile" to find
both hard and soft links.

I am aware of finding a file by inode with find. Running such a command
on a 2TB filesystem would be frustrating, to say the least. locate
could help in this instance, but it's still no assurance that I've found
every link to a given inode. Thus (bringing the thread back a little
bit) one reason why I tend to use symlinks more often than hard links
(though obviously if someone else has created a hard link I'm still
b0rked).

--keith

--
kkeller-usenet@xxxxxxxxxxxxxxxxxxxxxxxxxx
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

.



Relevant Pages

  • Re: why it has the hard links?
    ... you better follow those CIA/FBI/NSA data destroy ... nothing more than marking some disk sectors free for reuse! ... sure that no hard links exist to a potentially confusing config file for ...
    (comp.os.linux.misc)
  • Re: hard links and symbolic links
    ... > "One big advantage of hard links is that they don't use any disk ... A symbolic link is implemented as a file containing the name of the ... The size of a symlink is related to the length of the name of the ...
    (comp.unix.shell)
  • Re: [opensuse] Another back-up question - Over & over again
    ... I thought the task was to replicate a file system from one disk ... from one disk to the same disk after repair - but I don't ... differentiate them from symlinks. ... hard links are not special entities. ...
    (SuSE)
  • Re: [9fans] Q: moving directories? hard links?
    ... absolutely requires hard links? ... A file system would be an ideal way to represent the data, ... Not a disk FS, just a naming FS. ...
    (comp.os.plan9)
  • Need copy tool for heavily hardlinked disk
    ... I need a fast hard disk copy tool, ... I have a hard drive partition with 170GB of data in it. ... has an enormous number of hard links in it, ...
    (Fedora)