Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I wants to create the hardlink in one of my Linux machine.
wants to create the hardlink in different partitions,
previously some of the files are linked same way.
I wants to add more hardlink but i am getting the error...
Please help me on this....
you can't have a hard link across different partitions, you'd need a symlink instead. every normal file already IS a hard link, and I'm sure it doesn't make sense to you to have that one file *name* on one disk yet the data on the other... it makes no sense with 1 link or 50, they are all equally connected directly to the data on the disk, not the other names.
But some file are made hard link in different partition in my Linux machine,
in /opt to /home they have made the link i checked the "inode" number same number i can see in that both partitions...
can you suggest how they have made such links.....
inode works only within the partition. So you can have the same inode number on several partitions, but they will be different files. There is no exception.
Hard link means you have more (than one) directory entry to the same inode, to the same filesystem object. In this case we used to say those entries are hard linked to each other, but would be better to say they are all points to the same file. A symbolic link is an arbitrary string which is evaluated as "use that file", this string is a path to the real file in another directory. This path may or may not be valid, may direct you to another filesystem or another host or whatever you want. The symbolic link is an entry in the directory and does not belong an inode to it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.