On Feb 11, 2008 12:51 PM, Brad Beyenhof <[EMAIL PROTECTED]> wrote:
> On Feb 11, 2008 11:49 AM, Ralph Shumaker <[EMAIL PROTECTED]> wrote:
> > James G. Sack (jim) wrote:
> > > Of course, if the target and link are (files only, not dirs) on the same
> > > filesystem, you can just use a hardlink. Maybe that's more like what you
> > > want?
> >
> > I don't know. What is the difference between a hard link and a soft one?
>
> A soft link (ln -s <source> <target>) is merely a pointer to a
> location in the filesystem. If the original file gets moved to another
> location, the link is broken.
>
> In contrast, a hard link (ln <source> <target>) is a pointer to a
> physical location on the hard disk. This allows multiple "files" to
> all point to exactly the same data on the disk. Any one of those files
> can be moved around wherever you want it, but they all still point to
> the original data. The data itself is not overwritten until the last
> hard link is removed. Also, hard links can only be created within the
> same partition as the source data.
Stress _hard links can only be created within the same partition_
Soft links can cross partition boundaries.
Also soft links can be made to directories, hard links can not.
carl
--
carl lowenstein marine physical lab u.c. san diego
[EMAIL PROTECTED]
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-newbie