Solaris / OpenSolarisThis forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
What does it mean when u say, hard links cant cross file system. Do you mean we can make hardlinks when the source file is in UNIX and destination file is in NTFS file system? (in a dual boot)?
Hard links share the same inode (kind of like location on disk) which is confined to a certain file system. So your example of a source file on a unix partition and a destination file on a NTFS partition would need to be soft links.
Say a file starts at inode (sector) 4001 and ends at 5000. The file is "/export/home/john/mail.doc"
1. A hard link to "mail.doc" which is named "hardLinkToMail" contains the value: "4001".
2. A soft link to "mail.doc" which is named "softLinkToMail" contains the value: "/export/home/john/mail.doc".
In 1) the hard link can only point to the same disk. It can not point to another drive. All drives has an inode of value "4001", how can the hard link distinguish between all discs? Which drive's "4001" is it?
In 2) the soft link contains a string. The string can point to another filesystem on another drive, because the full path is specified