RW in /opt/ or root

25 views
Skip to first unread message

maxdamage

unread,
Dec 21, 2010, 9:38:03 PM12/21/10
to Cr-48 Test Pilots
Anyone figure out how to get root to mount RW?

Todd Vierling

unread,
Dec 21, 2010, 9:49:24 PM12/21/10
to cr-48-te...@googlegroups.com
On Tue, Dec 21, 2010 at 9:38 PM, maxdamage <kevin...@gmail.com> wrote:
> Anyone figure out how to get root to mount RW?

You won't (or at least, should not be able to). / is mounted read-only
by design. If you want files to appear there, you have to build an
image from source and include them in the build process.

The only parts of the filesystem that are writable at runtime are
/home, /var, and /mnt/stateful_partition (which contains /home and
/var).

Todd Vierling

unread,
Dec 21, 2010, 9:52:29 PM12/21/10
to cr-48-te...@googlegroups.com
On Tue, Dec 21, 2010 at 9:49 PM, Todd Vierling <t...@duh.org> wrote:
> The only parts of the filesystem that are writable at runtime are
> /home, /var, and /mnt/stateful_partition (which contains /home and
> /var).

That doesn't mean you cannot loop mount
/mnt/stateful_partition/something elsewhere in the filesystem, but you
won't be able to do that on /, /usr, or /opt, of course (because they
have rather important stuff in them).

Patrick Wellever

unread,
Dec 21, 2010, 11:32:35 PM12/21/10
to cr-48-te...@googlegroups.com
On Tue, Dec 21, 2010 at 9:38 PM, maxdamage <kevin...@gmail.com> wrote:
Anyone figure out how to get root to mount RW?


These steps worked for me, assuming dev mode is enabled:


I was able to successfully install the busybox binary referenced in this post, providing access to all sorts of Linux utilities.

Todd Vierling

unread,
Dec 22, 2010, 1:40:59 AM12/22/10
to cr-48-te...@googlegroups.com
> These steps worked for me, assuming dev mode is enabled:
> http://people.virginia.edu/~wh5a/drupal-5.7/?q=node/39
> I was able to successfully install the busybox binary referenced in this
> post, providing access to all sorts of Linux utilities.

Cute. Design docs I read some time back seemed to imply that readonly
root partition was going to be kernel-enforced. It's interesting to
see that it isn't.

Note that there are other caveats, not the least of which is that your
changes could get "blown away" by an auto-update when the system
reboots into the alternate root filesystem (there are two, A-ROOT and
B-ROOT). The updater does run in dev mode, but it is supposed to
update signed images if running under the official Chrome OS builds. I
don't know how the updater will behave if the root fs is modified
(breaking the signature on the active root filesystem).

maxdamage

unread,
Dec 22, 2010, 1:43:20 AM12/22/10
to Cr-48 Test Pilots
This worked for me. Kinda scary that they included a script that just
does that.

On Dec 21, 11:32 pm, Patrick Wellever <p...@pwellever.com> wrote:

Brandon Hibbard

unread,
Dec 22, 2010, 2:12:46 PM12/22/10
to cr-48-te...@googlegroups.com
Crazy awesome.
Reply all
Reply to author
Forward
0 new messages