-
-
Save jmewes/c694fd757e2f1c5eb042261461fda560 to your computer and use it in GitHub Desktop.
CentOS: How to create a bootable CentOS pendrive?
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
# Find out device name of pen-drive | |
lsblk | |
USB_DEVICE_NAME= | |
# Download CentOS | |
cd ~/Downloads | |
ISO_NAME=CentOS-6.7-x86_64-LiveCD.iso | |
wget http://mirror.nsc.liu.se/centos-store/6.7/isos/x86_64/$ISO_NAME | |
# Create the bootable stick, if the USB device name is set | |
if [ -n $USB_DEVICE_NAME ]; then | |
sudo dd if=$ISO_NAME of=/dev/$USB_DEVICE_NAME | |
fi | |
# Then eject the pen-drive properly |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://superuser.com/questions/352598/how-to-find-the-dev-name-of-my-usb-device/516476#516476