How to create “Chromebook Recovery USB” from Ubuntu Linux PC and save image for later use

Google has provided “Chromebook Recovery Utility” Chrome app to create Recovery USB/SD card Media to restore Chromebook to Factory Reset state. Usually Powerwash in Settings of Chrome can also restore back – it just restore back the Chrome OS installation. But this Chrome app utility will restore back the entire SSD to factory reset state (i.e., capable of wipe out all Linux paritions if you had installed ChrUbuntu, so that you claim back entire SSD for Chrome OS again).

chrome-osBut unfortunately this Recovery Utility Chrome app is not supported in Linux OS such as Ubuntu, Linux Mint, Fedora, Debian, etc. (it works in Windows and Mac Chrome browser installations only). As a developer friendly Google, there is an official Linux script to do this which is hidden inside this Recovery Help Page from Google.

What you need?
  1. Minimum 4GB USB Pen drive or SD Card
  2. Linux Computer (Chrome browser is not necessary)
How to do it?
  1. Download the Recovery script from Google official Repository here.
  2. Run: $ chmod 755 linux_recovery.sh
  3. Run: $ sudo bash linux_recovery.sh
  4. Answer prompts sincerely – plug in USB Drive / SD Card while prompted, you are done!
  5. Remove the Media from Linux PC.
  6. I assume your Chromebook already shows “Chrome OS is missing or damaged” error screen. Shutdown Chromebook. Plug in Recovery Media we prepared.
  7. Power on Chromebook. It should automatically detect the Recovery media and start recovering. Hey! Now you have Fresh Chrome OS installation wizard!

Here are the Linux terminal session logs for your reference:

karuppuswamy@HomePC ~ $ chmod 755 linux_recovery.sh
karuppuswamy@HomePC ~ $ sudo bash linux_recovery.sh
[sudo] password for karuppuswamy:

 

===================================================================
This tool is in maintenance mode.
Try the new Chromebook Recovery Utility on Chrome OS, Windows, or Mac.
For more information, visit http://www.google.com/chromeos/recovery.
===================================================================

Working in /tmp/tmp.crosrec/
Downloading config file from https://dl.google.com/dl/edgedl/chromeos/recovery/recovery.conf

 

If you know the Model string displayed at the recovery screen,
type some or all of it; otherwise just press Enter:

 

PEPPY

 

This may take a few minutes to print the full list…

There are up to 75 recovery images to choose from:

0 – <quit>
49 – Acer C720 Chromebook
channel: stable-channel
pattern: ^PEPPY .*

 

Please select a recovery image to download:

 

49

 

Downloading image zipfile from https://dl.google.com/dl/edgedl/chromeos/recovery/chromeos_7262.57.0_peppy_recovery_stable-channel_mp-v2.bin.zip

 

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 498M 100 498M 0 0 54143 0 2:40:56 2:40:55 0:00:01 58359
Unpacking the zipfile
Archive: chromeos_7262.57.0_peppy_recovery_stable-channel_mp-v2.bin.zip
inflating: chromeos_7262.57.0_peppy_recovery_stable-channel_mp-v2.bin

I found 1 USB drive.

 

We need one with at least 1460MB capacity.

 

0 – <quit>

 

1 – Use /dev/sdc 16008MB SanDisk Cruzer Blade

 

Tell me what to do (or just press Enter to scan again): 1

 

Is this the device you want to put the recovery image on?

 

/dev/sdc 16008MB SanDisk Cruzer Blade

 

You must enter ‘YES’ (all uppercase) to continue: YES

 

I’m really going to erase this device. This will permanently ERASE
whatever you may have on that drive. You won’t be able to undo it.

 

/dev/sdc 16008MB SanDisk Cruzer Blade

 

If you’re sure that’s correct, enter ‘DoIt’ now (case is important): DoIt

 

Installing the recovery image

unmounting…
copying… (this may take several minutes)
364+1 records in
365+0 records out
1530920960 bytes (1.5 GB) copied, 377.378 s, 4.1 MB/s

 

Done.

 

Remove the USB drive and insert it in your Chrome notebook.

 

Shall I remove the temporary files now? [y/n] y

The recovery image is downloaded in a temporary directory under /tmp path. Before completing the script, you can copy this image to other directory for archival purpose if you need. Here is Linux terminal log for the same:

karuppuswamy@HomePC ~ $ find /tmp -name chromeos_7262.57.0_peppy_recovery_stable-channel_mp-v2.bin
/tmp/tmp.crosrec/chromeos_7262.57.0_peppy_recovery_stable-channel_mp-v2.bin
find: `/tmp/pulse-PKdhtXMmr18n’: Permission denied
karuppuswamy@HomePC ~ $ ls -l /tmp/tmp.crosrec/chromeos_7262.57.0_peppy_recovery_stable-channel_mp-v2.bin
-rw-r—– 1 root root 1530888192 Oct 1 12:59 /tmp/tmp.crosrec/chromeos_7262.57.0_peppy_recovery_stable-channel_mp-v2.bin

 

Share this post

Leave a Reply

Your email address will not be published. Required fields are marked *