nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Hard Link Query

This is a discussion on Hard Link Query within the Getting started tutorials forums, part of the Linux Getting Started category; Hi, I was recently reading about hardlinks and was told that hardlinks is not supported across directories i.e /home and ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Getting started tutorials

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 09-02-2007, 10:13 AM
Junior Member
User
 
Join Date: Sep 2007
My distro: Ubuntu
Posts: 1
Rep Power: 0
sharadgana is on a distinguished road
Default Hard Link Query

Hi,

I was recently reading about hardlinks and was told that hardlinks is not supported across directories i.e /home and /tmp etc.


I tried creating a hardlink between them and was able to create and access it

sharadg@tripwire:/tmp$ ln b /home/sharadg/a
sharadg@tripwire:/tmp$ ls -i b /home/sharadg/a
3424472 b 3424472 /home/sharadg/a


Can you explain this ?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-03-2007, 06:29 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 481
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

Hello,

Welcome to forum!

Quote:
Originally Posted by sharadgana View Post
Hi,

I was recently reading about hardlinks and was told that hardlinks is not supported across directories i.e /home and /tmp etc.


I tried creating a hardlink between them and was able to create and access it

sharadg@tripwire:/tmp$ ln b /home/sharadg/a
sharadg@tripwire:/tmp$ ls -i b /home/sharadg/a
3424472 b 3424472 /home/sharadg/a


Can you explain this ?
Is /tmp and /home mounted on same partition? if so you should able to create a hard link. Rule is - Understanding UNIX / Linux symbolic (soft) and hard links :
Quote:
You cannnot cross or create a hard link between two partitions
  • Hard links cannot links directories
  • Cannot cross file system boundaries

Run mount command to verify
Code:
mount
Hit reply button if you need more information
__________________
May the force with you!
Reply With Quote
  #3 (permalink)  
Old 03-25-2008, 12:11 AM
Member
User
 
Join Date: Mar 2008
My distro: Debian, Slackware, LFS
Posts: 83
Rep Power: 1
Tux-Idiot is on a distinguished road
Question

Quote:
You cannnot cross or create a hard link between two partitions
  • Hard links cannot links directories
  • Cannot cross file system boundaries
die linux die, i cannot hardlink directories? 0_o (
HMUG: man lndir (1)
man lndir
man symlink
the info is also right from monk, you can also alias it right? alias blah=bleh then. because i knew the stated fact. but the only solution which i did choose to svn nightly upgrade was park the svn to some other partition and then redirect it. YES monk is right. but to overcome this? use alias. and then link via alias.
common its "teh leenuks" everything is possible.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
hard disk backup zafar466 Linux software 1 06-29-2007 01:47 AM
Debian d-link dwl 510 configuration chimu Linux hardware 0 01-26-2007 07:15 PM
D-Link 520 rev B uspak Linux hardware 3 12-28-2006 10:35 AM
a query kavi Linux software 2 10-16-2005 06:16 AM
BIND 9 and Query-Source Ashish Pathak Linux software 2 02-07-2005 12:42 PM


All times are GMT +5.5. The time now is 04:28 AM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36