f3fix
Edit the partition table of a fake flash drive.
TLDR
Fill a fake flash drive with a single partition that matches its real capacity
$ sudo f3fix [/dev/device_name]
Mark the partition as bootable
$ sudo f3fix --boot [/dev/device_name]
Specify the filesystem
$ sudo f3fix --fs-type=[filesystem_type] [/dev/device_name]