Is it possible to create a link in an exfat partition in linux? I wanted to create a link to a file deep in some folders and "ln -s" doesn't work because exfat doesn't support symlinks. changing the filesystem is not possible.
touch /shallow/file sudo mount --bind /deep/into/directory/tree/file /shallow/file
- Works on OS level, not on filesystem level. After every reboot you need to repeat
mountto use this "link"; or edit your
/etc/fstabto make this solution permanent.
You could try using a hard link, though I'm not sure it'll work.
You could create the symlink on a non exfat drive and have the target point to a file on the exfat drive, since soft links can cross drive boundaries.
If you have no other drive to implement the above, you could even create a small ext4fs system using "mke2fs", loop mounting it, and then linking from it to the exfat system.
If you create a shortcut in Windows, Linux may see it as a '.lnk' file, but you won't be able to use it like a symbolic link.