Skip to content

Instantly share code, notes, and snippets.

@dylansalim3
Created November 22, 2020 16:37
Show Gist options
  • Save dylansalim3/016bfe0a1739564d78c377d00644109c to your computer and use it in GitHub Desktop.
Save dylansalim3/016bfe0a1739564d78c377d00644109c to your computer and use it in GitHub Desktop.
Create bootable usb through Linux terminal (ONLY FOR LINUX ISO)
//check dev id
sudo fdisk -l
sample output:
Disk /dev/sdc: 14.3 GiB, 15376000000 bytes, 30031250 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
//Unmount the usb
umount /dev/{dev_id}
//Format usb
sudo mkfs.ext /dev/{dev_id}
// creating usb using dd command
sudo dd if={iso_path} of=/dev/{dev_id}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment