I want to mount a directory to another directory. Reason to not use a symlink is Synology's stupid decision to not support it.
I have a dual boot system and work regularly on Ubuntu and Windows 10.
There is a big folder with pictures, that I don't want to have twice on my system.
Manual mounting works fine:
sudo mount --bind /media/windows/Users/Nabor\ Gilgalad/Pictures/mediathek /home/ngilgalad/Bilder/mediathek
But this entry in the /etc/fstab does not work.
/media/windows/Users/Nabor\ Gilgalad/Pictures/mediathek /home/ngilgalad/Bilder/mediathek fuse.bindfs mirror=target 0 0
I think it is because of the space in the name, but how should this be done correctly?
Update:
It was not only the spaces in the path but also the correct type and options. That's why I also changed back the Title to the original question.
I marked the answer correct but it is indeed only a part of the solution.
This is the complete solution and works like a charm:
/media/windows/Users/Nabor\040Gilgalad/Pictures/mediathek /home/ngilgalad/Bilder/mediathek none bind
/media/windows/Users/Nabor\040Gilgalad/Thunderbird/Mail/Local\040Folders /home/ngilgalad/Thunderbird/Mail/Local\040Folders none bind
Maybe some will find it helpful...