I have a shared secondary hard drive which is now mounted in /media/tyrion/data and that is accessible for all users on my family computer.

However, I wish it to be automatically mounted at login in the user's respective home folder. Is this possible? The reason for this is that I want snap apps that by nature (?) have access to the home folder only to be able to access shared files on this disk. Or is there a simpler solution to this (I guess not that uncommon) problem?

  • do you need to automount the drive at startup? or is that part taken care of already? – ravery Sep 16 '17 at 17:29
  • It's automatically mounted at start up now. Does this answer your question? – Sandro Sep 16 '17 at 17:35
  • use mount --bind . Not sure exactly what and why your are doing all this so hard to know if there is a better way. I do not use snap. See askubuntu.com/questions/550348/how-to-make-mount-bind-permanent and unix.stackexchange.com/questions/198590/what-is-a-bind-mount , see "Linux bind mount " section. – Panther Sep 16 '17 at 17:35
  • yes. one method to give all users access is to make a symlink to the drive in each persons home folder. Note: everyone will need write permissions on the drive. – ravery Sep 16 '17 at 17:38
  • thanks, I added symlinks for all users in their home folders, which works like a charm (every user has full access to the secondary hdd). However, I installed a few snap apps (e.g. krita) and none of them can make use of the link. For the snaps the symlink folder is there but empty. Any suggestions? – Sandro Sep 16 '17 at 20:11

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.