Note: This project was originally forked from reynhout/chrx. The project has been completely rewritten since, and is now only a partitioning tool. It does not include any feature to install an alternate operating system, you must do that yourself.
This tool works on all Chromebook models. See documentation.
Resize the user-data partition on the disk to make room for an alternate OS. This script supports non-destructive resizing of the filesystem, so you won't have to worry about your data being wiped!
Fix a bug that causes libparted to error and be unable to detect existing partitions.
If you're installing an operating system that uses an affected version of libparted, you will need
to do this or the installer will fail to recognize existing partitions, which effectively wipes
the disk when you install it.
See this bug for more info.
Reset the ChromeOS user data partition to a factory state.
Running this script does not require you to have valid RW_LEGACY firmware installed, but this is currently the recommended method for dual booting another operating system alongside ChromeOS on x86_64-based hardware. See MrChromebox's Firmware Utility Script for installing RW_LEGACY firmware.
- Ensure you're in developer mode and connected to WiFi.
- Open VT2 using
[ Ctrl ] [ Alt ] [ → ]
(F2), login asroot
(notchronos
)- Note: the script cannot be run with crosh on any version of ChromeOS.
- Note 2: you can also run the script while booted into your alternate OS!
- Run the script!
- Run
bash <(curl https://raw.githubusercontent.com/chrultrabook/crap/master/crap)
- URL shortened version:
bash <(curl -L https://tinyurl.com/crap-cb-01)
- Run
- The script will walk you through the steps to make room for an alternate OS.
CRAP - main menu
CRAP - resizing stateful partition
- We do NOT EVER use the KERN-C or ROOT-C partitions NO
- MrChromebox/scripts, for reference
- chromeos-common, for some adapted code (namely get_largest_nvme_namespace)
- reynhout/chrx's setup-storage script, for reference
- bendavis78's resize-stateful-partition, for reference
- honorable mention: ethanmad/chromeos-resize