Modificar el contenido de una imagen ISO bootable

Puede darse el caso en que necesitemos modificar el contenido de una imagen ISO bootable. Por ejemplo, queramos añadir o modificar algún fichero dentro de la ISO y queremos que siga siendo bootable.

Esto es muy sencillo de hacer en Linux con mkisofs.

Se entenderá mejor con un ejemplo:

[root@centostst1 iso]# mkisofs -o ../centostst1_modificada.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -T .I: -input-charset not specified, using utf-8 (detected in locale settings)
genisoimage 1.1.11 (Linux)
Scanning .
Scanning ./isolinux
Excluded by match: ./isolinux/boot.cat
Writing: Initial Padblock Start Block 0
Done with: Initial Padblock Block(s) 16
Writing: Primary Volume Descriptor Start Block 16
Done with: Primary Volume Descriptor Block(s) 1
Writing: Eltorito Volume Descriptor Start Block 17
Size of boot image is 4 sectors -> No emulation
Done with: Eltorito Volume Descriptor Block(s) 1
Writing: Joliet Volume Descriptor Start Block 18
Done with: Joliet Volume Descriptor Block(s) 1
Writing: End Volume Descriptor Start Block 19
Done with: End Volume Descriptor Block(s) 1
Writing: Version block Start Block 20
Done with: Version block Block(s) 1
Writing: Path table Start Block 21
Done with: Path table Block(s) 4
Writing: Joliet path table Start Block 25
Done with: Joliet path table Block(s) 4
Writing: Directory tree Start Block 29
Done with: Directory tree Block(s) 3
Writing: Joliet directory tree Start Block 32
Done with: Joliet directory tree Block(s) 2
Writing: Directory tree cleanup Start Block 34
Done with: Directory tree cleanup Block(s) 0
Writing: Extension record Start Block 34
Done with: Extension record Block(s) 1
Writing: The File(s) Start Block 35
5.97% done, estimate finish Wed May 16 13:26:02 2018
11.93% done, estimate finish Wed May 16 13:26:02 2018
17.90% done, estimate finish Wed May 16 13:26:02 2018
23.85% done, estimate finish Wed May 16 13:26:02 2018
29.82% done, estimate finish Wed May 16 13:26:02 2018
35.77% done, estimate finish Wed May 16 13:26:02 2018
41.74% done, estimate finish Wed May 16 13:26:02 2018
47.69% done, estimate finish Wed May 16 13:26:04 2018
53.66% done, estimate finish Wed May 16 13:26:03 2018
59.61% done, estimate finish Wed May 16 13:26:03 2018
65.58% done, estimate finish Wed May 16 13:26:03 2018
71.53% done, estimate finish Wed May 16 13:26:03 2018
77.50% done, estimate finish Wed May 16 13:26:03 2018
83.45% done, estimate finish Wed May 16 13:26:03 2018
89.42% done, estimate finish Wed May 16 13:26:03 2018
95.38% done, estimate finish Wed May 16 13:26:03 2018
Total translation table size: 5365
Total rockridge attributes bytes: 1682
Total directory bytes: 4096
Path table size(bytes): 26
Done with: The File(s) Block(s) 83697
Writing: Ending Padblock Start Block 83732
Done with: Ending Padblock Block(s) 150
Max brk space used 0
83882 extents written (163 MB)
[root@centostst1 iso]#

En este caso, he modificado una ISO que había creado con REAR, previamente.

COMPÁRTEME

Deja un comentario