what happens when a hardlink is mounted to another drive
- User
what happens when a hardlink is mounted to another drive
Assistant
A hardlink cannot be mounted to another drive - this is a fundamental limitation of how hardlinks work in most filesystems.
Hardlinks are essentially multiple directory entries that point to the same inode (the actual data structure containing file metadata and data block pointers). Since inodes are specific to a particular filesystem, hardlinks can only exist within the same filesystem/partition. When you try to create a hardlink across different drives or partitions, the operation will fail.
Here's what happens in practice:
On Linux/Unix systems: If you try to use (without the flag) to create a hardlink to a file on a different filesystem, you'll get an error like "Invalid cross-device link" or "Operation not permitted."
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.