Removing a Crouton chroot is a straightforward process that deletes the Linux environment from your Chromebook and frees up disk space. This guide walks you through the exact commands to delete the chroot, remove the Crouton installation, and clean up any leftover files, so your Chromebook returns to its original state.
Ingredients
- 1 Chromebook with Crouton installed
- Terminal access (Ctrl+Alt+T for crosh, or a shell if already in Linux)
- Your chroot name (default is
precise,trusty,xenial, etc.) - ~5 minutes of time
- Optional: backup of any files you want to keep from inside the chroot
Instructions
- Back up personal files (optional but recommended). If you have documents, projects, or settings inside the chroot that you need, copy them to Google Drive, an external drive, or your Chromebook's Downloads folder before deleting. Use
cporscpfrom inside the chroot, or mount the chroot and copy files out. - Exit the chroot if you are currently inside it. Type
exitand press Enter. If you are in a terminal window, close it or return to the crosh shell. - Open a crosh shell. Press Ctrl+Alt+T to open crosh, then type
shelland press Enter. If you're already in a shell (e.g., from a Linux terminal), you can skip this step. - List your existing chroots (optional). Run
sudo edit-chroot -lto see all chroots installed. Note the exact name of the one you want to remove—it's usually something likeprecise,trusty,xenial, or a custom name you set. - Delete the chroot. Run the following command, replacing
chrootnamewith your actual chroot name:sudo delete-chroot chrootname
For example:sudo delete-chroot trusty. This removes the main chroot directory and its associated files. - Remove the Crouton scripts and downloaded installer. If you want to fully uninstall Crouton itself, delete the
/usr/local/bin/croutonfile and the downloadedcroutonscript from your Downloads folder. Use:sudo rm /usr/local/bin/crouton
andrm ~/Downloads/crouton(or wherever you saved it). - Clean up leftover directories (optional). Some Crouton versions leave a
/usr/local/chrootsdirectory even after deletion. Check withls /usr/local/chroots—if it's empty or you don't need it, remove it withsudo rm -rf /usr/local/chroots. Be careful: this deletes all chroots, so only do this if you've removed all of them. - Verify the removal. Run
sudo edit-chroot -lagain—it should show no chroots. Also check disk space withdf -hto confirm the freed space. - Reboot your Chromebook. This ensures all processes are cleaned up and the system is back to normal.
Tips
- Double-check the chroot name. Deleting the wrong chroot is irreversible. Always list chroots first with
sudo edit-chroot -land copy the exact name. - No undo. The
delete-chrootcommand permanently removes the Linux environment. There is no recycle bin. If you're unsure, back up first. - If delete-chroot fails, try manual removal. In rare cases, the command may error. You can manually delete the chroot directory with
sudo rm -rf /usr/local/chroots/chrootname, but this is riskier—only do it if you know what you're doing. - Powerwash as a last resort. If you're having trouble or want to wipe everything, a Powerwash (Settings > Advanced > Reset settings > Powerwash) restores the Chromebook to factory state, removing all chroots and Crouton files. This also erases all local data, so use it only if you don't mind losing everything.
Serving Suggestions
After removing the chroot, you can use the freed disk space for more Chrome apps, Android apps, or Linux (Crostini) if you want a more integrated Linux environment. Crostini runs in a VM and is easier to manage than Crouton, with simple uninstall through Chrome OS settings.
Variations
- Remove multiple chroots. Run
sudo delete-chrootfor each chroot name listed, one at a time. - Keep Crouton but remove one chroot. If you have several chroots and only want to delete one, just run the delete command for that specific chroot. Crouton itself stays installed.
- Reinstall later. If you think you'll want Linux again, you can download the Crouton script again and create a new chroot. The process is the same as the original install.
Storage and Reheating
This is a one-time operation; there's no storage or reheating. However, after removal, the freed disk space is immediately available. If you later reinstall Crouton, the new chroot will take up space again. There are no leftovers to manage, but you may want to reboot once to ensure all system processes are clean.
Frequently Asked Questions
Will removing the chroot delete my files inside it?
Yes, absolutely. The chroot is a self-contained directory, and deleting it removes everything inside, including user files, installed packages, and settings. Back up anything you need before running the delete command.
Do I need to be in developer mode to remove the chroot?
Yes, you need developer mode enabled because Crouton only works in developer mode. The removal commands require shell access, which is only available in developer mode. If you've already disabled developer mode, you'll need to re-enable it (which wipes your Chromebook) before you can remove the chroot.
What's the difference between delete-chroot and just deleting the folder?
The delete-chroot script is safer because it checks for mounted processes and cleans up properly. Manually deleting the folder can leave behind mounted filesystems or broken symlinks. Use the script unless it fails.
Will removing Crouton affect my Chrome OS data?
No, Crouton runs in a separate environment. Removing it only affects the Linux chroot and the Crouton scripts. Your Chrome OS profile, bookmarks, apps, and files in Downloads remain untouched.
Can I remove the chroot without a terminal?
No, you need terminal access. If you can't open crosh or a shell, you can't run the delete commands. In that case, a Powerwash is the only way to remove the chroot, but it also resets your Chromebook entirely.
What if I get a 'permission denied' error?
Make sure you're using sudo before the commands. If you still get errors, check that you're in developer mode and that the chroot name is correct. Sometimes the chroot is mounted; try rebooting first to unmount it.