Giter Club home page Giter Club logo

Comments (9)

rminnich avatar rminnich commented on June 1, 2024

I've done it and it works GREAT.

ron

On Thu, Jan 17, 2013 at 12:14 PM, gwon [email protected] wrote:

Title says it all - feasible to have the chroot install onto an SD target?


Reply to this email directly or view it on GitHubhttps://github.com//issues/8.

from crouton.

dnschneid avatar dnschneid commented on June 1, 2024

Yep! Make sure the SD card is formatted with some form of ext, then use the -p (prefix) parameter to point crouton to the SD card (usually /media/removable/$label); it will install the chroots to $prefix/chroots and the launch scripts to $prefix/bin. You can then enter chroot either by explicitly using the $prefix/bin scripts, or use the -c parameter to explicitly specify the $prefix/chroots directory when using scripts installed to /usr/local/bin.

from crouton.

craigerrington avatar craigerrington commented on June 1, 2024

Hey.. I created an ext4 partition on my SD. and then I executed:

sudo sh -e ~/Downloads/crouton -t xfce -p /media/removable/External\ Drive/

It started running through, files are in place on the SD but it stopped with the following:

Moving bootstrap files into the chroot...
Preparing chroot environment...
x11 target does not work on ARM. Substituting in xephyr.
Installing brightness into the chroot...
Installing xinit into the chroot...
Installing croutonwm into the chroot...
x11 target does not work on ARM. Substituting in xephyr.
x11 target does not work on ARM. Substituting in xephyr.
Installing startxfce4 into the host...
Installing enter-chroot into the host...
Installing delete-chroot into the host...
Installing mount-chroot into the host...
Installing unmount-chroot into the host...
powerd stop/waiting
chroot: failed to run command `/prepare.sh': Permission denied
powerd start/running, process 31330
Unmounting /media/removable/External Drive//chroots/precise...

from crouton.

dnschneid avatar dnschneid commented on June 1, 2024

Ah, the space in "external drive" is almost certainly screwing up the part of enter-chroot that remounts the mount with "exec" permission. Looks like they get escaped with \040 in /proc/mounts, so I'll need to compensate for that in the script.

from crouton.

dnschneid avatar dnschneid commented on June 1, 2024

In the meantime, you can manually remount it by running sudo mount -o remount,rw,dev,exec,suid '/media/removable/External Drive' and then try to enter the chroot (it will ask if you want to run the /prepare.sh script, and you should agree).

from crouton.

dnschneid avatar dnschneid commented on June 1, 2024

Okay, that was a stupidly untrivial fix. Anyway, the latest release has it incorporated, so give it a shot. It probably doesn't break everything.

from crouton.

craigerrington avatar craigerrington commented on June 1, 2024

That worked.. Thanks a lot.

I'm just about to test the updated croutonwheel etc and I'll report back..

(I'll deprecate basically all the current guides on my website)

from crouton.

dnschneid avatar dnschneid commented on June 1, 2024

Oh, I think I forgot to mention--if you do install to a different prefix, it's easiest to directly run the chroot scripts from the other prefix, because it'll auto-associate those chroots with it.
E.g. if you install with -p '/media/removable/External Drive', then the easiest way to launch the chroot is simply via sh -e '/media/removable/External Drive/bin/enter-chroot or whatever (note that you don't need the -c this way, since it will assume '/media/removable/External Drive/chroots' automatically).

from crouton.

dheera avatar dheera commented on June 1, 2024

I tried this on an Asus Chromebook Flip and the performance was horrible when installing a chroot to an SD card, despite it being a top-of-the-line Lexar 600x card. Depends on your Chromebook hardware, I guess.

from crouton.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.