Thursday, January 6, 2011

Making /mnt/stateful_partition exec friendly

Finally found out how to make the /mnt/stateful_partition exec permission persistant.

open up a shell
CTRL-ALT-T
shell
sudo su
open up /sbin/chromeos_startup - i'll use nano, as I have a tutorial for installing it
nano /sbin/chromeos_startup

Now, when scrolling around in nano, the screen will not refresh properly when scrolling up/down pages, but, we can press CTRL-L to make it redraw the screen

While in nano, CTRL-C will give you you're current cursor position.
We want to edit lines 51, 58, and 67.

Remove noexec, from each of those lines

The line should then look something like .... -o nodev,nosuid .....

You can also remove the ,nosuid if you'll be wanting to install and SUID programs on the stateful partition.


Save the file by pressing CTRL-X and answering Y and pressing enter for the filename.

Reboot, and your stateful partition should be remounted with the correct options from this point forward.

4 comments:

  1. How do you get Sudo to work? My Cr-48 won't let me use any of those commands.

    ReplyDelete
  2. Read the very first post on the blog, you need to be in developer mode, as well as have a few other things set up

    ReplyDelete
  3. Not really sure what VNC would be good for (since i don't know what it is, will wiki later don'tworry) Just wanted to say Thank You for making things a little more interesting all from within Chrome OS.


    Hey since you installed Nano, similar method useable to get midnight command?

    ReplyDelete
  4. Looks like mc is possible, but it requires loading up a few libraries to get it working.

    Also, am I correct in seeing it is navigated by F keys?

    ReplyDelete