Skip to content

Instantly share code, notes, and snippets.

@deomorxsy
Last active September 9, 2020 00:48
Show Gist options
  • Save deomorxsy/1cfaed037c7370c7d0200cec7e955f64 to your computer and use it in GitHub Desktop.
Save deomorxsy/1cfaed037c7370c7d0200cec7e955f64 to your computer and use it in GitHub Desktop.
Setting up a bootable USB drive. Works for Linux's ISOs; tested with Arch and Manjaro.

Is it previously booted?

wipefs --all /dev/sd[letter]

Is it currently for file storage? OK.*

mkfs.vfat -n 'PENDRIVE NAME' -I /dev/sd[letter]

Setting the actual .ISO**

dd bs=4M if=path/to/ISO of=/dev/sd[letter] status=progress oflag=sync

Check your partition tables in order to see if it is isohybrid (you can do it before all this process with the .ISO tho.)

fdisk -l /dev/sd[letter]
  1. PS1: * 'PENDRIVE NAME' doesn't need the single quotation marks.
  2. PS2: ** Careful with your disk. Be sure to select the USB device or you will wipe your HD.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment