The symlink itself is fine. However upon deleting a file via Thunar, I get error popup, saying Unable to trash file ... across filesystem boundaries. (Which is true because /mnt/hd1 is a different disk altogether)
Is there a working method to permanently make my trash folder reside on a different disk?
I’m often deleting lots of files while sorting through tens of gigabytes of pictures/ videos the family clicks, and having everything end up on my SSD feels like wastage of write cycles.
System - i3wm. Using Thunar as file manager, Ristretto as image viewer, and MPV as video player.
Edit: Didn’t need to do anything. Files aren’t being moved to SSD, so no purpose for changing Trash location.
As @dalto said, when a file is deleted it is not copied to Trash. It is moved and moving files does not cause them to physically change place on the drive. Instead, a new inode is created in the filesystem that points to the same data on the drive, and the old inode is removed. This is why moving huge files on the same filesystem is neary instantaneous. And also why hard links must point to the same filesystem.
Moving files to another filesystem necessarily involves copying them byte for byte, which is the reason why it is so slow.
If it happens almost instantaneously for very large files, they are certainly being moved within the same filesystem (with data remaining at the same physical location on the drive) rather than being copied byte by byte, which takes noticeably long, even on fastest SSDs.
Yeah, only inodes (think of them as pointers in C) are being moved, the actual data stays on the same sectors. Even when you empty the Trash, the data is still there, only there is no inode pointing to it so the filesystem is free to overwrite that storage at a later point, when needed.