ISO to USB Rocky Linux Command Line

This needs to be done from root account.

  1. Install USB drive then at command prompt enter:
    ]# lsblk
    to identify which is your USB drive
  2. At command prompt enter
    ]# umount /dev/sd?*
    where the ? is the letter of the mount point for USB drive.
  3. At command prompt enter
    ]# mkfs.vfat /dev/sd?*
  4. Change to the directory where you have the ISO file you want to burn to USB then enter:
    ]# dd bs=4M if=Rocky-9.0-x86_64-dvd.iso of=/dev/sd? status=progress