⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mkisofs.8

📁 创建一个符合iso-9660标准的iso文件系统
💻 8
📖 第 1 页 / 共 5 页
字号:
.I SOMEIMAG.GIFand the Joliet/Rock Ridge would be.IR someimage.gif ..PPUsing the.B \-mac-nameoption will not currently work with the.B \-Toption - the Unixname will be used in the TRANS.TBL file, not the Macintosh name..PPThe existing mkisofs code will filter out any illegal characters for theISO9660 and Joliet filenames, but as mkisofs expects to be dealingdirectly with Unix names, it leaves the Rock Ridge names as is.But as '/' is a legal HFS filename character, the.B \-mac-nameoption converts '/' to a '_' in Rock Ridge filenames..PPIf the Apple extensions are used, then only the ISO9660 filenames willappear on the Macintosh. However, as the Macintosh ISO9660 drivers can use.I Level 2filenames, then you can use options like.B \-allow-multidotwithout problems ona Macintosh - still take care over the names, for example.I this.file.namewill be converted to.I THIS.FILEi.e. only have one '.', also filename.I abcdefghwill be seen as.I ABCDEFGHbut.I abcdefghiwill be seen as.I ABCDEFGHI.i.e. with a '.' at the end - don't know if this is a Macintoshproblem or m\&kisofs/mkhybrid problem. All filenames will be in uppercasewhen viewed on a Macintosh. Of course, DOS/Win3.X machines will not be ableto see Level 2 filenames....SH "HFS CUSTOM VOLUME/FOLDER ICONSTo give a HFS CD a custom icon, make sure the root (top level) folder includesa standard Macintosh volume icon file. To give a volume a custom icon ona 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' isthe 'carriage return' character) in the root folder..PA custom folder icon is very similar - an invisible file called 'Icon\\r'exits in the folder itself..PProbably the easiest way to create a custom icon that mkisofs can use, is toformat 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 usingsomething like:	mount \-t hfs /dev/fd0 /mnt/floppyThe floppy will be mounted as a CAP file system by default. Then run mkisofsusing something like:	mkisofs \--cap \-o output source_dir /mnt/floppyIf you are not using Linux, then you can use the hfsutils to copy the iconfile from the floppy. However, care has to be taken, as the icon filecontains a control character. e.g.	hmount /dev/fd0.br	hdir \-a.br	hcopy \-m Icon^V^M icon_dir/iconWhere '^V^M' is control-V followed by control-M. Then run .B mkisofsby using something like:	mkisofs \--macbin \-o output source_dir icon_dir.PPThe procedure for creating/using custom folder icons is very similar - pastean icon to folder's "Get Info" box and transfer the resulting 'Icon\\r'file to the relevant directory in the mkisofs source tree..PPYou may want to hide the icon files from the ISO9660 and Joliet trees..PPTo 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 DRIVERIt .I maybe possible to make the hybrid CD bootable on a Macintosh..PPA bootable HFS CD requires an Apple CD-ROM (or compatible) driver, a bootableHFS partition and the necessary System, Finder, etc. files..PPA driver can be obtained from any other Macintosh bootable CD-ROM using the.I apple_driverutility. This file can then be used with the.B \-boot-hfs-fileoption..PPThe HFS partition (i.e. the hybrid disk in our case) must contain asuitable System Folder, again from another CD-ROM or disk..PPFor a partition to be bootable, it must have it's .I boot blockset. The bootblock is in the first two blocks of a partition. For a non-bootable partitionthe boot block is full of zeros. Normally, when a System file is copied topartition on a Macintosh disk, the boot block is filled with a number ofrequired settings - unfortunately I don't know the full spec for the bootblock, so I'm guessing that the following will work OK..PPTherefore, the utility.I apple_driveralso extracts the boot block from thefirst HFS partition it finds on the given CD-ROM and this is used for theHFS 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 BOOT INFORMATION TABLEWhen the.B \-boot-info-tableoption is given,.B mkisofswill modify the boot file specified by the.B \-boption by inserting a 56-byte "boot information table" at offset 8 inthe file.  This modification is done in the source filesystem, so makesure you use a copy if this file is not easily recreated!  This filecontains pointers which may not be easily or reliably obtained at boottime..PPThe format of this table is as follows; all integers are insection 7.3.1 ("little endian") format..sp.RS +.2i.ta 1.0i 2.5i 3.5i.nfOffset	Name	Size	Meaning 8	bi_pvd	4 bytes	LBA of primary volume descriptor12	bi_file	4 bytes	LBA of boot file16	bi_length	4 bytes	Boot file length in bytes20	bi_csum	4 bytes	32-bit checksum24	bi_reserved	40 bytes	Reserved.fi.RE.spThe 32-bit checksum is the sum of all the 32-bit words in the bootfile starting at byte offset 64.  All linear block addresses (LBAs)are given in CD sectors (normally 2048 bytes)..SH CONFIGURATION.B mkisofslooks for the.B \&.m\&kisofsrcfile,first in the current working directory,then in the user's home directory,and then in the directory in which the.B mkisofsbinary is stored.  This file is assumed to contain a series of linesof the form.BI TAG= value,and in this way you can specify certain options.The case of the tag is not significant.Some fields in the volume headerare not settable on the command line, but can be altered through thisfacility.Comments may be placed in this file,using lines which start with a hash (#) character..TP.B APPIThe application identifiershould describe the application that will be on the disc.There is space on the disc for 128 characters of information.May be overridden using the.B \-Acommand line option..TP.B COPYThe copyright information,often the name of a file on the disc containing the copyright notice.There is space in the disc for 37 characters of information.May be overridden using the.B \-copyrightcommand line option..TP.B ABSTThe abstract information,often the name of a file on the disc containing an abstract.There is space in the disc for 37 characters of information.May be overridden using the.B \-abstractcommand line option..TP.B BIBLThe bibliographic information,often the name of a file on the disc containing a bibliography.There is space in the disc for 37 characters of information.May be overridden using the.B \-biliocommand line option..TP.B PREPThis should describe the preparer of the CDROM,usually with a mailing address and phone number.There is space on the disc for 128 characters of information.May be overridden using the.B \-pcommand line option..TP.B PUBLThis should describe the publisher of the CDROM,usually with a mailing address and phone number.There is space on the disc for 128 characters of information.May be overridden using the.B \-Pcommand line option..TP.B SYSIThe System Identifier.There is space on the disc for 32 characters of information.May be overridden using the.B \-sysidcommand line option..TP.B VOLIThe Volume Identifier.There is space on the disc for 32 characters of information.May be overridden using the.B \-Vcommand line option..TP.B VOLSThe Volume Set Name.There is space on the disc for 128 characters of information.May be overridden using the.B \-volsetcommand line option..TP.B HFS_TYPEThe default TYPE for Macintosh files. Must be exactly 4 characters.May be overridden using the.B \-hfs-typecommand line option..TP.B HFS_CREATORThe default CREATOR for Macintosh files. Must be exactly 4 characters.May be overridden using the.B \-hfs-creatorcommand line option..PP.B mkisofscan also be configured at compile time with defaults for many of these fields.See the file defaults.h..SH EXAMPLES.PPTo create a vanilla ISO-9660 filesystem image in the file .IR cd.iso ,where the directory.I cd_dirwill become the root directory if the CD, call:.PP% mkisofs \-o cd.iso cd_dir.PPTo create a HFS hybrid CD with Rock Ridge extensions ofthe source directory.IR cd_dir :.PP% mkisofs \-o cd.iso \-R cd_dir.PPTo create a HFS hybrid CD with Rock Ridge extensions ofthe source directory.I cd_dirwhere all files have at least read permission and all filesare owned by.IR root ,call:.PP% mkisofs \-o cd.iso \-r cd_dir.PPTo create a HFS hybrid CD with the Joliet and Rock Ridge extensions ofthe source directory.IR cd_dir :.PP% mkisofs \-o cd.iso \-R \-J \-hfs cd_dir.PPTo create a HFS hybrid CD from the source directory .I cd_dirthat containsNetatalk Apple/Unix files:.PP% mkisofs \-o cd.iso \--netatalk cd_dir.PPTo create a HFS hybrid CD from the source directory.IR cd_dir ,giving all filesCREATOR and TYPES based on just their filename extensions listed in the file "mapping".:.PP% mkisofs \-o cd.iso \-map mapping cd_dir.PPTo create a CD with the 'Apple Extensions to ISO9660', from the sourcedirectories.I cd_dirand.IR another_dir.Files in all the known Apple/Unix formatare decoded and any other files are given CREATOR and TYPE based on theirmagic number given in the file "magic":.PP% mkisofs \-o cd.iso \-apple \-magic magic \-probe \\.br        cd_dir another_dir.PPThe following example puts different files on the CD that all havethe name README, but have different contents when seen as aISO9660/RockRidge, Joliet or HFS CD..PPCurrent directory contains:.PP% ls \-F.brREADME.hfs     README.joliet  README.unix    cd_dir/.PPThe following command puts the contents of the directory.I cd_diron theCD along with the three README files - but only one will be seen fromeach of the three filesystems:.PP% mkisofs \-o cd.iso \-hfs \-J \-r \\.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.PPi.e. the file README.hfs will be seen as README on the HFS CD and theother two README files will be hidden. Similarly for the Joliet andISO9660/RockRidge CD..PPThere are probably all sorts of strange results possible withcombinations of the hide options ....SH AUTHOR.B m\&kisofsis not based on the standard mk*fs tools for unix, because we must generatea complete  copy of an existing filesystem on a disk in the  iso9660filesystem.  The name m\&kisofs is probably a bit of a misnomer, since itnot only creates the filesystem, but it also populates it as well.However, the appropriate tool name for a UNIX tool that creates populatedfilesystems - mkproto - is not well known..PP.brEric Youngdale <ericy@gnu.ai.mit.edu> or <eric@andante.org> wrote thefirst versions (1993 .\|.\|. 1998) of the m\&kisofs utility.The copyright for old versions of the m\&kisofs utility is held byYggdrasil Computing, Incorporated.J\*org Schilling wrote the SCSI transport library and it's adaptation layer to.B mkisofsand newer parts (starting from 1999) of the utility, this makes.B mkisofsCopyright (C) 1999, 2000 J\*org Schilling..PPHFS hybrid code Copyright (C) James Pearson 1997, 1998, 1999, 2000.brlibhfs code Copyright (C) 1996, 1997 Robert Leslie.brlibfile code Copyright (C) Ian F. Darwin 1986, 1987, 1989, 1990, 1991,1992, 1994, 1995..SH NOTES.B Mkisofsmay safely be installed suid root. This may be needed to allow.B mkisofsto read the previous session when creating a multi session image..SH BUGS.TP\(buAny files that have hard links to files not in the tree being copied to theiso9660 filesystem will have an incorrect file reference count..TP\(buDoes not check for SUSP record(s) in "." entry of theroot directory to verify the existence of Rock Ridgeenhancements..spThis problem is present when reading old sessions whileadding data in multi-session mode..TP\(buDoes not properly read relocated directories in multi-sessionmode when adding data..spAny relocated deep directory is lost if the new session does notinclude the deep directory..spRepeat by: create first session with deep directory relocationthen add new session with a single dir that differs from theold deep path..TP\(buDoes not re-use RR_MOVED when doing multi-session from TRANS.TBL.TP\(buDoes not create whole_name entry for RR_MOVED in multi-sessionmode..PPThere may be some other ones.  Please, report them to the author..SH "HFS PROBLEMS/LIMITATIONSI have had to make several assumptions on how I expect the modifiedlibhfs routines to work, however there may be situations that eitherI 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 workfine, however, some are not fully tested. These are marked as.I Alphaabove..PPAlthough 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 mkisofswill attempt, where possible, to make a unique name by adding '_' charactersto one of the filenames..PPHFS file/directory names that share the first 31 characters have_N' (N == decimal number) substituted for the last few charactersto generate unique names..PPCare must be taken when "grafting" Apple/Unix files or directories (seeabove for the method and syntax involved). It is not possible to use anew name for an Apple/Unix encoded file/directory. e.g. If a Apple/Unixencoded file called "oldname" is to added to the CD, then you can not usethe command line:.IPmkisofs \

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -