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

📄 mkisofs.8

📁 创建一个符合iso-9660标准的iso文件系统
💻 8
📖 第 1 页 / 共 5 页
字号:
desktop. Folder location and size on screen, its scroll positions, folderView (view as Icons, Small Icons, etc.) are also preserved.This option may become set by default in the future.(Alpha)..TP.BI \-root-info " fileSet the location, size on screen, scroll positions, folder View etc. for theroot folder of an HFS volume. See README.rootinfo for more information.(Alpha).TP.BI \-prep-boot " FILEPReP boot image file. Up to 4 are allowed. See README.prep_boot (Alpha).TP.B \--capLook for AUFS CAP Macintosh files. Search for CAP Apple/Unix file formatsonly. Searching for the other possible Apple/Unix file formats is disabled,unless other.I double dashoptions are given..TP.B \--netatalkLook for NETATALK Macintosh files.TP.B \--doubleLook for AppleDouble Macintosh files.TP.B \--ethershareLook for Helios EtherShare Macintosh files.TP.B \--ushareLook for IPT UShare Macintosh files.TP.B \--exchangeLook for PC Exchange Macintosh files.TP.B \--sgiLook for SGI Macintosh files.TP.B \--xinetLook for XINET Macintosh files.TP.B \--macbinLook for MacBinary Macintosh files.TP.B \--singleLook for AppleSingle Macintosh files.TP.B \--daveLook for Thursby Software Systems DAVE Macintosh files.TP.B \--sfmLook for Microsoft's Services for Macintosh files (NT only) (Alpha).SH "HFS CREATOR/TYPEA Macintosh file has two properties associated with it which definewhich application created the file, the.I CREATORand what data the file contains, the.IR TYPE .Both are (exactly) 4 letter strings. Usually thisallows a Macintosh user to double-click on a file and launch the correctapplication etc. The CREATOR and TYPE of a particular file can be found byusing something like ResEdit (or similar) on a Macintosh..LPThe CREATOR and TYPE information is stored in all the various Apple/Unixencoded files.For other files it is possible to base the CREATOR and TYPE on thefilename's extension using a.I mappingfile (the.B \-mapoption) and/or using the.I magic number(usually a.I signaturein the first few bytes)of a file (the.B \-magicoption). If both these options are given, then their order on the commandline is important. If the.B \-mapoption is given first, then a filename extension match is attemptedbefore a magic number match. However, if the.B \-magicoption is given first, then a magic number match is attempted before afilename extension match..PPIf a mapping or magic file is not used, or no match is found then the defaultCREATOR and TYPE for all regular files can be set by using entries in the .B \&.m\&kisofsrcfile or using the .B \-hfs-creatorand/or.B \-hfs-typeoptions, otherwise the default CREATOR and TYPE are 'unix' and 'TEXT'..PPThe format of the.I mappingfile is the same.I afpfileformat as used by.IR aufs .This file has five columns for the.IR extension ,.I file.IR translation ,.IR CREATOR ,.I TYPEand.IR Comment .Lines starting with the '#' character arecomment lines and are ignored. An example file would be like:.LP.TStab (/);l s s s sl s s s sl 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.LPWhere:.IPThe first column.I EXTNdefines the Unix filename extension to bemapped. The default mapping for any filename extension that doesn'tmatch is defined with the "*" character..IPThe.I Xlatecolumn defines the type of text translation between the Unix andMacintosh file it is ignored by.BR mkisofs ,but is kept to be compatible with.BR aufs (1).Although .B mkisofsdoes not alter the contents of a file, if a binary file has it's TYPEset as 'TEXT', it.I maybe read incorrectly on a Macintosh. Therefore a better choice for thedefault TYPE may be '????'.IPThe.I CREATORand.I TYPEkeywords must be 4 characters long and enclosed in single quotes..IPThe comment field is enclosed in double quotes - it is ignored by.BR mkisofs ,but is kept to be compatible with .BR aufs ..PPThe format of the.I magicfile 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 magicfile are based on the Linux.BR file (1)command..PPThis file has four tab separated columns for the .I byte.IR offset ,.IR type ,.I testand.IR message .Lines starting with the '#' character arecomment lines and are ignored. An example file would be like:.LP.TStab (/);l s s sl s s sl l l l .# Example magic file## off/type/test/message0/string/GIF8/8BIM GIFf  GIF image0/beshort/0xffd8/8BIM JPEG  image data0/string/SIT!/SIT! SIT!  StuffIt Archive0/string/\\037\\235/LZIV ZIVU  standard unix compress0/string/\\037\\213/GNUz ZIVU  gzip compressed data0/string/%!/ASPS TEXT  Postscript0/string/\\004%!/ASPS TEXT  PC Postscript with a ^D to start4/string/moov/txtt MooV  QuickTime movie file (moov)4/string/mdat/txtt MooV  QuickTime movie file (mdat).TE.PPThe 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 messagefor the initial offset.B mustbe 4 characters for the CREATOR followed by 4 characters for the TYPE -white space isoptional between them. Any other characters on this line are ignored.Continuation lines (starting with a '>') are also ignored i.e. only the initialoffset lines are used..PPUsing the.B \-magicoption may significantly increase processing time as each file has to openedand read to find it's magic number..PPIn summary, for all files, the default CREATOR is 'unix' and the defaultTYPE is 'TEXT'.  These can be changed by using entries in the .I \&.m\&kisofsrc file or by using the.B \-hfs-creatorand/or.B \-hfs-typeoptions. .PPIf the a file is in one of the known Apple/Unix formats (and the formathas been selected), then the CREATOR and TYPE are taken from the valuesstored in the Apple/Unix file..PPOther files can have their CREATOR and TYPE set from their file nameextension (the.B \-mapoption), or their magic number (the.B \-magicoption). If the default match is used in the.I mappingfile, then these values override the default CREATOR and TYPE..PPA full CREATOR/TYPE database can be found at http://www.angelfire.com/il/szekely/index.html.SH "HFS MACINTOSH FILE FORMATSMacintosh files have two parts called the.I Dataand.I Resourcefork. Either may be empty. Unix (and many other OSs) can onlycope with files having one part (or fork). To add to this, Macintosh fileshave a number of attributes associated with them - probably the mostimportant are the TYPE and CREATOR. Again Unix has no concept of thesetypes of attributes..PPe.g. a Macintosh file may be a JPEG image where the image is stored in theData fork and a desktop thumbnail stored in the Resource fork. It is usuallythe information in the data fork that is useful across platforms..PPTherefore to store a Macintosh file on a Unix filesystem, a way has to befound to cope with the two forks and the extra attributes (which arereferred to as the.I finder.IR info ).Unfortunately, it seems that every software package that stores Macintoshfiles on Unix has chosen a completely different storage method..PPThe Apple/Unix formats that.I mkisofs(partially) supports are:.IP "CAP AUFS format"Data fork stored in a file. Resource fork in subdirectory .resourcewith same filename as data fork. Finder infoin .finderinfo subdirectory with same filename..IP "AppleDouble/Netatalk"Data fork stored in a file. Resource fork stored in a file withsame name prefixed with "%". Finder info also stored in same"%" file. Netatalk uses the same format, but the resourcefork/finderinfo stored in subdirectory .AppleDouble with samename as data fork..IP AppleSingleData structures similar to above, except both forks and finderinfo are stored in one file..IP "Helios EtherShare"Data fork stored in a file. Resource fork and finder info together insubdirectory .rsrc with same filename as data fork..IP "IPT UShare"Very similar to the EtherShare format, but the finder infois stored slightly differently..IP MacBinaryBoth 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 subdirectoryresource.frk (or RESOURCE.FRK). Finder info as one recordin file finder.dat (or FINDER.DAT). Separate finder.dat foreach data fork directory..IPNote: .I mkisofsneeds to know the native FAT cluster size of the disk that the PC Exchangefiles are on (or have been copied from). This size is given by the.B \-cluster-sizeoption.The cluster or allocation size can be found by using the DOS utility.BR CHKDSK ..IPMay 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 storedin a file. Resource fork in subdirectory .HSResource with samename. Finder info as one record in file .HSancillary. Separate .HSancillaryfor 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 subdirectoryresource.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 isstored as "filename". Resource fork stored as a NTFS.I streamcalled "filename:AFP_Resource". The finder info is stored as a NTFS.I streamcalled "filename:Afp_AfpInfo". These streams are normally invisible to theuser..IPWarning: mkisofs only partially supports the SFM format. If an HFS fileor folder stored on the NT server contains an.I illegalNT character in its name, then NT converts these characters to.I Private Use Unicodecharacters. The characters are: " * / < > ? \ | also a space orperiod if it is the last character of the file name, character codes 0x01to 0x1f (control characters) and Apple' apple logo..IPUnfortunately, these private Unicode characters are notreadable by the mkisofs NT executable. Therefore any file or directoryname containing these characters will be ignored - including the contents ofany such directory..LP.I mkisofswill attempt to set the CREATOR, TYPE, date and possibly other flags fromthe finder info. Additionally, if it exists, the Macintosh filename is setfrom the finder info, otherwise the Macintosh name is based on the Unixfilename - see the.B "HFS MACINTOSH FILE NAMESsection below..PPWhen using the.B \-appleoption, the TYPE and CREATOR are stored in the optional System Use or SUSP fieldin the ISO9660 Directory Record - in much the same way as the Rock Ridgeattributes are. In fact to make life easy, the Apple extensions are addedat the beginning of the existing Rock Ridge attributes (i.e. to get the Appleextensions you get the Rock Ridge extensions as well)..PPThe Apple extensions require the resource fork to be stored as an ISO9660.I associatedfile. This is just like any normal file stored in the ISO9660 filesystemexcept that the associated file flag is set in the Directory Record (bit2). This file has the same name as the data fork (the file seen bynon-Apple machines). Associated files are normally ignored by other OSs.PPWhen using the.B \-hfsoption, the TYPE and CREATOR plus other finder info, are stored in a separateHFS directory, not visible on the ISO9660 volume. The HFS directory referencesthe same data and resource fork files described above..PPIn most cases, it is better to use the.B \-hfsoption instead of the.B \-appleoption, as the latter imposes the limited ISO9660 characters allowed infilenames. However, the Apple extensions do give the advantage that thefiles 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 isapproaching 650MB..SH "HFS MACINTOSH FILE NAMESWhere possible, the HFS filename that is stored with an Apple/Unix fileis used for the HFS part of the CD. However, not all the Apple/Unixencodings store the HFS filename with the finderinfo. In these cases,the Unix filename is used - with escaped special characters. Specialcharacters include '/' and characters with codes over 127..PPAufs escapes these characters by using ":" followed by the character codeas two hex digits. Netatalk and EtherShare have a similar scheme, but uses"%" instead of a ":"..PPIf mkisofs can't find an HFS filename, then it uses the Unix name, withany %xx or :xx characters (xx == two hex digits) converted to a singlecharacter code. If "xx" are not hex digits ([0-9a-fA-F]), then they areleft alone - although any remaining ":" is converted to "%" as colonis the HFS directory separator. Care must be taken, as an ordinary Unixfile with %xx or :xx will also be converted. e.g..PP.TSl l l sl ll sl l .This:2fFile	converted to This/File	This:File	converted to This%File	This:t7File	converted to This%t7File.TE.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. .PPIf an HFS filename exists for a file, then mkisofs can use this name asthe starting point for the ISO9660, Joliet and Rock Ridge filenames usingthe.B \-mac-nameoption. Normal Unix files without an HFS name will still use their Unix name.e.g..PPIf a.I MacBinary(or.I PC.IR Exchange )file is stored as .I someimage.gif.binon 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, asmkisofs uses the Unix name as the starting point for the other names, thenthe ISO9660 name generated will probably be .I SOMEIMAG.BINand the Joliet/Rock Ridge would be.IR someimage.gif.bin .Although the actual data (in this case) is a GIF image. This option will usethe HFS filename as the starting point and the ISO9660 name will probably be

⌨️ 快捷键说明

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