Difference between revisions of "Mkisofs"


From Knoppix Documentation Wiki
Jump to: navigation, search
(-J)
(-v)
Line 23: Line 23:
  
 
==-v==
 
==-v==
 +
Verbose execution. If given twice on the command line, extra debug information will be printed.
 +
 
==-V==
 
==-V==
 
==-no-emul-boot==
 
==-no-emul-boot==

Revision as of 15:14, 5 July 2006

The mkisofs tool is used for premastering iso9660 filesystems which are used on CD or DVD. The output of mkisofs can be used in two ways. One, a file can be created for later recording onto a blank CD media. Two, mkisofs and cdrecord can be chained together with a pipe. The output of mkisofs is then sent to a CDROM writer with a utility such as cdrtools

Ya'll we could use some example commands here for easy reference.

-pad

Pad the end of the whole image by 150 sectors (300 kB). If the option -B is used, then there is a padding at the end of the iso9660 partition and before the beginning of the boot partitions. The size of this padding is chosen to make the first boot partition start on a sector number that is a multiple of 16.

The padding is needed as many operating systems (e.g. Linux) implement read ahead bugs in their filesystem I/O. These bugs result in read errors on one or more files that are located at the end of a track. They are usually present when the CD is written in Track at Once mode or when the disk is written as mixed mode CD where an audio track follows the data track.

To avoid problems with I/O error on the last file on the filesystem, the -pad option has been made the default.

-l

Allow full 31 character filenames. Normally the ISO9660 filename will be in an 8.3 format which is compatible with MS-DOS, even though the ISO9660 standard allows filenames of up to 31 characters. If you use this option, the disc may be difficult to use on a MS-DOS system, but this comes in handy on some other systems (such as the Amiga). Use with caution.

-r

This is like the -R option, but file ownership and modes are set to more useful values. The uid and gid are set to zero, because they are usually only useful on the author's system, and not useful to the client. All the file read bits are set true, so that files and directories are globally readable on the client. If any execute bit is set for a file, set all of the execute bits, so that executables are globally executable on the client. If any search bit is set for a directory, set all of the search bits, so that directories are globally searchable on the client. All write bits are cleared, because the CD-Rom will be mounted read-only in any case. If any of the special mode bits are set, clear them, because file locks are not useful on a read-only file system, and set-id bits are not desirable for uid 0 or gid 0. When used on Win32, the execute bit is set on all files. This is a result of the lack of file permissions on Win32 and the Cygwin POSIX emulation layer. See also -uid -gid, -dir-mode, -file-mode and -new-dir-mode.

-J

Generate Joliet directory records in addition to regular iso9660 file names. This is primarily useful when the discs are to be used on Windows-NT or Windows-95 machines. The Joliet filenames are specified in Unicode and each path component can be up to 64 Unicode characters long. Note that Joliet is no standard - CD's that use only Joliet extensions but no standard Rock Ridge extensions may usually only be used on Microsoft Win32 systems. Furthermore, the fact that the filenames are limited to 64 characters and the fact that Joliet uses the UTF-16 coding for Unicode characters causes interoperability problems.

-v

Verbose execution. If given twice on the command line, extra debug information will be printed.

-V

-no-emul-boot

-boot-load-size

-boot-info-table

-b

-c

-o

-R

-publisher

-cache-inods

-no-bak