[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: FW: softlink/hardlink



Quoting Holp, John Mr. (holpj@nwc.navy.mil):

> 	ls -li vmlinuz			while at 	/	(root)
> I get the following
> 
> 12	lrwxrwxrwx	1	root	root	19 Jan 18	08:05
                        ^
a hard link would increase this number...

> vmlinuz -> boot/vmlinuz-2.2.17
> 
> To me this means that vmlinuz is a soft link pointing to
> boot/vmlinuz-2.2.17
> 
> 	But when I do a ls -li /boot/vmlinuz-2.2.17	I get the following
> 
> 12	-rwxrwxrwx	1	root	root	1042807  Jan 18  08:05
                        ^
... and this number.

> /boot/vmlinuz-2.2.17
> 
> 
> Here is my confusion, I thought only hard links used the same inode
> number?  Note that both are using inode 12.

Are they on different filesystems? Inode numbers are only unique
to each filesystem.

$ ls -lid /lost+found/ /usr/lost+found/ /var/lost+found/ /tmp/lost+found/ /home/lost+found/
     11 drwxr-xr-x    2 root  root  12288 Jul  5  1999 /home/lost+found/
     11 drwxr-xr-x    2 root  root  12288 Jul 25  2000 /lost+found/
     11 drwxr-xr-x    2 root  root  12288 Jul 25  2000 /tmp/lost+found/
     11 drwxr-xr-x    2 root  root  16384 Jul 25  2000 /usr/lost+found/
     11 drwxr-xr-x    2 root  root  16384 Jul 25  2000 /var/lost+found/

Cheers,

-- 
Email:  d.wright@open.ac.uk   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.



Reply to: