Mkisofs: Difference between revisions

From ICO wiki
Jump to navigationJump to search
Line 7: Line 7:
== Sissejuhatus ja ülevaade [http://linux.die.net/man/8/mkisofs[1]][http://linux.about.com/library/cmd/blcmdl8_mkisofs.htm[6]]==
== Sissejuhatus ja ülevaade [http://linux.die.net/man/8/mkisofs[1]][http://linux.about.com/library/cmd/blcmdl8_mkisofs.htm[6]]==


Mkisofs on tööriist, mida kasutatakse ISO 9660/JOLIET/HFS kuvandite tegemiseks [http://en.wikipedia.org/wiki/Rock_Ridge Rock Ridge]  atribuutidega. Näiteks ISO 9660 failisüsteem on CD-ROM failide standard, mis võimaldab kasutajatel lugeda CD-ROM-e olenemata kasutatavast arvutiplatvormist (PC, Mac jmt).[http://whatis.techtarget.com/definition/ISO-9660[3]] JOLIET teeb kirjutatava meediumi nö Windowsi sõbralikumaks ja HFS on mõeldud Macintoshi arvutitele. Failide kopeerimise ajal meediumile (CD, DVD) tekitab mkisofs meediumile failisüsteemi. Mkisofs-i väljundit ei saadeta otse kirjutavale seadmele ning selleks on olnud kolm põhjust:   
Mkisofs on tööriist, mida kasutatakse ISO 9660/JOLIET/HFS kuvandite tegemiseks valikuliste [http://en.wikipedia.org/wiki/Rock_Ridge Rock Ridge]  atribuutidega. Näiteks ISO 9660 failisüsteem on CD-ROM failide standard, mis võimaldab kasutajatel lugeda CD-ROM-e olenemata kasutatavast arvutiplatvormist (PC, Mac jmt).[http://whatis.techtarget.com/definition/ISO-9660[3]] JOLIET teeb kirjutatava meediumi nö Windowsi sõbralikumaks ja HFS on mõeldud Macintoshi arvutitele. Failide kopeerimise ajal meediumile (CD, DVD) tekitab mkisofs meediumile failisüsteemi. Mkisofs-i väljundit ei saadeta otse kirjutavale seadmele ning selleks on olnud kolm põhjust:   


•mkisofs ei tea midagi CD/DVD kirjutajate jooksutamisest
•mkisofs ei tea midagi CD/DVD kirjutajate jooksutamisest

Revision as of 11:46, 31 December 2014

Autor

Raivo Tammus - AK21



Sissejuhatus ja ülevaade [1][6]

Mkisofs on tööriist, mida kasutatakse ISO 9660/JOLIET/HFS kuvandite tegemiseks valikuliste Rock Ridge atribuutidega. Näiteks ISO 9660 failisüsteem on CD-ROM failide standard, mis võimaldab kasutajatel lugeda CD-ROM-e olenemata kasutatavast arvutiplatvormist (PC, Mac jmt).[3] JOLIET teeb kirjutatava meediumi nö Windowsi sõbralikumaks ja HFS on mõeldud Macintoshi arvutitele. Failide kopeerimise ajal meediumile (CD, DVD) tekitab mkisofs meediumile failisüsteemi. Mkisofs-i väljundit ei saadeta otse kirjutavale seadmele ning selleks on olnud kolm põhjust:

•mkisofs ei tea midagi CD/DVD kirjutajate jooksutamisest

•Kasutajal võib olla vajadus enne kirjutamist kuvandit testida

•Aeglastel masinatel ei oleks see piisavalt töökindel [5]

vt siit lisaks:

http://wiki.osdev.org/Mkisofs

http://linux.die.net/man/8/mkisofs

mkisofs is effectively a pre-mastering program to generate an ISO9660/JOLIET/HFS hybrid filesystem. mkisofs is capable of generating the System Use Sharing Protocol records (SUSP) specified by the Rock Ridge Interchange Protocol. This is used to further describe the files in the iso9660 filesystem to a unix host, and provides information such as longer filenames, uid/gid, posix permissions, symbolic links, block and character devices.

If Joliet or HFS hybrid command line options are specified, mkisofs will create additional filesystem meta data for Joliet or HFS. The file content in this case refers to the same data blocks on the media. It will generate a pure ISO9660 filesystem unless the Joliet or HFS hybrid command line options are given.

Käsu formaat [2]

mkisofs [ options ] [ -o filename ] pathspec [pathspec ...]  mkisofs  [ options ] [ -o filename ] -find [find expression]
Võtmete kirjeldused[1] [4]

-abstract FILE

Specifies the abstract file name. There is space on the disc for 37 characters of information. This parameter can also be set in the file .mkisofsrc with ABST=filename. If specified in both places, the command line version is used.

-A application_id

Specifies a text string that will be written into the volume header. This should describe the application that will be on the disc. There is space on the disc for 128 characters of information. This parameter can also be set in the file .mkisofsrc with APPI=id. If specified in both places, the command line version is used.

-ldots

Allow ISO9660 filenames to begin with a period. Usually, a leading dot is replaced with an underscore in order to maintain MS-DOS compatibility. This violates the ISO9660 standard, but it happens to work on many systems. Use with caution.</nowiki>

-b eltorito_boot_image

Specifies the path and filename of the boot image to be used when making an "El Torito" bootable CD. The pathname must be relative to the source path specified to mkisofs. This option is required to make an "El Torito" bootable CD. The boot image must be exactly the size of either a 1200, 1440, or a 2880 kB floppy, and mkisofs will use this size when creating the output iso9660 filesystem. It is assumed that the first 512 byte sector should be read from the boot image (it is essentially emulating a normal floppy drive). This will work, for example, if the boot image is a LILO based boot floppy. If the boot image is not an image of a floppy, you need to add one of the options: -hard-disk-boot or -no-emul-boot. If the system should not boot off the emulated disk, use -no-boot.

If the -sort option has not been specified, the boot images are sorted with low priority (+2) to the beginning of the medium. If you don't like this, you need to specify a sort weight of 0 for the boot images.

-hard-disk-boot

Specifies that the boot image used to create "El Torito" bootable CDs is a hard disk image. The hard disk image must begin with a master boot record that contains a single partition.

-o filename

is the name of the file to which the iso9660 filesystem image should be written. This can be a disk file, a tape drive, or it can correspond directly to the device name of the optical disc writer. If not specified, stdout is used. Note that the output can also be a block special device for a regular disk drive, in which case the disk partition can be mounted and examined to ensure that the premastering was done correctly.

Näited

mkisofs -r -o cd_image private_collection/

The option '-r' sets the permissions of all files to be public readable on the CD and enables RockRidge-extensions. You probably want to use this option unless you really know what you're doing (hint: without '-r' the mount point gets the permissions of private_collection!). (-o cd_image kirjutab väljundi cd-le) ja (private_collection võtab selle kausta sisendiks).

Kokkuvõte

...

Kasutatud kirjandus

Kogu dokumentatsioon on kirjutatud tuginedes järgnevatele allikatele ja juhenditele:

[1]http://linux.die.net/man/8/mkisofs

[2]http://manpages.ubuntu.com/manpages/gutsy/en/man8/mkisofs.8.html

[3]http://whatis.techtarget.com/definition/ISO-9660

[4]http://linux.die.net/man/8/mkisofs

Category: Operatsioonisüsteemide administreerimine ja sidumine