<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Why isn&#8217;t it possible to create hard links across file system boundaries?</title> <atom:link href="http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: eric peyser</title><link>http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html#comment-174936</link> <dc:creator>eric peyser</dc:creator> <pubDate>Mon, 17 Oct 2011 18:55:11 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html#comment-174936</guid> <description>I may date myself here ----but --Unix beyond the magic garden--  was a great book.  It had alot of internals.  from FS and the internals to IPC and named/unnamed pipe info.  It helped me to understand what was behind the screen.   BTW article was great !!!!</description> <content:encoded><![CDATA[<p>I may date myself here &#8212;-but &#8211;Unix beyond the magic garden&#8211;  was a great book.  It had alot of internals.  from FS and the internals to IPC and named/unnamed pipe info.  It helped me to understand what was behind the screen.   BTW article was great !!!!</p> ]]></content:encoded> </item> <item><title>By: eric peyser</title><link>http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html#comment-174935</link> <dc:creator>eric peyser</dc:creator> <pubDate>Mon, 17 Oct 2011 18:51:18 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html#comment-174935</guid> <description>with what Franklin put forth,  go over the example again.  When spanning multiple FS you may encounter duplicate inodes.  On a single physical HD with multiple mount points most FS (that i know of) keep track of the data by drive.  the inodes are created in a incremental fashion.
-Eric Peyser</description> <content:encoded><![CDATA[<p>with what Franklin put forth,  go over the example again.  When spanning multiple FS you may encounter duplicate inodes.  On a single physical HD with multiple mount points most FS (that i know of) keep track of the data by drive.  the inodes are created in a incremental fashion.</p><p>-Eric Peyser</p> ]]></content:encoded> </item> <item><title>By: sumant</title><link>http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html#comment-171734</link> <dc:creator>sumant</dc:creator> <pubDate>Fri, 03 Jun 2011 19:34:09 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html#comment-171734</guid> <description>I want know about u have create a hardlink that time delete man hardlink file. then u have access that file or not tell me please</description> <content:encoded><![CDATA[<p>I want know about u have create a hardlink that time delete man hardlink file. then u have access that file or not tell me please</p> ]]></content:encoded> </item> <item><title>By: Mehdi (ATI/AMD Drivers)</title><link>http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html#comment-150091</link> <dc:creator>Mehdi (ATI/AMD Drivers)</dc:creator> <pubDate>Thu, 13 Aug 2009 10:25:48 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html#comment-150091</guid> <description>Thanks Babu,
I used different name and it worked.
I was testing to see why this 60 Gig hard drive does not mount on ts own while th cdrom0 and floppy0 loaded no problem!?
Thanks!</description> <content:encoded><![CDATA[<p>Thanks Babu,<br
/> I used different name and it worked.<br
/> I was testing to see why this 60 Gig hard drive does not mount on ts own while th cdrom0 and floppy0 loaded no problem!?<br
/> Thanks!</p> ]]></content:encoded> </item> <item><title>By: Babu Satasiya</title><link>http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html#comment-150085</link> <dc:creator>Babu Satasiya</dc:creator> <pubDate>Thu, 13 Aug 2009 05:13:18 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html#comment-150085</guid> <description>In general we create softlink for sortcut, If you already have file or folder name on current directory, why do you want same name softlink, it does not make sense to have duplicate softlink or even hardlink on same folder or in otherwords, directory maintains filenames and it requires uniq names you can not have duplicate names for given file in same folder.
if you are planing to create softlink from different partition or folder, it should not cause any problem.
Look at following example, I am creating data.txt to data.txt it gives error but when I tried data.txt to data1.txt, it works fine.
ln -s data.txt data.txt
ln: creating symbolic link `data.txt&#039;: File exists
ln -s data.txt data1.txt
ls -la data*.txt
lrwxrwxrwx 1 root root  8 2009-08-13 00:02 data1.txt -&gt; data.txt
-rw-r--r-- 1 root root 15 2009-08-12 23:53 data.txt
Hope this helps,
Babu Satasiya</description> <content:encoded><![CDATA[<p>In general we create softlink for sortcut, If you already have file or folder name on current directory, why do you want same name softlink, it does not make sense to have duplicate softlink or even hardlink on same folder or in otherwords, directory maintains filenames and it requires uniq names you can not have duplicate names for given file in same folder.</p><p>if you are planing to create softlink from different partition or folder, it should not cause any problem.</p><p>Look at following example, I am creating data.txt to data.txt it gives error but when I tried data.txt to data1.txt, it works fine.<br
/> ln -s data.txt data.txt<br
/> ln: creating symbolic link `data.txt&#8217;: File exists<br
/> ln -s data.txt data1.txt<br
/> ls -la data*.txt<br
/> lrwxrwxrwx 1 root root  8 2009-08-13 00:02 data1.txt -&gt; data.txt<br
/> -rw-r&#8211;r&#8211; 1 root root 15 2009-08-12 23:53 data.txt</p><p>Hope this helps,<br
/> Babu Satasiya</p> ]]></content:encoded> </item> <item><title>By: Mehdi (ATI/AMD Drivers)</title><link>http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html#comment-150071</link> <dc:creator>Mehdi (ATI/AMD Drivers)</dc:creator> <pubDate>Wed, 12 Aug 2009 14:47:30 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html#comment-150071</guid> <description>I was just wondering how I could make a link to a drive?
When I do
root@Ubuntu9:media &gt;  ln -s disk disk
it returns an error saying /media/disk already exists!
I know it exists I just want to make a link to it (shortcut),
I know it seems dumb/redundant to make a same name link in the same folder  but I was trying to figure out why this disk does not mount?and thought it may help because the cdrom and other disks mount OK and they all have links in the /media!
when I do mount disk it returns the usual fstab nonsense. It (disk) ONLY come up when I use the GUI and go in My Computer, then it appears in the /media directory?
So I thought it has something to do with making a link?
thanks@!</description> <content:encoded><![CDATA[<p>I was just wondering how I could make a link to a drive?<br
/> When I do<br
/> root@Ubuntu9:media &gt;  ln -s disk disk<br
/> it returns an error saying /media/disk already exists!</p><p>I know it exists I just want to make a link to it (shortcut),<br
/> I know it seems dumb/redundant to make a same name link in the same folder  but I was trying to figure out why this disk does not mount?and thought it may help because the cdrom and other disks mount OK and they all have links in the /media!<br
/> when I do mount disk it returns the usual fstab nonsense. It (disk) ONLY come up when I use the GUI and go in My Computer, then it appears in the /media directory?<br
/> So I thought it has something to do with making a link?<br
/> thanks@!</p> ]]></content:encoded> </item> <item><title>By: Nanda</title><link>http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html#comment-149009</link> <dc:creator>Nanda</dc:creator> <pubDate>Thu, 18 Jun 2009 18:28:18 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html#comment-149009</guid> <description>Otherwise to say, the inode number will not and can not be unique across filesystems / servers / partitions.
Hope this helps.
Nanda</description> <content:encoded><![CDATA[<p>Otherwise to say, the inode number will not and can not be unique across filesystems / servers / partitions.</p><p>Hope this helps.<br
/> Nanda</p> ]]></content:encoded> </item> <item><title>By: ruggo</title><link>http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html#comment-146391</link> <dc:creator>ruggo</dc:creator> <pubDate>Mon, 22 Dec 2008 23:28:11 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html#comment-146391</guid> <description>Karan,
If the /tmp directory is on the same partition as where &#039;sfile&#039; is, then you can hard link it. You can&#039;t hard link across different partitions/disks. They&#039;re different file systems, therefore the inodes differ on each partition.</description> <content:encoded><![CDATA[<p>Karan,</p><p>If the /tmp directory is on the same partition as where &#8216;sfile&#8217; is, then you can hard link it. You can&#8217;t hard link across different partitions/disks. They&#8217;re different file systems, therefore the inodes differ on each partition.</p> ]]></content:encoded> </item> <item><title>By: karan</title><link>http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html#comment-146336</link> <dc:creator>karan</dc:creator> <pubDate>Fri, 19 Dec 2008 08:25:25 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html#comment-146336</guid> <description>hi,
I need some clarification.
I am very clear that hard links points to same inode number.
==========================================================
Now if you try to create a hard link for /tmp file system it will lead to confusing references for UNIX or Linux file system. Is that a link no. 782263 in the /home or /tmp file system? To avoid this problem UNIX or Linux does not allow creating hard links across file system boundaries
======================================================
If i am trying to create hard link for /tmp file system.
For example:
$ cd /home/karan
$ touch sfile
$ ln sfile hfile
$ ls - ali
4489496 -rw-r--r-- 3 karan karan    0 2008-12-19 13:41 hfile
4489496 -rw-r--r-- 3 karan karan    0 2008-12-19 13:41 sfile
very clear till this part.
Do you meant to say that we cannot create hard links like the below?
$ ln sfile /tmp/hfile
If i misunderstood,please do clear me.
Thanks</description> <content:encoded><![CDATA[<p>hi,</p><p>I need some clarification.</p><p>I am very clear that hard links points to same inode number.<br
/> ==========================================================<br
/> Now if you try to create a hard link for /tmp file system it will lead to confusing references for UNIX or Linux file system. Is that a link no. 782263 in the /home or /tmp file system? To avoid this problem UNIX or Linux does not allow creating hard links across file system boundaries<br
/> ======================================================<br
/> If i am trying to create hard link for /tmp file system.<br
/> For example:<br
/> $ cd /home/karan<br
/> $ touch sfile<br
/> $ ln sfile hfile<br
/> $ ls &#8211; ali<br
/> 4489496 -rw-r&#8211;r&#8211; 3 karan karan    0 2008-12-19 13:41 hfile<br
/> 4489496 -rw-r&#8211;r&#8211; 3 karan karan    0 2008-12-19 13:41 sfile</p><p>very clear till this part.</p><p>Do you meant to say that we cannot create hard links like the below?</p><p>$ ln sfile /tmp/hfile</p><p>If i misunderstood,please do clear me.</p><p>Thanks</p> ]]></content:encoded> </item> <item><title>By: rewt</title><link>http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html#comment-146273</link> <dc:creator>rewt</dc:creator> <pubDate>Tue, 16 Dec 2008 17:15:06 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html#comment-146273</guid> <description>Your /tmp example above assumes that a novice-user already knows the difference between &#039;filesystems&#039; . This term is used interchangeably and the meaning depends on the context where[how] it&#039;s used.
/tmp above implies it&#039;s on a different partition (and may be possibly another filesystem(ext2 rather than ext3(/home)).
Subtle meaning
1) A FSH - example all dir&#039;s under &#039;/&#039; on a single partition.
2) Different (logically grouped or part of entire hierarchy)dir&#039;s under same partition ,different partition&#039;s or on different type-of-filesystem(ext2[3],reiser etc).
Anyways, keep up the good work.</description> <content:encoded><![CDATA[<p>Your /tmp example above assumes that a novice-user already knows the difference between &#8216;filesystems&#8217; . This term is used interchangeably and the meaning depends on the context where[how] it&#8217;s used.</p><p>/tmp above implies it&#8217;s on a different partition (and may be possibly another filesystem(ext2 rather than ext3(/home)).</p><p>Subtle meaning<br
/> 1) A FSH &#8211; example all dir&#8217;s under &#8216;/&#8217; on a single partition.<br
/> 2) Different (logically grouped or part of entire hierarchy)dir&#8217;s under same partition ,different partition&#8217;s or on different type-of-filesystem(ext2[3],reiser etc).</p><p>Anyways, keep up the good work.</p> ]]></content:encoded> </item> <item><title>By: franklin</title><link>http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html#comment-144544</link> <dc:creator>franklin</dc:creator> <pubDate>Mon, 04 Aug 2008 07:34:27 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html#comment-144544</guid> <description>Answer is good but simply say &quot;Another name to same file&quot;with same inodes.</description> <content:encoded><![CDATA[<p>Answer is good but simply say &#8220;Another name to same file&#8221;with same inodes.</p> ]]></content:encoded> </item> <item><title>By: nobody</title><link>http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html#comment-143061</link> <dc:creator>nobody</dc:creator> <pubDate>Mon, 03 Mar 2008 14:11:41 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html#comment-143061</guid> <description>this example was confusing
because you are using
the same name
for the files
and
for the paths</description> <content:encoded><![CDATA[<p>this example was confusing<br
/> because you are using<br
/> the same name<br
/> for the files<br
/> and<br
/> for the paths</p> ]]></content:encoded> </item> <item><title>By: Debakanta</title><link>http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html#comment-63540</link> <dc:creator>Debakanta</dc:creator> <pubDate>Sat, 20 Jan 2007 07:07:48 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/why-isnt-it-possible-to-create-hard-links-across-file-system-boundaries.html#comment-63540</guid> <description>Hi,
I wants to know that where are the links  store?,is it created automatically at the time of creating the new file?Is it store in the inode or special file created for directory?
what is different between the links and link count?
regard
Debakanata</description> <content:encoded><![CDATA[<p>Hi,<br
/> I wants to know that where are the links  store?,is it created automatically at the time of creating the new file?Is it store in the inode or special file created for directory?<br
/> what is different between the links and link count?</p><p>regard<br
/> Debakanata</p> ]]></content:encoded> </item> </channel> </rss>
