Mkisofs: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
m Corrected link to man 8 mkisofs
m Bot: Replace deprecated source tag with syntaxhighlight
 
(11 intermediate revisions by 6 users not shown)
Line 1:
mkisofs is aan utility that creates an [[ISO 9660]] image from files on disk.
 
From the man page for mkisofs,'' "mkisofs is effectively a pre-mastering program to generate the iso9660 filesystem - it takes a snapshot of a given directory tree, and generates a binary image which will correspond to an iso9660 filesystem when written to a block device."''
 
Developers of operating systems will mainly be interested in
Line 9:
== Mkisofs, its Clone, and its Emulator ==
The program '''mkisofs''' is part of the
[http://cdrecord.berlios.de/private/cdrecord.htmlorg cdrtools project]
by Joerg Schilling.
<Sourcesyntaxhighlight lang=bash>
prog="mkisofs"
</syntaxhighlight>
</Source>
 
Some quarrels with the GNU/Linux community caused a fork of cdrtools,
Line 19:
is named '''genisoimage'''. You will find it installed as "mkisofs"
on many popular GNU/Linux distributions.
<Sourcesyntaxhighlight lang=bash>
prog="genisoimage"
</syntaxhighlight>
</Source>
 
An independent alternative to mkisofs is GNU's
[http://www.gnu.org/software/xorriso/ xorriso], which has an
emulation mode that understands the options which are used with
Line 29:
have it either as package "xorriso" or as part of "libisoburn".
GRUB2 script grub-mkrescue depends on xorriso-0.5.6 or newer.
<Sourcesyntaxhighlight lang=bash>
prog="xorriso -as mkisofs"
</syntaxhighlight>
</Source>
 
Even the Linux distributions that ship genisoimage considers it
[https://wiki.debian.org/genisoimage outdated and bugged]. If you are
not using the UDF hybrid feature of genisoimage, you should
probably use xorriso on these systems instead. For EFI, xorriso is
mandatory.
 
'''Warning''': Defaults of '''xorriso -as mkisofs''' emulation might deviate from those of '''mkisofs'''.
E.g. up to xorriso version 1.4.8 not specifying '''-boot-load-size''' assumed a default of four sectors instead of the entire boot file.
 
== Options and input files ==
Line 138 ⟶ 147:
as /tmp/youriso.iso:
 
<sourcesyntaxhighlight lang="bash">
$prog -U -b boot.img -hide boot.img \
-V "Your Name..." -iso-level 3 -o /tmp/youriso.iso /tmp/deploy
</syntaxhighlight>
</source>
 
Note that the ISOPATH for option '''-b''' is relative to the
Line 150 ⟶ 159:
For more examples see [[El-Torito]].
 
=== Under windowsWindows ===
Windows version of mkisofs(through cdrtools) can be downloaded from ftp://ftp.berlios.de/pub/cdrecord/alpha/win32.
The following command(inside cygwin) can be used to create bootable iso image without using floopy image.
<sourcesyntaxhighlight lang="winbatch">
mkdir -p $ISO_DIR/boot/grub
cp $GRUB_BIN/stage2_eltorito $ISO_DIR/boot/grub
Line 160 ⟶ 169:
mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o bootcd.iso $ISO_DIR
</syntaxhighlight>
</source>
 
== See Also ==
Line 172 ⟶ 181:
=== External Links ===
* [http://cdrtools.sourceforge.net/private/man/cdrecord/mkisofs.8.html man 8 mkisofs] Manual of mkisofs
* [httphttps://linuxwww.diemankier.net/mancom/1/genisoimage man 1 genisoimage] Manual of genisoimage
* [httphttps://www.gnumankier.orgcom/software1/xorriso/man_1_xorrisofs.htmlxorrisofs man 1 xorrisofs] Manual of xorriso's emulation of mkisofs
 
[[Category:Disk Image Utilities]]