Instantly share code, notes, and snippets.

@jmewes /README.md Secret
Last active May 11, 2017

Embed
What would you like to do?
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
@jmewes

This comment has been minimized.

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