Results 1 to 5 of 5

Thread: Creating hard link to directory

  1. #1
    Join Date
    Jul 2010
    Posts
    101

    Creating hard link to directory

    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.

  2. #2
    Join Date
    May 2008
    Posts
    656

    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).

  3. #3
    Join Date
    Jan 2006
    Posts
    4,545

    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

  4. #4
    Join Date
    Dec 2007
    Posts
    1,547

    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..

  5. #5
    Join Date
    May 2008
    Posts
    1,149

    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?

Similar Threads

  1. Creating a business directory website
    By Desi.B@yZ in forum Software Development
    Replies: 6
    Last Post: 21-02-2012, 08:46 PM
  2. Replies: 5
    Last Post: 12-09-2011, 05:24 PM
  3. Error Creating Autodiscover Virtual Directory
    By MegaTron in forum Windows Software
    Replies: 6
    Last Post: 11-08-2010, 12:47 AM
  4. Problem in creating partition on Samsung Hard Drive
    By Chetna Solanki in forum Hardware Peripherals
    Replies: 5
    Last Post: 19-01-2010, 02:51 PM
  5. Creating Symbolic link on Windows Vista
    By Spykar in forum Tips & Tweaks
    Replies: 0
    Last Post: 03-09-2008, 02:58 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,164,056.85585 seconds with 17 queries