Skip to content

Instantly share code, notes, and snippets.

@jmewes

jmewes/README.md Secret

Last active May 11, 2017 06:56
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 jmewes/c694fd757e2f1c5eb042261461fda560 to your computer and use it in GitHub Desktop.
Save jmewes/c694fd757e2f1c5eb042261461fda560 to your computer and use it in GitHub Desktop.
CentOS: How to create a bootable CentOS pendrive?
# 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