Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , , ,

Sponsored Links


Creating hard link to directory

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 22-08-2010
Member
 
Join Date: Jul 2010
Posts: 101
Creating hard link to directory

Sponsored Links
I got some discussion that generating the hard link to a directory is impossible however when going through the manual pages of "ln" the "-d/-f" option states that the hard link directories ( super-user only). Thus it indicates that the super user means the root user is only able to create the hard link for the directory and a normal user is not permitted to do this , If yes then you . Even on indicating the above options, I received the operation not permitted for a super user.

Reply With Quote
  #2  
Old 22-08-2010
lorenz's Avatar
Member
 
Join Date: May 2008
Posts: 610
Re: Creating hard link to directory

You are only able to have hard link files (and I would consider that it also moves for the directories) if the source and target are running upon the same file system then you would be unable to create the hard link of a file on the single device with a directory on different one device or another partition (that is an separate file system).
Reply With Quote
  #3  
Old 22-08-2010
Bon-Z's Avatar
Member
 
Join Date: Jan 2006
Posts: 4,550
Re: Creating hard link to directory

The GNU tools should allowed to be executed within the different number of operating systems with a different specification of the kernels. It is based on the on several components but initially the game is within the kernel and the file system driver. So, that "ln" of "df" is unable to perform anything with the same , it does not indicate that the "linux" necessarily compatible with the feature. And even if that was possible within the linux, it does not indicates that your file system will be compatible with the same at all (just as the vfat doesn't have any compatibility with the linux/unix privileges).
__________________
In The Absence Of Light
Darkness Prevail's
Reply With Quote
  #4  
Old 22-08-2010
Team Leader's Avatar
Member
 
Join Date: Dec 2007
Posts: 1,517
Re: Creating hard link to directory

The initial issue with the process of hardlinking the directories is that when you build the hard link or locate , there is no any difference with the names of a suggested files or specified directory. And the file remains accessible until you remove the last one specified (unlike with the symbolic links). It can confuse the programs which moves recursively the directory tree, who is sure about the location our rm -rf could end. Just same as the symlinks, you don't have to deference anything, virtually, the directory is just there same as if you made the same with the mkdir and whatever hangs within this and it will be recursed in same situation..
Reply With Quote
  #5  
Old 22-08-2010
David23's Avatar
Member
 
Join Date: May 2008
Posts: 1,091
Re: Creating hard link to directory

Fine, I have tried the same on my CentOS 5.3 and it got failed with the error message with the following message as "Operation not permitted". There may be Linux versions that facilitates with the same and it should be a factor of the file system in the query. Don't know. Not sure I care.

So, why do you want a hard link to a directory?
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Creating hard link to directory"
Thread Thread Starter Forum Replies Last Post
Does creating more partitions reduces hard drive performance Edvard Hardware Peripherals 8 03-08-2012 04:14 PM
Creating a business directory website Desi.B@yZ Software Development 6 21-02-2012 07:46 PM
Error during provisioning while creating link-cloned desktops Bryn Operating Systems 5 12-09-2011 05:24 PM
Error Creating Autodiscover Virtual Directory MegaTron Windows Software 6 11-08-2010 12:47 AM
Creating Symbolic link on Windows Vista Spykar Tips & Tweaks 0 03-09-2008 02:58 PM


All times are GMT +5.5. The time now is 03:07 PM.