Skip to content
This repository was archived by the owner on Jan 25, 2024. It is now read-only.

Preparing the boot medium

Apacelus edited this page Jul 30, 2023 · 6 revisions

As mentioned in prerequisites, you will need a boot medium. EITHER of the following will work:

  • SD-card.
  • USB-drive.
  • Any other kind of storage medium that your Chromebook/box is be able to read.


Once you have your storage medium, follow the steps below.

Note: Replace insert_device with your storage name.**

  1. Make sure there are no important files on it as wiping will delete everything.
  2. Wipe the drive, either via GUI or with wipefs -af /dev/insert_device. Be careful not to accidentally wipe the wrong device.
  3. Create a GPT layout with parted -s /dev/insert_device mklabel gpt
  4. Create the kernel partition with parted -s -a optimal /dev/insert_device unit mib mkpart Kernel 1 insert_size. Replace insert_size with your kernel size in MB + 20MB. For example, if your kernel is 60mb, replace insert_size with 70.
  5. Create the rootfs partition with parted -s -a optimal /dev/insert_device unit mib mkpart Root insert_size 100%. Replace insert_size with the number you used in the previous step.
  6. Add the correct labels to the kernel partition with cgpt add -i 1 -t kernel -S 1 -T 5 -P 15 /dev/insert_device
  7. To format the rootfs partition, you will need to figure out what it's called. It will be either /dev/insert_devicep2 or /dev/insert_device2 (notice the missing 'p' in the second example). Once you have your device partition, format it with mkfs.ext4 /dev/insert_device_with_partition. You can also use other storage formats, for example: mkfs.btrfs or mkfs.f2fs.

Clone this wiki locally