'\" t .\" To print, first run through tbl .\" -*- nroff -*- .\" @(#)mkisofs.8 1.89 02/12/24 joerg .\" .if t .ds a \v'-0.55m'\h'0.00n'\z.\h'0.40n'\z.\v'0.55m'\h'-0.40n'a .if t .ds o \v'-0.55m'\h'0.00n'\z.\h'0.45n'\z.\v'0.55m'\h'-0.45n'o .if t .ds u \v'-0.55m'\h'0.00n'\z.\h'0.40n'\z.\v'0.55m'\h'-0.40n'u .if t .ds A \v'-0.77m'\h'0.25n'\z.\h'0.45n'\z.\v'0.77m'\h'-0.70n'A .if t .ds O \v'-0.77m'\h'0.25n'\z.\h'0.45n'\z.\v'0.77m'\h'-0.70n'O .if t .ds U \v'-0.77m'\h'0.30n'\z.\h'0.45n'\z.\v'0.77m'\h'-0.75n'U .if t .ds s \\(*b .if t .ds S SS .if n .ds a ae .if n .ds o oe .if n .ds u ue .if n .ds s sz .TH MKISOFS 8 "24 Dec 2002" "Version 2.0" .SH 名前 mkisofs \- はオプションの Rock Ridge 属性で ISO9660JOLIET/HFS ハイブリッド ファイルシステムを作成する。 .SH 書式 .B mkisofs [ .I options ] [ .B \-o .I filename ] .I pathspec [pathspec ...] .SH 説明 .B mkisofs は効果的に ISO9660/JOLIET/HFS ハイブリッド ファイルシステムを生成するプリマスタリングプログラムである。 .PP .B mkisofs はまた、Rock Ridge Interchange Protocol で指定された System Use Sharing Protocol レコードを生成することができる。これは UNIX ホストへ の ISO9660 ファイルシステムの詳細な説明に使用され、また長いファイル名 や UID/GID、POSIX パーミッション、そしてブロックやキャラクタデバイスの 情報を提供する。 .PP JolietまたはHFSハイブリッドのコマンドラインオプションが指定された時、 .B mkisofs は、JolietまたはHFSのファイルシステムのメタデータも付加して作成する。 この時、ファイル内容はメディアの同じデータブロックを参照する。 JolietまたはHFSハイブリッドのコマンドラインオプションが指定されない時、 純粋なISO9660ファイルシステムが生成される。 .PP .B mkisofs は .I 真の (または .IR 共有 ) HFSハイブリッドファイルシステムを生成できる。同じファイルが、Macintosh からアクセスされた時はHFSファイルに見え、それ以外からアクセスされた時 はISO9660ファイルに見える。HFSは .I Hierarchical File System の略で、Macintoshコンピュータで使われる固有のファイルシステムである。 .PP また、 As an alternative, .B mkisofs は、各ファイルの .I ISO9660のApple拡張 も生成することができる。 この拡張機能は、CREATOR, TYPE 及びある種のファインダーのフラグを、 Macintoshからアクセスされた時に提供する。詳細は、下の .B HFS MACINTOSH FILE FORMATS の章を参照。 .PP .B mkisofs は与えられたディレクトリツリーのスナップショットを撮り、ブロックデバイ スに書き出される際、ISO9660 あるいは HFSファイルシステムのバイナリイメー ジを生成する。 .PP Rock Ridge が使用されていても、それぞれの ISO9660 ファイルシステムに書 き込まれるファイルは、8.3 フォーマット (8 文字、ピリオド、3 文字ですべ て大文字) でファイル名を保持していなければならない。このファイル名は Rock Ridge 拡張を使用するようにできないシステム (MS\-DOS のように) で使 用され、それぞれのファイル名は、それぞれのディレクトリで、同じディレク トリの中では他のファイル名と異なるものでなければならない。 .B mkisofs は一般的に UNIX ファイル名を要求されているように大文字にしたり、省略す ることにより正しい名前を作ろうとするが、省略された名前が全て唯一のもの でない場合があるので、しばしば満足できない結果を出してしまうことがある。 .B mkisofs はそれぞれのファイル名に重み付けをし、もし二つの異なるファイル名が同じ になってしまう場合、プライオリティの低い方は拡張子が 3 桁の数字( 数字は唯一のものと保証される)に変更される。 この例として、ファイル名 foo.bar と foo.bar.~1~ は、foo.bar.~1~ は FOO.000;1 として書き込まれ、そして foo.bar は FOO.BAR;1 として書き込ま れる。 .PP いくつかのHFSオプションをつけて使用された時、 .B mkisofs はApple/Unixファイルフォーマットで保存されたファイルを認識しようとし、 それらのデータとリソースもファインダーと共に、関連するファインダー情報 もコピーしようとする。 .B mkisofs がサポートするフォーマットについての詳細は、以下の .B HFS MACINTOSH FILE FORMATS の章を参照のこと。 .PP .B mkisofs は書き込み機と直接やりとりするために作成されていないことに注意すること。 ほとんどの書き込み機は製造元ごとに異なる独自のコマンドセットを持ってい て、そして実際にディスクを焼くためには専門的なツールが必要である。 .PP .B cdrecord ユーティリティは実際のディスクに書き込みを行うユーティリティである。 最新のバージョンの .B cdrecord は ftp://ftp.berlios.de/pub/cdrecord から持ってくることができる。 .PP また、ほとんどの CD 書き込み機はタイミングに対して非常にうるさい。一度 ディスクを焼きはじめたら、終了する前に書き込み機のバッファを空にさせる ことはできず、空にしてしまうと壊れたディスクができて終わる。従って ディスクが書き込まれているすべての時間に途切れないデータストリームを持 続できることが重要である。 .PP .br .B pathspec は ISO9660 ファイルシステムにコピーするディレクトリツリーのパスである。 複数のパスが指定可能で、 .B mkisofs は CD\-ROM イメージを作成するすべての指定されたパスの組み合わせから見つ けたファイルを組み合わせる。 .PP .I \-graft-points が指定された時、 ルートディレクトリ以外の場所にパスを結合することは可能で、元のファイル システムの中にあるファイルやディレクトリと異なった名前で CD\-ROM イメー ジに結合することができる。これはいくつかの例で図示するのがもっとも簡単 だ。ローカルファイル ../old.lis が存在するものと仮定して、それを CD\-ROM イメージに含めたいとする。 foo/bar/=../old.lis は、CD\-ROM イメージにファイル old.lis を /foo/bar/old.lis に含み、同時に foo/bar/xxx=../old.lis は CD\-ROM イメージにファイル old.lis を /foo/bar/xxx に含む。同じ 種類の文法はディレクトリにも同じように使用することができる。 .B mkisofs は CD\-ROM イメージ上に結合場所が存在するような必要なすべてのディレクト リを作成する。ディレクトリはパスのうちの一つに出現する必要はない。作業 中にこのように作成されるすべてのディレクトリは、パーミッション 0555 を 持ち、mkisofs を実行している人の所有となる。もしあなたが他のパーミッショ ンや中間のディレクトリの所有者を希望した場合、 \-uid, \-gid, \-dir-mode, \-file-mode 及び \-new-dir-mode を参照。 .PP .B mkisofs はCygnusのcygwin(http://sourceware.cygnus.com/cygwin/から利用可能) を用いてコンパイルされれば、Win9X/NT4でも動作する。 この場合このマニュアルの .I Unix への参照は、 .IR Win32 に置き換えることができる。 .SH オプション .TP .BI \-abstract " FILE 要約ファイル名を指定する。このパラメータはファイル .B \&.mkisofsrc で ABST=filename として設定される。 もし両方の場所で指定された場合、コマンドラインで指定したものが使用される。 .TP .BI \-A " application_id ボリュームヘッダに書き込まれる文字列を指定する。これはディスクにあるア プリケーションを説明するであろう。 ディスク上には 128 文字の情報の分の容量がある。 このパラメータはファイル .I \&.mkisofsrc で APPI=id として設定される。 もし両方の場所で指定された場合、コマンドラインのものが使用される。 .TP .B \-allow-lowercase This options allows lower case characters to appear in iso9660 filenames. .br This violates the ISO9660 standard, but it happens to work on some systems. Use with caution. .TP .B \-allow-multidot This options allows more than one dot to appear in iso9660 filenames. A leading dot is not affected by this option, it may be allowed separately using the .B \-L option. .br This violates the ISO9660 standard, but it happens to work on many systems. Use with caution. .TP .BI \-biblio " FILE 書誌情報ファイルを指定する。このパラメータはファイル .B \&.mkisofsrc で BIBLO=filename として設定される。もし両方の場所で指定された場合、コマン ドラインのものが使用される。 .TP .B \-cache-inodes Cache inode and device numbers to find hard links to files. If .B mkisofs finds a hard link (a file with multiple names), then the file will only appear once on the CD. This helps to save space on the CD. The option .B \-cache-inodes is default on UNIX like operating systems. Be careful when using this option on a filesystem without unique inode numbers as it may result in files containing the wrong content on CD. .TP .B \-no-cache-inodes Do not cache inode and device numbers. This option is needed whenever a filesystem does not have unique inode numbers. It is the default on .BR Cygwin . As the Microsoft operating system that runs below .B Cygwin is not POSIX compliant, it does not have unique inode numbers. Cygwin creates fake inode numbers from a hash algorithm that is not 100% correct. If .B mkisofs would cache inodes on Cygwin, it would believe that some files are identical although they are not. The result in this case are files that contain the wrong content if a significant amount of different files (> ~5000) is in inside the tree that is to be archived. This does not happen when the .B \-no-cache-inodes is used, but the disadvantage is that .B mkisofs cannot detect hardlinks anymore and the resulting CD image may be larger than expected. .TP .BI \-b " eltorito_boot_image "El Torito" ブータブル CD を作成するときに使用されるブートイメージのパ スとファイル名を指定する。パス名は .B mkisofs に対して指定している元の相対パスでなければならない。 このオプションは "El Torito" ブータブル CD を作成するのに必須である。 ブートイメージは 1.2MB, 1.44MB または 2.88MB フロッピーの正確なサイズ でなければならず、また .B mkisofs は、ISO9660 ファイルシステムを出力する際にこのサイズを使用する。最初の 512 バイトセクタはブートイメージから読まれるものとされている (通常の フロッピードライブをエミュレートするのに必須である)。これは、たとえば、 もしブートイメージが LILO ベースのブートフロッピーであった場合に働く。 .sp If the boot image is not an image of a floppy, you need to add one of the options: .BR -hard-disk-boot " or " -no-emul-boot . If the system should not boot off the emulated disk, use .BR -no-boot . .TP .B \-eltorito-alt-boot Start with a new set of "El Torito" boot parameters. This allows to have more than one El Torito boot on a CD. A maximum of 63 El Torito boot entries may be put on a single CD. .TP .BI \-B " img_sun4,img_sun4c,img_sun4m,img_sun4d,img_sun4e Sparc システムでのブータブル CD の作成に必要なブートイメージをコンマで 区切られたリストで指定する。 コンマで区切られたリストには空のフィールドがあってもよい。 もし .B \-B または .B \-sparc\-boot オプションが指定されると、作成されるイメージの最初のセクタは Sun ディ スクラベルを含む。このディスクラベルは、スライス 0 は iso9660 イメージ を、スライス 1 .\|.\|. スライス 7 はこのオプションで指定されたブートイ メージを、それぞれ指定する。 各、ブートイメージにあるバイトオフセット 512 .\|.\|. 8191 は適切な sparc アーキテクチャで動くプライマリブートを含まなければならない。 通常は、最初にカーネルの boot 段階で使われる ufs ファイルシステムが残 る部分に含まれる。 .sp 実装されているブート方法は、SunOS 4.x 及び SunOS 5.x に見られるブート 方法である。 しかしこれは、SunOS の内部に依存しているのではなく、 Open Boot prom の性質にのみ依存している。 この理由により、sparc システムを動かせる他の OS でも使えるだろう。 .sp If the special filename .B "..." is used, the actual and all following boot partitions are mapped to the previous partition. If .B mkisofs is called with .BI "\-G " image " \-B " ... all boot partitions are mapped to the partition that contains the iso9660 filesystem image and the generic boot image that is located in the first 16 sectors of the disk is used for all architectures. .TP .BI \-G " generic_boot_image 汎用ブータブル CD を作成する時に使われる汎用ブートイメージのパスと ファイル名を指定する。 .B 汎用ブートイメージ は CD の先頭 16 セクタに置かれる。 先頭の 16 セクタは、iso9660 の最初のボリューム記述子の前に配置される。 もしこのオプションが .B \-sparc\-boot オプションと一緒に使われると、Sun ディスクラベルは汎用ブートイメージの先頭 512 バイトを上書きする。 .BI \-hard\-disk\-boot "El Torito" ブータブル CD の作成に使われるブートイメージが、ハードディ スクイメージであると指定する。ハードディスクイメージは一つのパーティショ ンだけを含むマスターブートレコードで始まらなければならない。 .TP .BI \-no\-emul\-boot "El Torito" ブータブル CD の作成に使われるブートイメージが '非エミュレーション' イメージであると指定する。システムはこのイメージ を、なんらディスクエミュレーションをせずにロードし、実行する。 .BI \-no\-boot "El Torito" CD がブート不可であるとマークされるように指示する。 システムはこのイメージのエミュレートされたドライブを提供するが、標準 のブートデバイスから起動する。 .TP .BI \-boot\-load\-seg " segment_address '非エミュレーション' "El Torito" CD ブートイメージのロードセグメント アドレスを指定する。 .TP .BI \-boot\-load\-size " load_sectors 非エミュレーションモードでロードされる "仮想"(512バイト)セクタの数を指定する。 デフォルトはブートファイルの全部である。 これが 4 の倍数でない場合に問題がある BIOS があるかも知れない。 .TP .BI \-boot\-info\-table CD\-ROM の配置に関する情報の 56 バイトのテーブルが、ブートファイルのオ フセット 8 に置かれることを指示する。 このオプションが与えられると、ブートファイルは作成元となるファイルシス テム上で修正されるので、このファイルが簡単に再作成できないのならちゃんと コピーをとっておくこと。 このテーブルの記述に関しては .B " BOOT INFORMATION TABLE の項を見よ。 .TP .BI \-C " last_sess_start,next_sess_start このオプションは、マルチセッションのディスクで第 2 セッション以降のイメージを 作成するのに .B mkisofs が用いられた場合に必要となる。 この .B \-C オプションは、コンマで区切られた二つの数を引数にとる。一つ目の数は、追 加されるディスクの最後のセッションの最初のセクタ番号である。二つ目の数は 新しいセッションの最初のセクタ番号である。 期待される二つの数は、 .B "cdrecord \-msinfo ... というコマンドの呼び出しで得られる。 If the .B \-C option is used in conjunction with the .B \-M option, .B mkisofs will create a filesystem image that is intended to be a continuation of the previous session. If the .B \-C option is used without the .B \-M option, .B mkisofs will create a filesystem image that is intended to be used for a second session on a CDextra. This is a multi session CD that holds audio data in the first session and a ISO9660 filesystem in the second session. .TP .BI \-c " boot_catalog "El Torito" ブータブル CD を作成する際に使用されるブートカタログのパス とファイル名を指定する。パス名は .B mkisofs に対して指定している元の相対パスでなければならない。このオプションはブー タブル CD を作成するのに必須である。このファイルは .B mkisofs によって元になるファイルシステムの中に作成されるので、黙って上書きされ ないように、指定されたファイル名が存在しているファイルとコンフリクトし ないように注意すること! 通常 "boot.catalog" という名前が選ばれる。 .TP .B \-check-oldnames Check all filenames imported from old session for compliance with actual .B mkisofs iso9660 file naming rules. It his option is not present, only names with a length > 31 are checked as these files are a hard violation of the iso9660 standard. .TP .BI \-check-session " FILE Check all old sessions for compliance with actual .B mkisofs iso9660 file naming rules. This is a high level option that is a combination of the options: .BI \-M " FILE " "\-C 0,0 \-check-oldnames For the parameter .I FILE see description of .B \-M option. .TP .TP .BI \-copyright " FILE 著作権ファイルを指定する。このパラメータはファイル .B \&.mkisofsrc で COPY=filename として設定される。もし両方の場所で指定された場合、コマン ドラインのものが使用される。 .TP .B \-d ピリオドを持たないファイルに後続するピリオドをファイルから省く (訳注: たとえば ファイル名 "hogehoge." の最後の "." など)。これは ISO9660 標 準に違反しているが、ほとんどのシステムで働く。注意して使用すること。 .TP .B \-D 深いディレクトリの再配置を行わず、かわりにそのまま格納する。これは ISO9660 標準に違反しているが、ほとんどのシステムで働く。注意して使用す ること。 .TP .BI \-dir-mode " mode Overrides the mode of directories used to create the image to .IR mode . Specifying this option automatically enables Rock Ridge extensions. .TP .B \-dvd-video DVD-Video互換のUDFファイルシステムを生成する。これは内容の適切なファイ ルの順序の整列と、必要なら、ファイル間にパディングを追加することによっ てなされる。 .TP .B \-f ファイルシステムを生成する時にシンボリックリンクを追跡する。このオプショ ンが使用されていないとき、シンボリックリンクは、もし Rock Ridge が有効に なっていれば格納され、無効になっていれば無視される。 .TP .BI \-file-mode " mode Overrides the mode of regular files used to create the image to .IR mode . Specifying this option automatically enables Rock Ridge extensions. .TP .BI \-gid " gid Overrides the gid read from the source files to the value of .IR gid . Specifying this option automatically enables Rock Ridge extensions. .TP .B \-gui GUI のために動きを切替える。現在のところこれにより出力が詳細になるが、 将来的には他の効果をもつだろう。 .TP .B \-graft-points Allow to use graft points for filenames. If this option is used, all filenames are checked for graft points. The filename is divided at the first unescaped equal sign. All occurrences of '\\\\' and '=' characters must be escaped with '\\\\' if .I \-graft-points has been specified. .TP .BI \-hide " glob ISO9660 または Rock Ridge ディレクトリにある .I glob を隠す。 .I glob はシェルのワイルドカード形式のパターンで、ファイル名かパスの一部にマッ チする。 (1000 個までの) glob の複数指定が可能である。もし .I glob がディレクトリにマッチした場合、ディレクトリの中身が隠される。 すべての隠されたファイルは CD イメージファイルには書き出される。 .B \-hide\-joliet オプションと共に用いられるべきである。 .TP .BI \-hide\-list " file 上で述べた、隠される .I globs のリストを収めたファイル .TP .BI \-hidden " glob Add the hidden (existence) ISO9660 directory attribute for .IR glob . This attribute will prevent .I glob from being listed on DOS based systems if the /A flag is not used for the listing. .I glob is a shell wild-card-style pattern that must match any part of the filename or path. In order to match a directory name, make sure the pathname does not include a trailing '/' character. Multiple globs may be hidden. .TP .BI \-hidden-list " file A file containing a list of .I globs to get the hidden attribute as above. .TP .BI \-hide\-joliet " glob Joliet ディレクトリにある .I glob を隠す。 .I glob はシェルのワイルドカード形式のパターンで、ファイル名かパスの一部にマッ チする。 (1000 個までの) glob の複数指定が可能である。もし .I glob がディレクトリにマッチした場合、ディレクトリの中身が隠される。 すべての隠されたファイルは CD イメージファイルには書き出される。 .B \-hide オプションと共に用いられるべきである。 .B \-hide option. See README.hide for more details. .TP .BI \-hide\-joliet\-list " file 上で述べた、隠される .I globs のリストを収めたファイル .TP .B \-hide\-joliet\-trans\-tbl Joliet ツリーから .B TRANS.TBL ファイルを隠す。 普通 Joliet の世界では、これらのファイルは意味をなさない。 なぜならこのファイルがリストする本当の名前と ISO9660 の名前はともに、 Joliet の名前とは違うからである。 .TP .B \-hide\-rr\-moved Rock Ridge ツリーではディレクトリ .B RR_MOVED を .B .rr_moved という名前に変更する。 Rock Ridge ツリーから .B RR_MOVED ディレクトリを完全に隠すことは不可能のようにみえる。 このオプションは、このディレクトリが何なのかを知らない人々が、 目にするツリーを理解しやすくするようにするだけである。 もし .B RR_MOVED ディレクトリを全く必要としないのなら、 .B \-D オプションを使うべきである。 .B \-D オプションが指定された場合には、作成されるファイルシステムは ISO9660 レベル\-1 互換でなく、MS\-DOS からは読めないことに注意せよ。 See also .B NOTES section for more information on the .B RR_MOVED directory. .TP .B \-l 30 文字のファイル名を許す。通常 ISO9660 ファイル名は ISO9660 標準が 30 文字までのファイル名を認めていても MS\-DOS 互換の 8.3 フォーマットにな る。このオプションを使用すれば、ディスクは MS\-DOS で使用するのが困難に なるが、その他のシステム (Amiga のような) で使いやすくなる。注意して使 用すること。 .TP .BI \-input-charset " charset Input charset that defines the characters used in local file names. To get a list of valid charset names, call .B "mkisofs \-input-charset help. To get a 1:1 mapping, you may use .B default as charset name. The default initial values are .I cp437 on DOS based systems and .I iso8859-1 on all other systems. See .B "CHARACTER SETS section below for more details. .TP .BI \-output-charset " charset Output charset that defines the characters that will be used in Rock Ridge file names. Defaults to the input charset. See .B "CHARACTER SETS section below for more details. .TP .BI \-iso-level " level Set the iso9660 conformance level. Valid numbers are 1..3. .sp With level 1, files may only consist of one section and filenames are restricted to 8.3 characters. .sp With level 2, files may only consist of one section. .sp With level 3, no restrictions apply. .sp With all iso9660 levels all filenames are restricted to upper case letters, numbers and the underscore (_). The maximum filename length is restricted to 31 characters, the directory nesting level is restricted to 8 and the maximum path length is limited to 255 characters. .TP .B \-J 通常の ISO9660 ファイル名に加えて Joliet ディレクトリレコードを生成す る。これはディスクが Windows95 や Windows NT マシンで使用されるとき一 番便利である。Joliet ファイル名は Unicode で指定され、それぞれのパスは 最大 64 Unicode 文字で構成することができる。 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. .TP .B \-joliet-long Allow Joliet filenames to be up to 103 Unicode characters. This breaks the Joliet specification - but appears to work. Use with caution. The number 103 is derived from: the maximum Directory Record Length (254), minus the length of Directory Record (33), minus CD-ROM XA System Use Extension Information (14), divided by the UTF-16 character size (2). .TP .BI \-jcharset " charset Same as using .B \-input-charset .I charset and .B \-J options. See .B "CHARACTER SETS section below for more details. .TP .B \-L ISO9660 のファイル名をピリオドで始めることを許す。通常、先頭のドットは MS\-DOS との互換性を維持するためにアンダースコアに変換される。 .br This violates the ISO9660 standard, but it happens to work on many systems. Use with caution. .TP .BI \-log\-file " log_file 標準エラー出力の代わりに、 .I log_file にすべてのエラー、警告、一般的な通知メッセージを出力する。 .TP .BI \-m " glob CD-ROM に書き込まれるときに .I glob を除外する。 .I glob はシェルのワイルドカード形式のファイル名 .RB ( \-x のようにパスではない) の一部に一致するパターンである (訳注: glob はファ イル名に一致するパターンを生成し、それはしばしばシェルに依存する)。 技術的には .I glob は、ディレクトリエントリの .I d\->d_name 部分に対して一致される。複数の glob が実行可能である (最大 1000)。 例: mkisofs \-o rom \-m '*.o' \-m core \-m foobar は ".o" で終わるファイルまたは "core" または "foobar" のすべてが CD\-ROM にコピーするファイルから除外される。もし "foobar" と呼ばれる ディレクトリがあれば、それも除外される (そしてもちろんそのサブディレ クトリも除外される)。 注意: \-m と \-x オプションに関する説明は間違っており、更新されるべきである。 ファイル名そのままの指定とワイルドカード形式の指定の両方が可能である。 ファイル名が一致した場合か、パスの全てが一致した場合にファイルは除外される。 .TP .BI \-exclude\-list " file 上で述べた、隠される .I globs のリストを収めたファイル .TP .B \-max-iso9660-filenames Allow 37 chars in iso9660 filenames. This option forces the .B \-N option as the extra name space is taken from the space reserved for ISO-9660 version numbers. .br This violates the ISO9660 standard, but it happens to work on many systems. Although a conforming application needs to provide a buffer space of at least 37 characters, disks created with this option may cause a buffer overflow in the reading operating system. Use with extreme care. .TP .BI \-M " path もしくは .PD 0 .TP .BI \-M " device .PD 結合される、すでに存在する ISO9660 イメージのパスを指定する。 代わりに SCSI デバイスを指定する場合は .B cdrecord の .B "dev= と同じ書式を用いる。 .B mkisofs の出力は \-M で指定したイメージの後ろに新しいセッションとして書き込まれ るだろう。通常、これはこのイメージを書き込もうとしている書き込み機およ び CD\-ROM ドライブに対しマルチセッション機能を要求する。マルチセッショ ン機能のサポートは、CD\-ROM 上で次の書き込み可能なアドレスを決定するた めに mkisofs と cdwrite との間でいくつかのハンドシェークが要求されるた め、まだ完全ではない。 このオプションは .B \-C との組合せの場合のみ用いられる。 .TP .B \-N ISO9660 ファイル名のバージョン番号を省略する。これは ISO9660 標準に 違反するが、このバージョン番号を本当に使っているシステムはない。 注意して使用すること。 .TP .B \-nobak .PD 0 .TP .B \-no\-bak .PD iso9660 ファイルシステム上にバックアップファイルを含まない。 .B \-no\-bak オプションが指定されると、文字 '~' または '#' を含むファイルと、'.bak' で終わるファイルは含まれない(これらは unix 上のエディタの典型的なバックアップファイルである)。 .TP .B \-force-rr Do not use the automatic Rock Ridge attributes recognition for previous sessions. This helps to show rotten iso9660 extension records as e.g. created by NERO burning ROM. .TP .B \-no\-rr 前のセッションからの Rock Ridge 属性を使わない。 これは、 .B mkisofs が古いセッションの不正な Rock Ridge 署名を見つけた時に、トラブルになるのを 避けるのに役立つだろう。 .TP .B \-no\-split\-symlink\-components SL コンポーネントを分割せず、代わりに新しい継続領域 (Continuation Area (CE)) を開始する。これは空き領域を浪費するが、SunOS 4.1.4 の CD\-ROM ドライバは分割された SL コンポーネントの読み込みにバグがある。 (link_size += component_size の代わりに link_size = component_size) .TP .B \-no\-split\-symlink\-fields SL フィールドを分割せず、代わりに新しい継続領域 (Continuation Area (CE)) を開始する。これは空き領域を浪費するが、SunOS 4.1.4 及び Solaris 2.5.1 の CD\-ROM ドライバは 分割された SL フィールドの読み込みにバグが ある(`/' が抜け落ちることがある)。 .TP .BI \-o " filename は、書き込まれる ISO9660 ファイルシステムイメージのファイル名である。 これはディスクファイルやテープドライブまたは直接一致する光学ディスク書 き込み機のデバイス名でもかまわない。もし指定されなければ、標準出力が使 用される。出力は通常のディスクドライブの特殊ブロックデバイスでも構わな いが、この場合にはディスクパーティションはマウント可能で、プリマスタリ ングが正常に終了したかを確証していなければならないことに注意するように。 .TP .B \-pad Pad the end of the ISO9660 by 16 sectors (32kB). If the total size then is not a multiple of 16 sectors, the needed number of sectors is added. If the option .B \-B is used, then there is a second padding at the end of the boot partitions. .sp 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. .sp To avoid problems with I/O error on the last file on the filesystem, the .B \-pad option has been made the default. .TP .B \-no\-pad Do not Pad the end of the ISO9660 by 16 sectors (32kB). .TP .BI \-path-list " file ISO9660 ファイルシステムに追加される .I pathspec ディレクトリとファイル名のリスト。 この pathspec リストは、コマンドラインに現れるすべてのもののあとに処理される。 もし引数が .I \- ならば、リストは標準入力から読まれる。 少なくとも一つの .I pathspec がコマンドラインで与えられなければならない。 .TP .BI \-P " publisher_id ボリュームヘッダに書き込まれる文字列を指定する。これは CD\-ROM の出版者 を説明し、通常メールアドレスと電話番号が記載される。 ディスク上には 128 文字の情報の分の容量がある。 このパラメータは .I \&.mkisofsrc の PUBL= でも設定可能である。もし二つの場所で指定されている場合、コマ ンドラインのものが使用される。 .TP .BI \-p " preparer_id ボリュームヘッダに書き込まれる文字列を指定する。 これは CD\-ROM の作成者を説明し、通常メールアドレスと電話番号が記載される。 ディスク上には 128 文字の情報の分の容量がある。このパラメータは .I \&.mkisofsrc の PREP= でも設定可能である。 もし二つの場所で指定されている場合、コマンドラインのものが使用される。 .TP .B \-print-size 予測されたファイルシステムのサイズを表示して終了する。このオプションは Disk At Once モードで .B cdrecord に直接パイプしているときに、いくつかの CD\-R ドライブで使用される。 この場合には、実際の CD 作成が行われる前にファイルシステムのサイズを知っ ておく必要がある。\-print\-size オプションは、CD が実際に書き込まれる前 に "dry\-run" (訳注: 実際の書き込みを伴わない試験書き込み) によりこのサ イズを取得する。 Old versions of .B mkisofs did write this information (among other information) to .IR stderr . As this turns out to be hard to parse, the number without any other information is now printed on .B stdout too. If you like to write a simple shell script, redirect .B stderr and catch the number from .BR stdout . This may be done with: .sp .B "cdblocks=` mkisofs -print-size -quiet .\|.\|. ` .sp .B "mkisofs .\|.\|. | cdrecord .\|.\|. tsize=${cdblocks}s -" .TP .B \-quiet このオプションは .B mkisofs にそれほど詳細な出力をさせないようにする。 進捗状況が出力されない。 .TP .B \-R ISO9660 ファイルシステムのファイルを詳細に説明するために Rock Ridge プロトコルを使用して SUSP 及び RR レコードを生成する。 When used on Win32, the execute bit is set on .I 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. .TP .B \-relaxed-filenames The option .B \-relaxed-filenames allows ISO9660 filenames to include digits, uppercase characters and all other 7 bit ASCII characters (resp. anything except lowercase characters). .br This violates the ISO9660 standard, but it happens to work on many systems. Use with caution. .TP .BI \-sort " sort file Sort file locations on the media. Sorting is controlled by a file that contains pairs of filenames and sorting offset weighting. If the weighting is higher, the file will be located closer to the beginning of the media, if the weighting is lower, the file will be located closer to the end of the media. There must be only one space or tabs character between the filename and the weight and the weight must be the last characters on a line. The filename is taken to include all the characters up to, but not including the last space or tab character on a line. This is to allow for space characters to be in, or at the end of a filename. This option does .B not sort the order of the file names that appear in the ISO9660 directory. It sorts the order in which the file data is written to the CD image - which may be useful in order to optimize the data layout on a CD. See README.sort for more details. .TP .B \-split-output Split the output image into several files of approximately 1 GB. This helps to create DVD sized iso9660 images on operating systems without large file support. Cdrecord will concatenate more than one file into a single track if writing to a DVD. To make .B \-split-output work, the .BI \-o " filename" option must be specified. The resulting outout images will be named: .IR filename_00 , filename_01, filename_02 ... .TP .BI \-sysid " ID システム ID を指定する。このパラメータはファイル .B \&.mkisofsrc で SYSI=system_id として設定される。もし両方の場所で指定された場合、コマン ドラインのものが使用される。 .TP .B \-T Rock Ridge が使用できないシステム上で正しいファイル名を得るために TRANS.TBL を CD\-ROM のそれぞれのディレクトリに生成する。ファイルの中に は他にもブロックデバイスやキャラクタデバイスのメジャー番号やマイナー番 号情報があり、それぞれのシンボリックリンクは与えられたファイルの名前を 持つ。 .TP .BI \-table\-name " TABLE_NAME 代わりの変換テーブルファイルネーム(上を見よ)。 .B \-T オプションを含む。 もしマルチセッションイメージを作成したならば、前のセッションと同じ名前 にしなければならない。 .TP .BI \-ucs-level " level Set Unicode conformance level in the Joliet SVD. The default level is 3. It may be set to 1..3 using this option. .TP .B \-udf 生成するファイルシステムイメージに .B UDF サポートを含める。 .B UDF サポートは現在αステージで、このため、UDFのみのイメージを作成すること はできない。 .B UDF データ構造は現在Joliet構造と組み合わせられており、そのため現状の実装に は多くの不足点がある。UID/GIDのサポートがなく、POSIXパーミッションのサ ポートがなく、シンボリックリンクのサポートがない。 .B UDF は、真の .B UDF データ構造で必要なスペースに加えて、 ディスクの最初のセクター~20 からセクター 256 を無駄にすることに注意。 .TP .BI \-uid " uid Overrides the uid read from the source files to the value of .IR uid . Specifying this option automatically enables Rock Ridge extensions. .TP .B \-use-fileversion The option .B \-use-fileversion allows mkisofs to use file version numbers from the filesystem. If the option is not specified, .B mkisofs creates a version if 1 for all files. File versions are strings in the range .I ";1" to .I ";32767" This option is the default on VMS. .TP .B \-U iso9660 標準に完全に違反する、"未変換" ファイル名を許可する。 \-d、\-l、\-L、\-N フラグが自動的に指定され、文字 '.' を 1 個以上含む ファイル名や、大文字小文字が混ざったファイル名も許可される。 これは、最初からある CDFS ファイルシステムが何の拡張も認識しない HP-UX システムで有効である。使用には細心の注意を払うこと。 .TP .B \-no-iso-translate Do not translate the characters '#' and '~' which are invalid for iso9660 filenames. These characters are though invalid often used by Microsoft systems. .br This violates the ISO9660 standard, but it happens to work on many systems. Use with caution. .TP .BI \-V " volid マスターブロックに記載するボリューム ID を指定する。 このパラメータは、ファイル .B \&.mkisofsrc で VOLI=id により指定することもできる。もし二つの場所で指定された場合, コマンドラインのものが使用される。 もしボリューム ID を指定した場合、その名前は、Solaris ボリューム管理シ ステムではマウントポイントとして、Windows または Mac プラットフォームでは ディスク名として使われるので、注意すること。 .TP .BI \-volset " ID .\"SEKINE: volset => volume set ? ボリュームセット ID を指定する。このパラメータはファイル .B \&.mkisofsrc で VOLS=volset_id として設定される。もし両方の場所で指定された場合、コマン ドラインのものが使用される。 .TP .BI \-volset\-size " # ボリュームセットサイズを # に設定する。ボリュームセットサイズとは CD のセットの中の CD の枚数である。 .B \-volset\-size オプションは、オペレーティングシステムのインストールなどで CD が(複数 枚の)セットになっている場合に、その部分としての CD を作成するときに指 定する事ができる。 .B \-volset\-size オプションは、コマンドライン上で .B \-volset\-seqno より前に指定されなければならない。 .TP .BI \-volset\-seqno " # ボリュームセット番号を # に設定する。ボリュームセット番号とは、その CD の、CD セットの中での順番である。 .B \-volset\-size オプションは、コマンドライン上で .B \-volset\-seqno より前に指定されなければならない。 .TP .B \-v 冗長な出力。コマンドラインで2回指定されたら、デバッグ用の情報が出力さ れる。 .TP .BI \-x " path CD\-ROM の書き込みに .I path を排除する。 .I path はコマンドライン引数として連続して与えられた完全なパス名で、パスはこの ディレクトリに相対でなければならない。複数のパスが除外可能である (最大 1000)。 例: mkisofs \-o cd \-x /local/dir1 \-x /local/dir2 /local .sp 注意: \-m と \-x オプションに関する説明は間違っており、更新されるべきである。 ファイル名そのままの指定とワイルドカード形式の指定の両方が可能である。 ファイル名が一致した場合か、パスの全てが一致した場合にファイルは除外される。 .TP .B \-z 特殊な SUSP レコードを transparent 圧縮されたファイルに対して生成する。 これは transparent 圧縮をサポートするホストに対してのみ使用される。 This is only of use and interest for hosts that support transparent decompression, such as Linux 2.4.14 or later. You must specify the .B \-R or .B \-r options to enable RockRidge, and generate compressed files using the .B mkzftree utility before running .BR mkisofs . Note that transparent compression is a nonstandard Rock Ridge extension. The resulting disks are only transparently readable if used on Linux. On other operating systems you will need to call .B mkzftree by hand to decompress the files. .SH "HFS OPTIONS .TP .B \-hfs Create an ISO9660/HFS hybrid CD. This option should be used in conjunction with the .BR \-map , .B \-magic and/or the various .I double dash options given below. .TP .B \-apple Create an ISO9660 CD with Apple's extensions. Similar to the .B \-hfs option, except that the Apple Extensions to ISO9660 are added instead of creating an HFS hybrid volume. .TP .BI \-map " mapping_file Use the .I mapping_file to set the CREATOR and TYPE information for a file based on the filename's extension. A filename is mapped only if it is not one of the know Apple/Unix file formats. See the .B "HFS CREATOR/TYPE section below. .TP .BI \-magic " magic_file The CREATOR and TYPE information is set by using a file's .I magic number (usually the first few bytes of a file). The .I magic_file is only used if a file is not one of the known Apple/Unix file formats, or the filename extension has not been mapped using the .B \-map option. See the .B "HFS CREATOR/TYPE section below for more details. .TP .BI \-hfs-creator " CREATOR Set the default CREATOR for all files. Must be exactly 4 characters. See the .B "HFS CREATOR/TYPE section below for more details. .TP .BI \-hfs-type " TYPE Set the default TYPE for all files. Must be exactly 4 characters. See the .B "HFS CREATOR/TYPE section below for more details. .TP .B \-probe Search the contents of files for all the known Apple/Unix file formats. See the .B HFS MACINTOSH FILE FORMATS section below for more about these formats. However, the only way to check for .I MacBinary and .I AppleSingle files is to open and read them. Therefore this option .I may increase processing time. It is better to use one or more .I double dash options given below if the Apple/Unix formats in use are known. .TP .B \-no-desktop Do not create (empty) Desktop files. New HFS Desktop files will be created when the CD is used on a Macintosh (and stored in the System Folder). By default, empty Desktop files are added to the HFS volume. .TP .B \-mac-name Use the HFS filename as the starting point for the ISO9660, Joliet and Rock Ridge file names. See the .B HFS MACINTOSH FILE NAMES section below for more information. .TP .BI \-boot-hfs-file " driver_file Installs the .I driver_file that .I may make the CD bootable on a Macintosh. See the .B HFS BOOT DRIVER section below. (Alpha). .TP .B \-part Generate an HFS partition table. By default, no partition table is generated, but some older Macintosh CDROM drivers need an HFS partition table on the CDROM to be able to recognize a hybrid CDROM. .TP .BI \-auto " AutoStart_file Make the HFS CD use the QuickTime 2.0 Autostart feature to launch an application or document. The given filename must be the name of a document or application located at the top level of the CD. The filename must be less than 12 characters. (Alpha). .TP .BI \-cluster-size " size Set the size in bytes of the cluster or allocation units of PC Exchange files. Implies the .B \-\-exchange option. See the .B HFS MACINTOSH FILE FORMATS section below. .TP .BI \-hide-hfs " glob Hide .I glob from the HFS volume. The file or directory will still exist in the ISO9660 and/or Joliet directory. .I glob is a shell wild-card-style pattern that must match any part of the filename Multiple globs may be excluded. Example: mkisofs \-o rom \-hfs \-hide-hfs '*.o' \-hide-hfs foobar would exclude all files ending in ".o" or called "foobar" from the HFS volume. Note that if you had a directory called "foobar" it too (and of course all its descendants) would be excluded. The .I glob can also be a path name relative to the source directories given on the command line. Example: mkisofs \-o rom \-hfs \-hide-hfs src/html src would exclude just the file or directory called "html" from the "src" directory. Any other file or directory called "html" in the tree will not be excluded. Should be used with the .B \-hide and/or .B \-hide-joliet options. In order to match a directory name, make sure the pathname does not include a trailing '/' character. See README.hide for more details. .TP .BI \-hide-hfs-list " file A file containing a list of .I globs to be hidden as above. .TP .BI \-hfs-volid " hfs_volid Volume name for the HFS partition. This is the name that is assigned to the disc on a Macintosh and replaces the .I volid used with the .B \-V option .TP .B \-icon-position Use the icon position information, if it exists, from the Apple/Unix file. The icons will appear in the same position as they would on a Macintosh desktop. Folder location and size on screen, its scroll positions, folder View (view as Icons, Small Icons, etc.) are also preserved. This option may become set by default in the future. (Alpha). .TP .BI \-root-info " file Set the location, size on screen, scroll positions, folder View etc. for the root folder of an HFS volume. See README.rootinfo for more information. (Alpha) .TP .BI \-prep-boot " FILE PReP boot image file. Up to 4 are allowed. See README.prep_boot (Alpha) .TP .BI \-input-hfs-charset " charset Input charset that defines the characters used in HFS file names when used with the .I \-mac-name option. The default charset is cp10000 (Mac Roman) .I cp10000 (Mac Roman) See .B "CHARACTER SETS and .B "HFS MACINTOSH FILE NAMES sections below for more details. .TP .BI \-output-hfs-charset " charset Output charset that defines the characters that will be used in the HFS file names. Defaults to the input charset. See .B "CHARACTER SETS section below for more details. .TP .B \-hfs-unlock By default, .B mkisofs will create an HFS volume that is .IR locked . This option leaves the volume unlocked so that other applications (e.g. hfsutils) can modify the volume. See the .B "HFS PROBLEMS/LIMITATIONS section below for warnings about using this option. .TP .BI \-hfs-bless " folder_name "Bless" the given directory (folder). This is usually the .B System Folder and is used in creating HFS bootable CDs. The name of the directory must be the whole path name as .B mkisofs sees it. e.g. if the given pathspec is ./cddata and the required folder is called System Folder, then the whole path name is "./cddata/System Folder" (remember to use quotes if the name contains spaces). .TP .BI \-hfs-parms " PARAMETERS Override certain parameters used to create the HFS file system. Unlikely to be used in normal circumstances. See the libhfs_iso/hybrid.h source file for details. .TP .B \-\-cap Look for AUFS CAP Macintosh files. Search for CAP Apple/Unix file formats only. Searching for the other possible Apple/Unix file formats is disabled, unless other .I double dash options are given. .TP .B \-\-netatalk Look for NETATALK Macintosh files .TP .B \-\-double Look for AppleDouble Macintosh files .TP .B \-\-ethershare Look for Helios EtherShare Macintosh files .TP .B \-\-ushare Look for IPT UShare Macintosh files .TP .B \-\-exchange Look for PC Exchange Macintosh files .TP .B \-\-sgi Look for SGI Macintosh files .TP .B \-\-xinet Look for XINET Macintosh files .TP .B \-\-macbin Look for MacBinary Macintosh files .TP .B \-\-single Look for AppleSingle Macintosh files .TP .B \-\-dave Look for Thursby Software Systems DAVE Macintosh files .TP .B \-\-sfm Look for Microsoft's Services for Macintosh files (NT only) (Alpha) .TP .B \-\-osx\-double Look for MacOS X AppleDouble Macintosh files .TP .B \-\-osx\-hfs Look for MacOS X HFS Macintosh files .SH "CHARACTER SETS .B mkisofs processes file names in a POSIX compliant way as strings of 8-bit characters. To represent all codings for all languages, 8-bit characters are not sufficient. Unicode or .B ISO-10646 define character codings that need at least 21 bits to represent all known languages. They may be represented with .BR UTF-32 ", " UTF-16 " or " UTF-8 coding. .B UTF-32 uses a plain 32-bit coding but seems to be uncommon. .B UTF-16 is used by Microsoft with Win32 with the disadvantage that it only supports a subset of all codes and that 16-bit characters are not compliant with the POSIX filesystem interface. .PP Modern UNIX operating systems may use .B UTF-8 coding for filenames. This coding allows to use the complete Unicode code set. Each 32-bit character is represented by one or more 8-bit characters. If a character is coded in .B ISO-8859-1 (used in Central Europe and North America) is maps 1:1 to a .BR UTF-32 " or " UTF-16 " coded Unicode character. If a character is coded in .B "7-Bit ASCII (used in USA and other countries with limted character set) is maps 1:1 to a .BR UTF-32 ", " UTF-16 " or " UTF-8 coded Unicode character. Character codes that cannot be represented as a single byte in UTF-8 (typically if the value is > 0x7F) use escape sequences that map to more than one 8-bit character. .PP If all operating systems would use .B UTF-8 coding, .B mkisofs would not need to recode characters in file names. Unfortunately, Apple uses completely nonstandard codings and Microsoft uses a Unicode coding that is not compatible with the POSIX filename interface. .PP For all non .B UTF-8 coded operating systems, the actual character that each byte represents depends on the .I character set or .I codepage (which is the name used by Microsoft) used by the local operating system in use - the characters in a character set will reflect the region or natural language used by the user. .PP Usually character codes 0x00-0x1f are control characters, codes 0x20-0x7f are the 7 bit ASCII characters and (on PC's and Mac's) 0x80-0xff are used for other characters. Unfortunately even this does not follow ISO standards that reserve the range 0x80-0x9f for control characters and only allow 0xa0-0xff for other characters. .PP As there is a lot more than 256 characters/symbols in use, only a small subset are represented in a character set. Therefore the same character code may represent a different character in different character sets. So a file name generated, say in central Europe, may not display the same character when viewed on a machine in, say eastern Europe. .PP To make matters more complicated, different operating systems use different character sets for the region or language. For example the character code for "small e with acute accent" may be character code 0x82 on a PC, code 0x8e on a Macintosh and code 0xe9 on a UNIX system. Note while the codings used on a PC or Mac are nonstandard, Unicode codes this character as 0x00000000e9 which is basically the same value as the value used by most UNIX systems. .PP As long as not all operating systems and applications will use the Unicode character set as the basis for file names in a unique way, it may be necessary to specify which character set your file names use in and which character set the file names should appear on the CD. .PP There are four options to specify the character sets you want to use: .IP \-input-charset Defines the local character set you are using on your host machine. Any character set conversions that take place will use this character set as the staring point. The default input character sets are .I cp437 on DOS based systems and .I iso8859-1 on all other systems. If the .I \-J option is given, then the Unicode equivalents of the input character set will be used in the Joliet directory. Using the .I \-jcharset option is the same as using the .I \-input-charset and .I \-J options. .IP \-output-charset Defines the character set that will be used with for the Rock Ridge names on the CD. Defaults to the input character set. Only likely to be useful if used on a non-Unix platform. e.g. using .B mkisofs on a Microsoft Win32 machine to create Rock Ridge CDs. If you are using .B mkisofs on a Unix machine, it is likely that the output character set will be the same as the input character set. .IP \-input-hfs-charset Defines the HFS character set used for HFS file names decoded from any of the various Apple/Unix file formats. Only useful when used with .I \-mac-name option. See the .B HFS MACINTOSH FILE NAMES for more information. Defaults to .I cp10000 (Mac Roman). .IP \-output-hfs-charset Defines the HFS character set used to create HFS file names from the input character set in use. In most cases this will be from the character set given with the .I \-input-charset option. Defaults to the input HFS character set. .PP There are a number of character sets built in to .IR mkisofs . To get a listing, use .B "mkisofs \-input-charset help. .PP Additional character sets can be read from file for any of the character set options by giving a filename as the argument to the options. The given file will only be read if its name does not match one of the built in character sets. .PP The format of the character set files is the same as the mapping files available from http://www.unicode.org/Public/MAPPINGS The format of these files is: Column #1 is the input byte code (in hex as 0xXX) .br Column #2 is the Unicode (in hex as 0xXXXX) .br Rest of the line is ignored. Any blank line, line without two (or more) columns in the above format or comments lines (starting with the # character) are ignored without any warnings. Any missing input code is mapped to Unicode character 0x0000. .PP Note that there is no support for 16 bit UNICODE (UTF-16) or 32 bit UNICODE (UTF-32) coding because this coding is not POSIX compliant. There should be support for UTF-8 UNICODE coding which is compatible to POSIX filenames and supported by moder UNIX implementations such as Solaris. .PP A 1:1 character set mapping can be defined by using the keyword .I default as the argument to any of the character set options. This is the behaviour of older (v1.12) versions of .BR mkisofs . .PP The ISO9660 file names generated from the input filenames are not converted from the input character set. The ISO9660 character set is a very limited subset of the ASCII characters, so any conversion would be pointless. .PP Any character that .B mkisofs can not convert will be replaced with a '_' character. .PP .SH "HFS CREATOR/TYPE A Macintosh file has two properties associated with it which define which application created the file, the .I CREATOR and what data the file contains, the .IR TYPE . Both are (exactly) 4 letter strings. Usually this allows a Macintosh user to double-click on a file and launch the correct application etc. The CREATOR and TYPE of a particular file can be found by using something like ResEdit (or similar) on a Macintosh. .LP The CREATOR and TYPE information is stored in all the various Apple/Unix encoded files. For other files it is possible to base the CREATOR and TYPE on the filename's extension using a .I mapping file (the .B \-map option) and/or using the .I magic number (usually a .I signature in the first few bytes) of a file (the .B \-magic option). If both these options are given, then their order on the command line is important. If the .B \-map option is given first, then a filename extension match is attempted before a magic number match. However, if the .B \-magic option is given first, then a magic number match is attempted before a filename extension match. .PP If a mapping or magic file is not used, or no match is found then the default CREATOR and TYPE for all regular files can be set by using entries in the .B \&.m\&kisofsrc file or using the .B \-hfs-creator and/or .B \-hfs-type options, otherwise the default CREATOR and TYPE are 'unix' and 'TEXT'. .PP The format of the .I mapping file is the same .I afpfile format as used by .IR aufs . This file has five columns for the .IR extension , .I file .IR translation , .IR CREATOR , .I TYPE and .IR Comment . Lines starting with the '#' character are comment lines and are ignored. An example file would be like: .LP .TS tab (/); l s s s s l s s s s l l l l l . # Example filename mapping file # # EXTN/XLate/CREATOR/TYPE/Comment \&.tif/Raw/'8BIM'/'TIFF'/"Photoshop TIFF image" \&.hqx/Ascii/'BnHq'/'TEXT'/"BinHex file" \&.doc/Raw/'MSWD'/'WDBN'/"Word file" \&.mov/Raw/'TVOD'/'MooV'/"QuickTime Movie" */Ascii/'ttxt'/'TEXT'/"Text file" .TE .LP Where: .IP The first column .I EXTN defines the Unix filename extension to be mapped. The default mapping for any filename extension that doesn't match is defined with the "*" character. .IP The .I Xlate column defines the type of text translation between the Unix and Macintosh file it is ignored by .BR mkisofs , but is kept to be compatible with .BR aufs (1). Although .B mkisofs does not alter the contents of a file, if a binary file has it's TYPE set as 'TEXT', it .I may be read incorrectly on a Macintosh. Therefore a better choice for the default TYPE may be '????' .IP The .I CREATOR and .I TYPE keywords must be 4 characters long and enclosed in single quotes. .IP The comment field is enclosed in double quotes - it is ignored by .BR mkisofs , but is kept to be compatible with .BR aufs . .PP The format of the .I magic file is almost identical to the .BR magic (4) file used by the Linux .BR file (1) command - the routines for reading and decoding the .I magic file are based on the Linux .BR file (1) command. .PP This file has four tab separated columns for the .I byte .IR offset , .IR type , .I test and .IR message . Lines starting with the '#' character are comment lines and are ignored. An example file would be like: .LP .TS tab (/); l s s s l s s s l l l l . # Example magic file # # off/type/test/message 0/string/GIF8/8BIM GIFf GIF image 0/beshort/0xffd8/8BIM JPEG image data 0/string/SIT!/SIT! SIT! StuffIt Archive 0/string/\\037\\235/LZIV ZIVU standard unix compress 0/string/\\037\\213/GNUz ZIVU gzip compressed data 0/string/%!/ASPS TEXT Postscript 0/string/\\004%!/ASPS TEXT PC Postscript with a ^D to start 4/string/moov/txtt MooV QuickTime movie file (moov) 4/string/mdat/txtt MooV QuickTime movie file (mdat) .TE .PP The format of the file is described in the .BR magic (4) man page. The only difference here is that for each entry in the magic file, the .I message for the initial offset .B must be 4 characters for the CREATOR followed by 4 characters for the TYPE - white space is optional between them. Any other characters on this line are ignored. Continuation lines (starting with a '>') are also ignored i.e. only the initial offset lines are used. .PP Using the .B \-magic option may significantly increase processing time as each file has to opened and read to find it's magic number. .PP In summary, for all files, the default CREATOR is 'unix' and the default TYPE is 'TEXT'. These can be changed by using entries in the .I \&.m\&kisofsrc file or by using the .B \-hfs-creator and/or .B \-hfs-type options. .PP If the a file is in one of the known Apple/Unix formats (and the format has been selected), then the CREATOR and TYPE are taken from the values stored in the Apple/Unix file. .PP Other files can have their CREATOR and TYPE set from their file name extension (the .B \-map option), or their magic number (the .B \-magic option). If the default match is used in the .I mapping file, then these values override the default CREATOR and TYPE. .PP A full CREATOR/TYPE database can be found at http://www.angelfire.com/il/szekely/index.html .SH "HFS MACINTOSH FILE FORMATS Macintosh files have two parts called the .I Data and .I Resource fork. Either may be empty. Unix (and many other OSs) can only cope with files having one part (or fork). To add to this, Macintosh files have a number of attributes associated with them - probably the most important are the TYPE and CREATOR. Again Unix has no concept of these types of attributes. .PP e.g. a Macintosh file may be a JPEG image where the image is stored in the Data fork and a desktop thumbnail stored in the Resource fork. It is usually the information in the data fork that is useful across platforms. .PP Therefore to store a Macintosh file on a Unix filesystem, a way has to be found to cope with the two forks and the extra attributes (which are referred to as the .I finder .IR info ). Unfortunately, it seems that every software package that stores Macintosh files on Unix has chosen a completely different storage method. .PP The Apple/Unix formats that .I mkisofs (partially) supports are: .IP "CAP AUFS format" Data fork stored in a file. Resource fork in subdirectory .resource with same filename as data fork. Finder info in .finderinfo subdirectory with same filename. .IP "AppleDouble/Netatalk" Data fork stored in a file. Resource fork stored in a file with same name prefixed with "%". Finder info also stored in same "%" file. Netatalk uses the same format, but the resource fork/finderinfo stored in subdirectory .AppleDouble with same name as data fork. .IP AppleSingle Data structures similar to above, except both forks and finder info are stored in one file. .IP "Helios EtherShare" Data fork stored in a file. Resource fork and finder info together in subdirectory .rsrc with same filename as data fork. .IP "IPT UShare" Very similar to the EtherShare format, but the finder info is stored slightly differently. .IP MacBinary Both forks and finder info stored in one file. .IP "Apple PC Exchange" Used by Macintoshes to store Apple files on DOS (FAT) disks. Data fork stored in a file. Resource fork in subdirectory resource.frk (or RESOURCE.FRK). Finder info as one record in file finder.dat (or FINDER.DAT). Separate finder.dat for each data fork directory. .IP Note: .I mkisofs needs to know the native FAT cluster size of the disk that the PC Exchange files are on (or have been copied from). This size is given by the .B \-cluster-size option. The cluster or allocation size can be found by using the DOS utility .BR CHKDSK . .IP May not work with PC Exchange v2.2 or higher files (available with MacOS 8.1). DOS media containing PC Exchange files should be mounted as type .B msdos (not .BR vfat ) when using Linux. .IP "SGI/XINET" Used by SGI machines when they mount HFS disks. Data fork stored in a file. Resource fork in subdirectory .HSResource with same name. Finder info as one record in file .HSancillary. Separate .HSancillary for each data fork directory. .IP "Thursby Software Systems DAVE" Allows Macintoshes to store Apple files on SMB servers. Data fork stored in a file. Resource fork in subdirectory resource.frk. Uses the AppleDouble format to store resource fork. .IP "Services for Macintosh" Format of files stored by NT Servers on NTFS filesystems. Data fork is stored as "filename". Resource fork stored as a NTFS .I stream called "filename:AFP_Resource". The finder info is stored as a NTFS .I stream called "filename:Afp_AfpInfo". These streams are normally invisible to the user. .IP Warning: mkisofs only partially supports the SFM format. If an HFS file or folder stored on the NT server contains an .I illegal NT character in its name, then NT converts these characters to .I Private Use Unicode characters. The characters are: " * / < > ? \ | also a space or period if it is the last character of the file name, character codes 0x01 to 0x1f (control characters) and Apple' apple logo. .IP Unfortunately, these private Unicode characters are not readable by the mkisofs NT executable. Therefore any file or directory name containing these characters will be ignored - including the contents of any such directory. .IP "MacOS X AppleDouble" When HFS/HFS+ files are copied or saved by MacOS X on to a non-HFS file system (e.g. UFS, NFS etc.), the files are stored in AppleDouble format. Data fork stored in a file. Resource fork stored in a file with same name prefixed with "._". Finder info also stored in same "._" file. .IP "MacOS X HFS (Alpha)" Not really an Apple/Unix encoding, but actual HFS/HFS+ files on a MacOS X system. Data fork stored in a file. Resource fork stored in a pseudo file with the same name with the suffix '/rsrc'. The finderinfo is only available via a MacOS X library call. .IP Notes: (also see README.macosx) .IP Only works when used on MacOS X. .IP If a file is found with a zero length resource fork and empty finderinfo, it is assumed not to have any Apple/Unix encoding - therefore a TYPE and CREATOR can be set using other methods. .LP .I mkisofs will attempt to set the CREATOR, TYPE, date and possibly other flags from the finder info. Additionally, if it exists, the Macintosh filename is set from the finder info, otherwise the Macintosh name is based on the Unix filename - see the .B "HFS MACINTOSH FILE NAMES section below. .PP When using the .B \-apple option, the TYPE and CREATOR are stored in the optional System Use or SUSP field in the ISO9660 Directory Record - in much the same way as the Rock Ridge attributes are. In fact to make life easy, the Apple extensions are added at the beginning of the existing Rock Ridge attributes (i.e. to get the Apple extensions you get the Rock Ridge extensions as well). .PP The Apple extensions require the resource fork to be stored as an ISO9660 .I associated file. This is just like any normal file stored in the ISO9660 filesystem except that the associated file flag is set in the Directory Record (bit 2). This file has the same name as the data fork (the file seen by non-Apple machines). Associated files are normally ignored by other OSs .PP When using the .B \-hfs option, the TYPE and CREATOR plus other finder info, are stored in a separate HFS directory, not visible on the ISO9660 volume. The HFS directory references the same data and resource fork files described above. .PP In most cases, it is better to use the .B \-hfs option instead of the .B \-apple option, as the latter imposes the limited ISO9660 characters allowed in filenames. However, the Apple extensions do give the advantage that the files are packed on the disk more efficiently and it may be possible to fit more files on a CD - important when the total size of the source files is approaching 650MB. .SH "HFS MACINTOSH FILE NAMES Where possible, the HFS filename that is stored with an Apple/Unix file is used for the HFS part of the CD. However, not all the Apple/Unix encodings store the HFS filename with the finderinfo. In these cases, the Unix filename is used - with escaped special characters. Special characters include '/' and characters with codes over 127. .PP Aufs escapes these characters by using ":" followed by the character code as two hex digits. Netatalk and EtherShare have a similar scheme, but uses "%" instead of a ":". .PP If mkisofs can't find an HFS filename, then it uses the Unix name, with any %xx or :xx characters (xx == two hex digits) converted to a single character code. If "xx" are not hex digits ([0-9a-fA-F]), then they are left alone - although any remaining ":" is converted to "%" as colon is the HFS directory separator. Care must be taken, as an ordinary Unix file with %xx or :xx will also be converted. e.g. .PP .TS l l l s l l l s l l . This:2fFile converted to This/File This:File converted to This%File This:t7File converted to This%t7File .TE .PP Although HFS filenames appear to support upper and lower case letters, the filesystem is case insensitive. i.e. the filenames "aBc" and "AbC" are the same. If a file is found in a directory with the same HFS name, then .I mkisofs will attempt, where possible, to make a unique name by adding '_' characters to one of the filenames. .PP If an HFS filename exists for a file, then mkisofs can use this name as the starting point for the ISO9660, Joliet and Rock Ridge filenames using the .B \-mac-name option. Normal Unix files without an HFS name will still use their Unix name. e.g. .PP If a .I MacBinary (or .I PC .IR Exchange ) file is stored as .I someimage.gif.bin on the Unix filesystem, but contains a HFS file called .IR someimage.gif , then this is the name that would appear on the HFS part of the CD. However, as mkisofs uses the Unix name as the starting point for the other names, then the ISO9660 name generated will probably be .I SOMEIMAG.BIN and the Joliet/Rock Ridge would be .IR someimage.gif.bin . Although the actual data (in this case) is a GIF image. This option will use the HFS filename as the starting point and the ISO9660 name will probably be .I SOMEIMAG.GIF and the Joliet/Rock Ridge would be .IR someimage.gif . .PP Using the .B \-mac-name option will not currently work with the .B \-T option - the Unix name will be used in the TRANS.TBL file, not the Macintosh name. .PP The character set used to convert any HFS file name to a Joliet/Rock Ridge file name defaults to .I cp10000 (Mac Roman). The character set used can be specified using the .I -input-hfs-charset option. Other built in HFS character sets are: cp10006 (MacGreek), cp10007 (MacCyrillic), cp10029 (MacLatin2), cp10079 (MacIcelandandic) and cp10081 (MacTurkish). .PP Note: the character codes used by HFS file names taken from the various Apple/Unix formats will not be converted as they are assumed to be in the correct Apple character set. Only the Joliet/Rock Ridge names derived from the HFS file names will be converted. .PP The existing mkisofs code will filter out any illegal characters for the ISO9660 and Joliet filenames, but as mkisofs expects to be dealing directly with Unix names, it leaves the Rock Ridge names as is. But as '/' is a legal HFS filename character, the .B \-mac-name option converts '/' to a '_' in Rock Ridge filenames. .PP If the Apple extensions are used, then only the ISO9660 filenames will appear on the Macintosh. However, as the Macintosh ISO9660 drivers can use .I Level 2 filenames, then you can use options like .B \-allow-multidot without problems on a Macintosh - still take care over the names, for example .I this.file.name will be converted to .I THIS.FILE i.e. only have one '.', also filename .I abcdefgh will be seen as .I ABCDEFGH but .I abcdefghi will be seen as .I ABCDEFGHI. i.e. with a '.' at the end - don't know if this is a Macintosh problem or m\&kisofs/mkhybrid problem. All filenames will be in uppercase when viewed on a Macintosh. Of course, DOS/Win3.X machines will not be able to see Level 2 filenames... .SH "HFS CUSTOM VOLUME/FOLDER ICONS To give a HFS CD a custom icon, make sure the root (top level) folder includes a standard Macintosh volume icon file. To give a volume a custom icon on a Macintosh, an icon has to be pasted over the volume's icon in the "Get Info" box of the volume. This creates an invisible file called 'Icon\\r' ('\\r' is the 'carriage return' character) in the root folder. .P A custom folder icon is very similar - an invisible file called 'Icon\\r' exits in the folder itself. .P Probably the easiest way to create a custom icon that mkisofs can use, is to format a blank HFS floppy disk on a Mac, paste an icon to its "Get Info" box. If using Linux with the HFS module installed, mount the floppy using something like: mount \-t hfs /dev/fd0 /mnt/floppy The floppy will be mounted as a CAP file system by default. Then run mkisofs using something like: mkisofs \-\-cap \-o output source_dir /mnt/floppy If you are not using Linux, then you can use the hfsutils to copy the icon file from the floppy. However, care has to be taken, as the icon file contains a control character. e.g. hmount /dev/fd0 .br hdir \-a .br hcopy \-m Icon^V^M icon_dir/icon Where '^V^M' is control-V followed by control-M. Then run .B mkisofs by using something like: mkisofs \-\-macbin \-o output source_dir icon_dir .PP The procedure for creating/using custom folder icons is very similar - paste an icon to folder's "Get Info" box and transfer the resulting 'Icon\\r' file to the relevant directory in the mkisofs source tree. .PP You may want to hide the icon files from the ISO9660 and Joliet trees. .PP To give a custom icon to a Joliet CD, follow the instructions found at: http://www.fadden.com/cdrfaq/faq03.html#[3-21] .SH "HFS BOOT DRIVER It .I may be possible to make the hybrid CD bootable on a Macintosh. .PP A bootable HFS CD requires an Apple CD-ROM (or compatible) driver, a bootable HFS partition and the necessary System, Finder, etc. files. .PP A driver can be obtained from any other Macintosh bootable CD-ROM using the .I apple_driver utility. This file can then be used with the .B \-boot-hfs-file option. .PP The HFS partition (i.e. the hybrid disk in our case) must contain a suitable System Folder, again from another CD-ROM or disk. .PP For a partition to be bootable, it must have it's .I boot block set. The boot block is in the first two blocks of a partition. For a non-bootable partition the boot block is full of zeros. Normally, when a System file is copied to partition on a Macintosh disk, the boot block is filled with a number of required settings - unfortunately I don't know the full spec for the boot block, so I'm guessing that the following will work OK. .PP Therefore, the utility .I apple_driver also extracts the boot block from the first HFS partition it finds on the given CD-ROM and this is used for the HFS partition created by .BR mkisofs . .IP "PLEASE NOTE" By using a driver from an Apple CD and copying Apple software to your CD, you become liable to obey Apple Computer, Inc. Software License Agreements. .SH EL TORITOブート情報テーブル .B \-boot\-info\-table オプションが与えられると、 .B mkisofs は .B \-b オプションで与えられたブートファイルのオフセット 8 に 56 バイトの "ブー ト情報テーブル(boot information table)" を挿入して、ブートファイルを修 正する。 この修正は作成元となるファイルシステム上で行われるので、このファイルが 簡単に再作成できないのならちゃんとコピーをとっておくこと! このファイルはブート時には簡単には得られない、または信頼できる値が得ら れないポインタを含む。 このテーブルのフォーマットは以下の通り; すべての整数は 7.3.1 節("リトルエンディアン") フォーマットである。 .sp .RS +.2i .ta 1.1i 2.5i 3.5i .nf オフセット 名前 サイズ 意味 8 bi_pvd 4 bytes 最初のボリューム記述子の LBA 12 bi_file 4 bytes ブートファイルの LBA 16 bi_length 4 bytes バイト単位でのブートファイルの長さ 20 bi_csum 4 bytes 32 ビットチェックサム 24 bi_reserved 40 bytes 予約済み .fi .RE .sp 32 ビットチェックサムは、オフセット 64 バイトから始まるブートファイル のすべての32 ビットワードの和である。 All linear block addresses (LBAs) are given in CD sectors (normally 2048 bytes). .SH 環境 .B mkisofs は .IR \&.mkisofsrc ファイルを検索するために、最初は現在の作業ディレクトリを参照し、そして ユーザのホームディレクトリ、そのあとに .B mkisofs バイナリが保存されているディレクトリを参照する。このファイルは、 "TAG=value" 形式の行が含まれるものであり、この形式でいくつかのオプショ ンを設定できる。 タグの大文字小文字は意味を持たない。 ボリュームヘッダのいくつかのフィールドはコマンドラインで設定不可能であ るが、この設定ファイルで設定可能である。このファイルには、"#" 文字を使 用することによりコメントを付けられる。 .TP .B APPI アプリケーション識別子は、ディスクにあるアプリケーションを説明する。 ディスク上には 128 文字の情報の分の容量がある。 .B \-A コマンドラインオプションにより上書きできる。 .TP .B COPY 多くの場合著作権情報が格納されているディスク上のファイルの名前となって いる、著作権情報である。ディスク上には 37 文字の情報の分の容量がある。 .B \-copyright コマンドラインオプションにより上書きできる。 .TP .B ABST 多くの場合要約情報が格納されているディスク上のファイルとなっている、要 約情報である。ディスク上には 37 文字の情報の分の容量がある。 .B \-abstract コマンドラインオプションにより上書きできる。 .TP .B BIBL 多くの場合書誌情報が格納されているディスク上のファイルとなっている、書 誌情報である。ディスク上には 37 文字の情報の分の容量がある。 .B \-bilio .\"SEKINE -biblio コマンドラインオプションにより上書きできる。 .TP .B PREP これは CD-ROM の作成者をメールアドレスや電話番号で説明する。 ディスク上には 128 文字の情報の分の容量がある。 コマンドラインの .B \-p オプションにより上書きできる。 .TP .B PUBL これは CD-ROM の編集者をメールアドレスや電話番号で説明する。 ディスク上には 128 文字の情報の分の容量がある。 コマンドラインの .B \-P オプションにより上書きできる。 .TP .B SYSI システム識別子である。ディスク上には 32 文字の情報の分の容量がある。 コマンドラインの .B \-sysid オプションにより上書きできる。 .TP .B VOLI ボリューム識別子である。 ディスク上には 32 文字の情報の分の容量がある。 コマンドラインの .B \-V オプションにより上書きできる。 .TP .B VOLS ボリュームセット名。 ディスク上には 128 文字の情報の分の容量がある。 コマンドラインの .B \-volset オプションにより上書きできる。 .TP .B HFS_TYPE The default TYPE for Macintosh files. Must be exactly 4 characters. May be overridden using the .B \-hfs-type command line option. .TP .B HFS_CREATOR The default CREATOR for Macintosh files. Must be exactly 4 characters. May be overridden using the .B \-hfs-creator command line option. .PP .B mkisofs はコンパイル時にこれらのほとんどのフィールドをデフォルトとして設定する こともできる。 defaults.h ファイルを参照すること。 .SH EXAMPLES .PP To create a vanilla ISO-9660 filesystem image in the file .IR cd.iso , where the directory .I cd_dir will become the root directory if the CD, call: .PP % mkisofs \-o cd.iso cd_dir .PP To create a CD with Rock Ridge extensions of the source directory .IR cd_dir : .PP % mkisofs \-o cd.iso \-R cd_dir .PP To create a CD with Rock Ridge extensions of the source directory .I cd_dir where all files have at least read permission and all files are owned by .IR root , call: .PP % mkisofs \-o cd.iso \-r cd_dir .PP To create a HFS hybrid CD with the Joliet and Rock Ridge extensions of the source directory .IR cd_dir : .PP % mkisofs \-o cd.iso \-R \-J \-hfs cd_dir .PP To create a HFS hybrid CD from the source directory .I cd_dir that contains Netatalk Apple/Unix files: .PP % mkisofs \-o cd.iso \-\-netatalk cd_dir .PP To create a HFS hybrid CD from the source directory .IR cd_dir , giving all files CREATOR and TYPES based on just their filename extensions listed in the file "mapping".: .PP % mkisofs \-o cd.iso \-map mapping cd_dir .PP To create a CD with the 'Apple Extensions to ISO9660', from the source directories .I cd_dir and .IR another_dir. Files in all the known Apple/Unix format are decoded and any other files are given CREATOR and TYPE based on their magic number given in the file "magic": .PP % mkisofs \-o cd.iso \-apple \-magic magic \-probe \\ .br cd_dir another_dir .PP The following example puts different files on the CD that all have the name README, but have different contents when seen as a ISO9660/RockRidge, Joliet or HFS CD. .PP Current directory contains: .PP % ls \-F .br README.hfs README.joliet README.unix cd_dir/ .PP The following command puts the contents of the directory .I cd_dir on the CD along with the three README files - but only one will be seen from each of the three filesystems: .PP % mkisofs \-o cd.iso \-hfs \-J \-r \-graft-points \\ .br \-hide README.hfs \-hide README.joliet \\ .br \-hide-joliet README.hfs \-hide-joliet README.unix \\ .br \-hide-hfs README.joliet \-hide-hfs README.unix \\ .br README=README.hfs README=README.joliet \\ .br README=README.unix cd_dir .PP i.e. the file README.hfs will be seen as README on the HFS CD and the other two README files will be hidden. Similarly for the Joliet and ISO9660/RockRidge CD. .PP There are probably all sorts of strange results possible with combinations of the hide options ... .SH 著者 .B mkisofs は、ディスク上の ISO9660 ファイルシステムを完全に生成しなければならな いため、UNIX 向けの標準の mk*fs をベースにしていない。mkisofs という名 前は、ファイルシステムを作成するだけでなく、それを移植することもできる ため、おそらく少し不適切な名前かもしれない。 .PP .br Eric Youngdale または は、 Linux の ISOFS9660 ファイルシステム及び mkisofs ユーティリティを作成し、 これらは彼らにより保守されている。mkisofs ユーティリティの著作権 は Yggdrasil Computing, Incorporated により所有されている。 J\*org Schilling wrote the SCSI transport library and it's adaptation layer to .B mkisofs and newer parts (starting from 1999) of the utility, this makes .B mkisofs Copyright (C) 1999, 2000, 2001 J\*org Schilling. .PP HFS hybrid code Copyright (C) James Pearson 1997, 1998, 1999, 2000, 2001 .br libhfs code Copyright (C) 1996, 1997 Robert Leslie .br libfile code Copyright (C) Ian F. Darwin 1986, 1987, 1989, 1990, 1991, 1992, 1994, 1995. .SH 注意 .PP .B mkisofs は、suid root でインストールされても多分安全である。 これはマルチセッションを作成する時に .B mkisofs が前のセッションを読むのに必要なことである。 .PP If .B mkisofs is creating a filesystem image with Rock Ridge attributes and the directory nesting level of the source directory tree is too much for ISO-9660, .B mkisofs will do deep directory relocation. This results in a directory called .B RR_MOVED in the root directory of the CD. You cannot avoid this directory. .SH バグ .TP \(bu ISO9660 ファイルシステムにコピーされるツリーにないファイルへハードリ ンクしているすべてのファイルは誤った参照回数を持つ。 .TP \(bu Rock Ridge 拡張の存在を検証するために、ルートディレクトリの "." エントリにある SUSP レコードをチェックしない。 .sp この問題はマルチセッションモードでデータを追加している間に古いセッショ ンを読み込む時に起こる。 .TP \(bu マルチセッションモードでのデータ追加時に、再配置されたディレクトリを適 切に読み込まない。 .sp 新しいセッションが深いディレクトリを持たない場合、再配置された深いディレクトリは失われる。 .sp 繰り返す: 深いディレクトリを再配置して最初のセッションを作成し、単一の ディレクトリで新しいセッションを加えると、前の深いパスとは異なる。 .TP \(bu マルチセッションでは、TRANS.TBL からできる RR_MOVED を再利用しない。 .TP \(bu マルチセッションモードでは、RR_MOVED には完全な名前のエントリは作成されない。 .PP おそらく他にもあるだろう。作者に報告してほしい。 .SH "HFS PROBLEMS/LIMITATIONS I have had to make several assumptions on how I expect the modified libhfs routines to work, however there may be situations that either I haven't thought of, or come across when these assumptions fail. Therefore I can't guarantee that mkisofs will work as expected (although I haven't had a major problem yet). Most of the HFS features work fine, however, some are not fully tested. These are marked as .I Alpha above. .PP Although HFS filenames appear to support upper and lower case letters, the filesystem is case insensitive. i.e. the filenames "aBc" and "AbC" are the same. If a file is found in a directory with the same HFS name, then .I mkisofs will attempt, where possible, to make a unique name by adding '_' characters to one of the filenames. .PP HFS file/directory names that share the first 31 characters have _N' (N == decimal number) substituted for the last few characters to generate unique names. .PP Care must be taken when "grafting" Apple/Unix files or directories (see above for the method and syntax involved). It is not possible to use a new name for an Apple/Unix encoded file/directory. e.g. If a Apple/Unix encoded file called "oldname" is to added to the CD, then you can not use the command line: .IP mkisofs \-o output.raw \-hfs \-graft-points newname=oldname cd_dir .LP mkisofs will be unable to decode "oldname". However, you can graft Apple/Unix encoded files or directories as long as you do not attempt to give them new names as above. .PP When creating an HFS volume with the multisession options, .B \-M and .BR \-C , only files in the last session will be in the HFS volume. i.e. mkisofs can not .I add existing files from previous sessions to the HFS volume. .PP However, if each session is created with the .B \-part option, then each session will appear as separate volumes when mounted on a Mac. In this case, it is worth using the .B \-V or .B \-hfs-volid option to give each session a unique volume name, otherwise each "volume" will appear on the Desktop with the same name. .PP Symbolic links (as with all other non-regular files) are not added to the HFS directory. .PP Hybrid volumes may be larger than pure ISO9660 volumes containing the same data. In some cases (e.g. DVD sized volumes) the hybrid volume may be significantly larger. As an HFS volume gets bigger, so does the allocation block size (the smallest amount of space a file can occupy). For a 650Mb CD, the allocation block is 10Kb, for a 4.7Gb DVD it will be about 70Kb. .PP The maximum number of files in an HFS volume is about 65500 - although the real limit will be somewhat less than this. .PP The resulting hybrid volume can be accessed on a Unix machine by using the hfsutils routines. However, no changes can be made to the volume as it is set as .B locked. The option .B \-hfs-unlock will create an output image that is unlocked - however no changes should be made to the contents of the volume (unless you really know what you are doing) as it's not a "real" HFS volume. .PP Using the .B \-mac-name option will not currently work with the .B \-T option - the Unix name will be used in the TRANS.TBL file, not the Macintosh name. .PP Although .B mkisofs does not alter the contents of a file, if a binary file has it's TYPE set as 'TEXT', it .I may be read incorrectly on a Macintosh. Therefore a better choice for the default TYPE may be '????' .PP The .B \-mac-boot-file option may not work at all... .PP May not work with PC Exchange v2.2 or higher files (available with MacOS 8.1). DOS media containing PC Exchange files should be mounted as type .B msdos (not .BR vfat ) when using Linux. .PP The SFM format is only partially supported - see .B HFS MACINTOSH FILE FORMATS section above. .PP It is not possible to use the the .B \-sparc-boot or .B \-generic-boot options with the .B \-boot-hfs-file or .B \-prep-boot options. .PP .B mkisofs should be able to create HFS hybrid images over 4Gb, although this has not been fully tested. .SH "SEE ALSO .BR cdrecord (1), .BR mkzftree (1), .BR magic (5), .BR apple_driver (8). .SH 将来の改良 ある種の GUI インターフェース. .SH 入手性 .B m\&kisofs is available as part of the cdrecord package from ftp://ftp.berlios.de/pub/cdrecord/ .B hfsutils from ftp://ftp.mars.org/pub/hfs .B mkzftree is available as part of the zisofs-tools package from ftp://ftp.kernel.org/pub/linux/utils/fs/zisofs/ .SH メイリングリスト If you want to actively take part on the development of m\&kisofs, and/or mkhybrid, you may join the cdwriting mailing list by sending mail to: .nf .sp other-cdwrite-request@lists.debian.org .sp .fi and include the word .I subscribe in the body. The mail address of the list is: .nf .sp cdwrite@lists.debian.org .fi .SH MAINTAINER .nf J\*org Schilling Seestr. 110 D-13353 Berlin Germany .fi .SH "HFS MKHYBRID MAINTAINER James Pearson .PP j.pearson@ge.ucl.ac.uk .PP If you have support questions, send them to: .PP .B cdrecord-support@berlios.de .br or .B other-cdwrite@lists.debian.org .PP Of you definitly found a bug, send a mail to: .PP .B cdrecord-developers@berlios.de .br or .B schilling@fokus.fhg.de .PP To subscribe, use: .PP .B http://lists.berlios.de/mailman/listinfo/cdrecord-developers .br or .B http://lists.berlios.de/mailman/listinfo/cdrecord-support