Skip to content

Instantly share code, notes, and snippets.

@ThinGuy
Last active January 29, 2023 10:51
Show Gist options
  • Save ThinGuy/0a7df6db6bebd1fedb183181fc20efc9 to your computer and use it in GitHub Desktop.
Save ThinGuy/0a7df6db6bebd1fedb183181fc20efc9 to your computer and use it in GitHub Desktop.
Create ChromeOS Recovery Media from Linux Computer
#!/bin/bash
###NOTE###
# This requires requires linux to create a ChromeOS Recovery Image.
printf "\e[2GCreate ChromeOS Recovery media using Linux machine...\n\n"
printf "\e[2G - Please ensure a (min) 4GB USB disk is plugged in, then hit ENTER.\n"
read CONT
printf "\e[2G - Downloading https://dl.google.com/dl/edgedl/chromeos/recovery/linux_recovery.sh\n"
curl -sSlL -o ~/linux-recovery.sh https://dl.google.com/dl/edgedl/chromeos/recovery/linux_recovery.sh
[[ $? -eq 0 ]] && chmod +x ~/linux-recovery.sh || { printf "\e[2G\e[1;31mERROR: \e[0mCould not ChromeOS Recovery Script from google.com. Exiting.\n\n";exit 1; }
printf "\e[2G - Running linux_recovery.sh\n\e[2G - Follow the on-screen instructions to create recovery media.\n"
sudo ~/linux-recovery.sh
printf "\e[2G - If you want to alter recovery media to just re-able dev-mode and legacy USB booting\n\e[5Ggrab modify-chromeos-recovery-media.sh from https://bit.ly/chromeos-recovery
printf "\e[2G - Then run ./modify-chromeos-recovery-media.sh to modify the ChromeOS Recovery media\n\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment