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

Comments

Projects
None yet
4 participants
@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

This comment has been minimized.

Copy link
Collaborator

DennisLfromGA commented Jul 14, 2014

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

@Epowerj

This comment has been minimized.

Copy link

Epowerj commented Jul 14, 2014

It worked, thanks!

@Epowerj Epowerj closed this Jul 14, 2014

@dnschneid dnschneid added the question label Jul 14, 2014

@DennisLfromGA

This comment has been minimized.

Copy link
Collaborator

DennisLfromGA commented Jul 14, 2014

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

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

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