Skip to content

Latest commit

 

History

History
57 lines (54 loc) · 2.41 KB

chromefy laptop.md

File metadata and controls

57 lines (54 loc) · 2.41 KB

XDA thread

This guide specifically highlights dual booting Chrome OS with Linux.

1. Create partitions using Gparted:

ROOT-A : 5 GB : ext2  
STATE : about 30 GB or more : ext4

Note down the partition numbers. Example:

ROOT-A : /dev/sda7  
STATE : /dev/sda8

2. Burn USB drive

Use a fast enough USB drive and burn ArnoldTheBat's chromium image in it using Etcher or any other software.

3. Copy files

Mount the ROOT-A and STATE partitions on hard disk and also from the USB drive. Copy all files from ROOT-A of USB drive to ROOT-A of hard disk. Similarly for STATE.

Remove the USB drive...

4. Download Chrome OS files

From the link to XDA thread, download chromefy.sh script, eve and caroline images. Unpack the zips in the same directory (say ~/Downloads).

5. Patch the Chromium OS build

From step-1 see the ROOT-A partition number. For me it was /dev/sda7. Substitute it in the following commands as needed.

ROOT_PARTITION="/dev/sda7"  
cd </path/to/chromefy+chromeos_images>  
sudo bash ./chromefy.sh $ROOT_PARTITION <chromeos_eve_image.bin> <chromeos_caroline_recovery_image.bin>  

Important
If you are told that the partition was previously mounted and if you would like to continue, hit n.

6. Edit the partition layout

Go to nautilus (or any other file manager) and mount the ROOT-A partition

cd /media/<username>/<name_of_ROOT-A_partition_in_hdd>/usr/sbin  
sudo cp write_gpt.sh write_gpt.sh.bak  
sudo gedit write_gpt.sh

Search for base_vars and partition_vars. Edit the partition numbers of ROOT-A and STATE from step-1 and remove all other partition information. The size of ROOT-A and STATE need not be altered.
Save the file and maintain a copy of it.

sudo cp /media/<username>/<name_of_ROOT-A_partition_in_hdd>/usr/sbin/write_gpt.sh /home/<username>/

7. Make a boot entry

sudo update-grub

An entry "Chrome (on /dev/sdaX)" should be now present in GRUB entry.

8. Force enable developer mode

Navigate to /boot/grub and edit the grub.cfg file.

sudo gedit /boot/grub/grub.cfg

Search for "Chrome" and add cros_debug in the end of the following line as shown:

linux /boot/vmlinuz-4.14.67 root=/dev/sda7 cros_debug

This should preferably be in the main menuentry.

9. Reboot to Chrome OS and enjoy!