I'm currently mounting my external harddrive using the following entry in /etc/fstab
:
UUID=12C23AD8C23AC031 /media/MyBook ntfs-3g auto,users,exec,rw,nobootwait,iocharset=utf8,uid=1000,gid=1000 0 0
In addition to that, I also need to run mount
as follows (which I currently only do before starting Steam, but it's getting annoying to constantly do so; I would prefer it was automated):
sudo mount --rbind /media/MyBook/Games/SteamData /home/andreas/.local/share/Steam/
Is there any way to automatically mount the SteamData folder whenever the drive "My Book" is mounted? There are answers on how to run a shell script when a drive is mounted, but is it better/possible to do this directly from fstab
?
Note that my external harddrive may not be available at boot, and may be plugged in at a later time.
MyBook
isn't mounted at boot? (the path/media/MyBook/Games/SteamData
would not exist) Would it still work ifMyBook
were plugged in later on? – IQAndreas Aug 09 '13 at 21:24nobootwait
flag in thefstab
entry. Before I learned about it, I used to just presss
to skip if it wasn't connected at boot. – IQAndreas Aug 10 '13 at 13:56