Score:0

On Chrome OS in dev mode: mount with exec permission

ru flag

I'm trying to use a Chromebox as a tiny server. I'm using Linux through Crostini to host the server application. It really seemed like a good idea. Currently, I'm trying not to replace the whole Chrome OS, although it might come to that.

I think I'm almost done, but my server software requires its storage allocation, a fairly large chunk of data that I store on external drives, to run code. Basically, I need external partitions to be mounted with the exec permission. I would like to point out that I am in developer mode. I've seen some articles on the web that said that mounting an external drive with the exec permission may only be possible in developer mode. But they never explained how. (Of course.) So far, I've tried sudo mount -o remount,exec /the/mount/location from the Chrome OS shell (not the inner Linux shell) and it did not affect the exec permission at all.

Do I need to install a Linux distribution over Chrome OS, or is there a way to mount the external drive with the exec permission within Chrome OS? Or is there yet another solution? The server app needs to be able to execute some files within its storage section and that section is too large to store within the Chromebox's built-in drive. I've been running this server on a Raspberry Pi, but what I really need is a computer with GPU acceleration, which the Chromebox has.

EDIT: Since I posted this, I had the clever idea of finding out which part of the large chunk of data really needed to be executable and I made a soft link to my main drive at that point. Which should have been a win-win: only that small-ish part that needs to be executable needs to be on the main drive. But that didn't work. It seems that Chrome OS does not allow symbolic links from an external mount to the main mount, I assume for that reason. It throws the error Too many levels of symbolic links even though it's the only symbolic link in the path. (I checked.)

Michaël Cadilhac avatar
jp flag
It's been a bit more than a year that my symlink to access my Crostini shell config from Crosh has been broken. Same error "Too many levels of symlinks", which is a really poor error message… Did you manage to solve it?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.