I figured it out on my own after a lot of wasted time.
what file system is the Device
what is the device id (run sudo blkid
) such as /dev/sda
for a ssd or flash drive or /dev/mmcblk
for SD cards.
after that use the id you recieved from sudo blkid
and (thelast one at the bottom. )
Figure out where you want to mount the drive (I will be using /Storage
)
edit /etc/rc.local
with the proper syntax /etc/rc.local
is a script that runs on boot.
Mine looks like this
#!/bin/sh -e
#
#rc.local
#
# This script is executed at the end of each multiuser run level
#Make sure that the script will "exit 0" on success or any other
#value on error.
#
#In order to enable or disable this script just change the execution
#bits.
#
#By default this script does nothing.
sudo mount -t vfat -o rw,noexec /dev/mmcblk1p1 /Storage
sudo mount -o remount,exec /Storage
sudo chown sam /Storage
exit 0
ok now let me explain
you need to mount the drive with -t
(file system type)
(If the file system is fat32 or fat16 use vfat
, if the drive is exfat use exfat
, same goes for ntfs(ntfs
must be lower case),ext2
,ext3
,ext4
)
Then you need to add paramters -o rw,noexec
rw
for read/write
noexec
for don't execute
we wil add this later
after that use the id you recieved from sudo blkid
and (the last one at the bottom.) /dev/sda
or /dev/mmcblk
then use a folder you have premade
next remount the folder with execute permissions ( and yes you have to remount this or it will not work)
sudo mount -o t,remount,exec /your/mount/dir
Finally take ownership of the folder so steam can use it
sudo chown <your username> /your/mount/dir
Sorry if this was confusing I tried to put a lot of information in this if you have questions I will be watching the comments on this