How do I determine if an ISO is a hybrid?

According to this: http://en.wikipedia.org/wiki/ISO_image#Description

"A more recent example is the release of hybrid ISO files that can be booted or started from both BD or DVD and USB flash drive devices when the image is written to any of these storage devices."

How do I use standard Linux tools to determine if the ISO I have downloaded (edit: or created via genisoimage) is a hybrid?

Thanks!


Run fdisk on the file. If it shows anything meaningful, it is hybrid.


Run the file command on the ISO image in question. The output from running this command on a non-hybrid ISO will look something like this

image.iso: ISO 9660 CD-ROM filesystem data 'foo' (bootable)

while the output from running this command on a hybrid ISO will look something like this

image.iso: DOS/MBR boot sector ISO 9660 CD-ROM filesystem data (DOS/MBR boot sector) 'foo' (bootable); partition 1 : ID=0x17, active, start-CHS (0x0,0,1), end-CHS (0x288,63,32), startsector 0, 1329152 sectors


You can use this script to check the ISO image (-i flag for "inspect")

https://github.com/jsamr/bootiso

bootiso -i "your iso image"

Create a USB bootable device from an ISO image easily and securely.

Don't want to messup the system with dd command? Create a bootable USB from an ISO in one line [see it in action].

Works seamlessly with hybrid and non-hybrid ISOs (SYSLINUX or UEFI compliant) such as any linux ISO, Windows ISO or rescue live-cds like UltimateBootCD. You don't have to tweak anything: bootiso inspects the ISO file and chooses the best method to make your USB bootable.