Created
January 9, 2020 19:10
-
-
Save MikaelElkiaer/9e313481e23736825cc40a40ebf6cc49 to your computer and use it in GitHub Desktop.
wipefs and dd image to device
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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