Skip to content

Instantly share code, notes, and snippets.

@barbixxxa
Last active April 25, 2020 16:46
Show Gist options
  • Save barbixxxa/82a1a0fb35df0a193efd2c00388b5801 to your computer and use it in GitHub Desktop.
Save barbixxxa/82a1a0fb35df0a193efd2c00388b5801 to your computer and use it in GitHub Desktop.
pendrive stuff
  1. get the USB drive:

lsblk or df -h

  1. umount the drive:
sudo umount /dev/sdXXX
  1. format:
 sudo dd bs=4M if=path/to/input.iso of=/dev/sd<?> conv=fdatasync  status=progress

or

sudo dd if=/path/to/ubuntu.iso of=/dev/sdX bs=4M && sync
  1. get the USB drive:

lsblk or df -h

  1. umount the drive:

sudo umount /dev/sdXXX

  1. format:

sudo mkfs.ext4 /dev/sdXXX

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