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!

  • 1
    Check for the battery pack? – Daniel R Hicks Dec 2 '13 at 22:50
up vote 7 down vote accepted

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

  • What do you mean by "anything meaningful"? If I run fdisk on my win7.iso, I get four lines about sector size, etc. I still don't think it's hybrid. paste.ee/p/r60ZR. Could you be more explicit please? – Mads Skjern May 13 at 1:22

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.

You can run head -c 512 thefile.iso > bytes.txt.

In a proper non-hybrid ISO the bytes should all be zeros (maybe not visible by default in your text editor). Though in theory they could contain any random garbage, so in a non-zero case it is harder to confirm if it is a hybrid without more in-depth analysis of the bytes.

For Windows users you can install the gnuwin32 coreutils package to get that command.

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.