Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to mount USB drive with exec #928

Closed
Epowerj opened this issue Jul 14, 2014 · 6 comments
Closed

How to mount USB drive with exec #928

Epowerj opened this issue Jul 14, 2014 · 6 comments
Labels

Comments

@Epowerj
Copy link

Epowerj commented Jul 14, 2014

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?

@DennisLfromGA
Copy link
Collaborator

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

@Epowerj
Copy link
Author

Epowerj commented Jul 14, 2014

It worked, thanks!

@DennisLfromGA
Copy link
Collaborator

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.

@trusktr
Copy link

trusktr commented Apr 22, 2017

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.

@trusktr
Copy link

trusktr commented Apr 22, 2017

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.

@trusktr
Copy link

trusktr commented Apr 22, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants