Skip to content

Instantly share code, notes, and snippets.

@MikaelElkiaer
Created January 9, 2020 19:10
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 MikaelElkiaer/9e313481e23736825cc40a40ebf6cc49 to your computer and use it in GitHub Desktop.
Save MikaelElkiaer/9e313481e23736825cc40a40ebf6cc49 to your computer and use it in GitHub Desktop.
wipefs and dd image to device
#!/bin/sh
echo -n "Specify device to install on:"
read DEVICE
echo -n "Specificy path for image to be installed:"
read IMAGE_PATH
sudo wipefs --all ${DEVICE}
sudo dd bs=4M if=$IMAGE_PATH of=${DEVICE} status=progress oflag=sync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment