This repository was archived by the owner on Jan 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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_devicewith your storage name.**
- Make sure there are no important files on it as wiping will delete everything.
- Wipe the drive, either via GUI or with
wipefs -af /dev/insert_device. Be careful not to accidentally wipe the wrong device. - Create a GPT layout with
parted -s /dev/insert_device mklabel gpt - Create the kernel partition with
parted -s -a optimal /dev/insert_device unit mib mkpart Kernel 1 insert_size. Replaceinsert_sizewith your kernel size in MB + 20MB. For example, if your kernel is 60mb, replaceinsert_sizewith70. - Create the rootfs partition with
parted -s -a optimal /dev/insert_device unit mib mkpart Root insert_size 100%. Replaceinsert_sizewith the number you used in the previous step. - Add the correct labels to the kernel partition with
cgpt add -i 1 -t kernel -S 1 -T 5 -P 15 /dev/insert_device - To format the rootfs partition, you will need to figure out what it's called. It will be
either
/dev/insert_devicep2or/dev/insert_device2(notice the missing 'p' in the second example). Once you have your device partition, format it withmkfs.ext4 /dev/insert_device_with_partition. You can also use other storage formats, for example:mkfs.btrfsormkfs.f2fs.