Ubuntu – How to set usb Drive with executable permission


I have Steam on my Chromebook (Acer c710) With Saucy, Unity.
I was just about to download Dota 2 when I didn't have enough space on my device, so I had a spare usb Flash Drive(Sandisk Cruzer Faucet) and I tried to download it directly to there.
Everything would have went fine, except I ran into an error:"Your file system must have executable permission".

I want to know how I could mount my USB Drive with executable permission.

Thank you.

Best Answer

If the partition is NTFS or FAT, you'll have to mount it with the correct permissions for files to be executable.

Use the lsblk command to identify your USB drive (let's call it /dev/sdb1). You can either mount it manually (I picked a folder called usbdrive, pick what you want):

sudo umount /dev/sdb1
mkdir ~/usbdrive
sudo mount -t vfat -o rw,exec,uid=1000,gid=1000,umask=022 /dev/sdb1 usbdrive

Or add an entry to fstab:

sudo umount /dev/sdb1
mkdir -p ~/usbdrive
echo '/dev/sdb1 /home/user/usbdrive vfat rw,exec,uid=1000,gid=1000,umask=022 0 0' | sudo tee -a /etc/fstab

Replace sdb1 with the identifier of your USB drive, and the paths to usbdrive to wherever you want your drive to be mounted.

Related Question