hard links - Re: [TriLUG] mkfs vs mke2fs

Tanner Lovelace lovelace at wayfarer.org
Fri May 14 11:16:49 EDT 2004


Jeremy Portzer said the following on 5/14/04 10:49 AM:
> Actually, now would be a good time to remember what we talked about last
> night about hard links.  Note that there is a "3" next to "root" in the
> the long listing.  This means that there are three (hard) links to the
> file.  I would guess that these files really are the same (hard
> linked).  The way to determine this for sure is to run "ls -li".

Interesting.  On the system I initially checked, all the links were
one and the inodes were different.   This was on a whitebox system.
I just now checked on my Mandrake 10.0 system and they are hardlinked.
Weird.

Whitebox:

% ls -li /sbin/mkfs.ext* /sbin/mke2fs
  325884 -rwxr-xr-x    1 root     root        32056 Dec 12 01:12 /sbin/mke2fs*
  325887 -rwxr-xr-x    1 root     root        32056 Dec 12 01:12 /sbin/mkfs.ext2*
  325888 -rwxr-xr-x    1 root     root        32056 Dec 12 01:12 /sbin/mkfs.ext3*

Mandrake 10.0:

% ls -li /sbin/mkfs.ext* /sbin/mke2fs
58720523 -rwxr-xr-x  3 root root 30668 Feb 26 03:54 /sbin/mke2fs*
58720523 -rwxr-xr-x  3 root root 30668 Feb 26 03:54 /sbin/mkfs.ext2*
58720523 -rwxr-xr-x  3 root root 30668 Feb 26 03:54 /sbin/mkfs.ext3*

So, there you go...

Cheers,
Tanner
-- 
Tanner Lovelace       | Don't move! Or I'll fill ya full of... little
lovelace at wayfarer.org | yellow bolts of light! - Commander John Crichton



More information about the TriLUG mailing list