Skip to content
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

Can not delete chroot #1079

Closed
PIneaPplez13 opened this issue Sep 27, 2014 · 5 comments
Closed

Can not delete chroot #1079

PIneaPplez13 opened this issue Sep 27, 2014 · 5 comments
Labels

Comments

@PIneaPplez13
Copy link

So I messed up my chroot, I had a perfectly good installation of ubuntu 14.04 trusty going, I had all the software I wanted until I tried installing wine, had some problems and eventually tried to compile it in a 32 bit linux container. I had some trouble with lxc and tried to log off and enter my chroot again to see if this would solve my problem.
Upon trying to use sudo startxfce4 I find 3 errors.
One is that it says something like found username 'whoopsies' blah blah blah but I do the fix for that.
The second is it says it cannot find startxfce4. So I go into the chroot, and install the xfce package on my ubuntu. And I guess I wasn't supposed to do that.
So now the first two errors are gone but when I run sudo startxfce4 it doesn't ask me for encryption and it says this:
Not unmounting /mnt/stateful_partition/crouton/chroots/trusty as another instance is using it.
My guess is its trying to start the OS not only from crouton but also from the chroot itself? I dunno. So I thought well, I messed it up, I guess I should delete it and start all over again, I didn't have much software installed on it anyway.
Nope.
Here's what I type.

chronos@localhost / $ sudo delete-chroot trusty
Not unmounting /mnt/stateful_partition/crouton/chroots/trusty as another instance is using it.

Dun dun dun...
Really I just want to delete this thing and start over again now. Maybe that'll even solve my problems with installing wine. One last note: I cannot shut off my computer. If I do it takes me out of dev mode. So if anyone has got any solutions to this that do not involve shutting off my computer that would be good. Also I'm on an Acer C720

@divx118
Copy link
Contributor

divx118 commented Sep 27, 2014

Reboot the chromebook and try again. By rebooting it ensures you that there are no longer any mounts or programs running related to the chroot.
Backup your chroot in the future, so you can easy restore might be a good idea.

Edit: why would you exit dev-mode. Just press ctrl d at the scary screen when it starts up.

@PIneaPplez13
Copy link
Author

Yeah, that would be the easiest and most optimal solution, but I can't reboot it. When I reboot it will take me out of developer mode and I won't be able to get back in. So I won't be able to run crouton at all. Is there another way? Perhaps manually deleting the chroot files as well as crouton? Or will it not let me because the chroot is running. Or maybe a force shut down from the chronos terminal?

@divx118
Copy link
Contributor

divx118 commented Sep 28, 2014

Why would you exit dev-mode on a reboot? Just press "ctrl d" at the scary screen when it starts up and it boots right up to dev-mode.

@PIneaPplez13
Copy link
Author

Because my school gave me my chromebook and they blocked dev mode but I got
around it however only for one startup,

On Sun, Sep 28, 2014 at 6:51 AM, Maurice van Kruchten <
notifications@github.com> wrote:

Why would you exit dev-mode on a reboot? Just press "ctrl d" at the scary
screen when it starts up and it boots right up to dev-mode.


Reply to this email directly or view it on GitHub
#1079 (comment).

@dnschneid
Copy link
Owner

You can force-unmount the chroot with sudo unmount-chroot -f trusty, and then delete-chroot should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants