Skip to content

Instantly share code, notes, and snippets.

@ukscone
Last active July 28, 2018 01:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ukscone/673a24c171964cb787629485abde449b to your computer and use it in GitHub Desktop.
Save ukscone/673a24c171964cb787629485abde449b to your computer and use it in GitHub Desktop.
Using Chromebrew when you have an irrational fear of wearing out emmc/ssd's
  1. partition usb drive using preferred linux partitioning tool

  2. formst a partition as ext4

sudo mkfs.ext4 /dev/sdb1 -L usb3drive

  1. install chromebrew as per instructions in the chromebrew repo

curl -Ls git.io/vddgY | bash

  1. use chromebrew to install rsync

crew install rsync

  1. copy the chromebrew setup to usb using rsync

sudo rsync -a -v /usr/local/ /media/removable/usb3drive/

  1. delete chromebrew from /usr/local

sudo rm -rf /usr/local

  1. add following to bottom of .bashrc
MNTPNT=`mount | grep sda1 | awk '{print $3}'`
if [ "$MNTPNT" == "/media/removable/usb3drive" ]
then
  sudo umount /dev/sda1
  sudo mount -o owner /dev/sda1 /usr/local
fi
  1. exit/reboot

  2. be happy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment