Ceci est une ancienne révision du document !


Déterminer si une ISO est hybride

Les images ISOs hybrides ont l'avantage de pouvoir être directement posées sur une clef USB pour être bootées depuis la clef USB.

Bien sur toutes les images ISO ne sont pas hybrides.

Pour déterminer si un fichier iso est hybride ou non : un fichier hybride possède une table de partition (alors qu'un non hybride non :p)

Il suffit donc de regarder cette table de partition (oupa) avec fdisk :

  • fdisk /chemin/vers/fichier/iso
  • puis appuyer sur p puis entree pour afficher l'eventuelle table de partition
  • ensuite quitter en appuyant sur q puis entree

Exemple avec une ISO hybride : on voit bien une partition

 fdisk /srv/isos/CentOS-6.6-i386-bin-DVD1.iso

Command (m for help): p

Disk /srv/isos/CentOS-6.6-i386-bin-DVD1.iso: 4029 MB, 4029677568 bytes
64 heads, 32 sectors/track, 3843 cylinders, total 7870464 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x594e9f46

                                 Device Boot      Start         End      Blocks   Id  System
/srv/isos/CentOS-6.6-i386-bin-DVD1.iso1   *           0     7870463     3935232   17  Hidden HPFS/NTFS
Attention fdisk est un outil puissant : faites attention à ce que vous faites ;p

Exemple avec une ISO non hybride : pas de table de partition valide :

# fdisk /srv/isos/debian-40r9-i386-netinst.iso 
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x8e5889ce.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): p

Disk /srv/isos/debian-40r9-i386-netinst.iso: 168 MB, 168785920 bytes
255 heads, 63 sectors/track, 20 cylinders, total 329660 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x8e5889ce

                                 Device Boot      Start         End      Blocks   Id  System
sysadmin/tips/hybrid_iso.1434120409.txt.gz · Dernière modification: 2015/06/12 16:46 par james
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0