Skip to content

Instantly share code, notes, and snippets.

@misheska
Last active December 14, 2018 00:17
Show Gist options
  • Save misheska/2c3b032eaf529b1b5176bfa1560a10d5 to your computer and use it in GitHub Desktop.
Save misheska/2c3b032eaf529b1b5176bfa1560a10d5 to your computer and use it in GitHub Desktop.
# Example creating a "noprompt" ISO from c:\iso with ocsdimg
oscdimg -m -o -u2 -udfver102 -bootdata:2#p0,e,b"c:\iso\boot\etfsboot.com"#pEF,e,b"c:\iso\efi\microsoft\boot\efisys.bin" "c:\iso" "%USERPROFILE%\Desktop\windows_noprompt.iso"
# -m Ignore the maximum size limit of the image
# -o Optimize by removing duplicate files
# -u2 UDF file system ISO image
# -udfver102 UDF version will be 1.02
# -bootdata:2 Specifies there will be two boot catalog entires, delimited by #
# p0,e,b<Path>
# p - Specifies value to use for platform ID in the El Torito catalog. 0x00 represents a BIOS system
# e - Disables floppy disk emulation in the El Torito catalog
# b - Specifies the El Torito boot sector file
# pEF,e,b<Path>
# p - Specifies value to use for platform ID in the El Torito catalog. 0XEF represents an EFI system
# e - Disables floppy disk emulation in the El Torito catalog
# b - Specifies the El Torito boot sector file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment