How do I determine if an ISO is a hybrid?
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Cosmic Puzzle
--
Chapters
00:00 How Do I Determine If An Iso Is A Hybrid?
00:31 Answer 1 Score 16
01:19 Accepted Answer Score 12
01:34 Answer 3 Score 3
02:18 Answer 4 Score 2
02:52 Answer 5 Score 2
03:14 Thank you
--
Full question
https://superuser.com/questions/683210/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#linux #usb #isoimage
#avk47
ANSWER 1
Score 16
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
ACCEPTED ANSWER
Score 12
Run fdisk on the file. If it shows anything meaningful, it is hybrid.
ANSWER 3
Score 3
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.
ANSWER 4
Score 2
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.
ANSWER 5
Score 2
This detects a partition table, not present at non-hybrid ROM media:
cat romdisk.iso 2>/dev/null | head -c 512 | tail -c 2 | xxd -p | grep -ie '55aa$'
What I don't know how to determine is between hybrid-ISO and harddisk image:
cat disk.img 2>/dev/null | head -c 512 | hexdump -vC