0

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.

IQAndreas
  • 3,298

1 Answers1

0

the fstab entry would be:

/source/dir            /destination/dir    none  bind            0 0

or

/media/MyBook/Games/SteamData     /home/andreas/.local/share/Steam/   none  bind     0   0

be certain you have full perms to this folder, unless you want a r/o mount.