Crouton: How to mount USB drive with exec

Created on 14 Jul 2014  ·  6Comments  ·  Source: dnschneid/crouton

I want to mount a USB drive (/dev/sdb1) with exec so I can install steam games on it, but fstab doesn't seem to work. I've also learned that Chrome OS mounts with noexec by default.

How do you mount a USB drive with exec?

question

Most helpful comment

I think you can do it with a remount, something like:
sudo mount -o remount,exec [mountpoint]

All 6 comments

I think you can do it with a remount, something like:
sudo mount -o remount,exec [mountpoint]

It worked, thanks!

Great and your welcome.
I have a couple of 'remounts' that I stick in my .bashrc file so they get run each time I log in.

Can I do this with the home folder? How can I make the home folder have exec permanently? There's no /etc/fstab which I'm normally used to.

Cool,

sudo mount -i -o remount,exec /home/chronos/user

works. (-i was required). I guess I can just put that in my bashrc or zshrc.

Maybe also have bash check if the noexec option is currently enabled, and only run the above command when noexec is present, to avoid running it for every terminal you open.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jimmybungalo picture jimmybungalo  ·  4Comments

kgingging picture kgingging  ·  5Comments

shichuzhu picture shichuzhu  ·  5Comments

jvschiavo picture jvschiavo  ·  4Comments

kiorpesc picture kiorpesc  ·  4Comments