1
0

mk9660 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. .TH MK9660 8
  2. .SH NAME
  3. dump9660, mk9660 \- create an ISO-9660 CD image
  4. .SH SYNOPSIS
  5. .B disk/mk9660
  6. [
  7. .B -:D
  8. ]
  9. [
  10. .B -9cjr
  11. ]
  12. [
  13. .B -b
  14. .I bootfile
  15. ]
  16. [
  17. .B -B
  18. .I bootfile
  19. [
  20. .B -x
  21. .I loader
  22. ]
  23. ]
  24. [
  25. .B -p
  26. .I proto
  27. ]
  28. [
  29. .B -s
  30. .I src
  31. ]
  32. [
  33. .B -v
  34. .I volume
  35. ]
  36. [
  37. .B -n
  38. .I now
  39. ]
  40. .I image
  41. .PP
  42. .B disk/dump9660
  43. [
  44. .B -:D
  45. ]
  46. [
  47. .B -9cjr
  48. ]
  49. [
  50. .B -p
  51. .I proto
  52. ]
  53. [
  54. .B -s
  55. .I src
  56. ]
  57. [
  58. .B -v
  59. .I volume
  60. ]
  61. [
  62. .B -m
  63. .I maxsize
  64. ]
  65. [
  66. .B -n
  67. .I now
  68. ]
  69. .I image
  70. .SH DESCRIPTION
  71. .I Mk9660
  72. writes to the random access file
  73. .I image
  74. an ISO-9660 CD image containing the
  75. files named in
  76. .I proto
  77. (by default,
  78. .BR /sys/lib/sysconfig/proto/portproto )
  79. from the file tree
  80. .I src
  81. (by default,
  82. the current directory).
  83. The
  84. .I proto
  85. file is formatted as described in
  86. .IR mkfs (8).
  87. .PP
  88. The created CD image will be in ISO-9660
  89. format, but by default the file names will
  90. be stored in UTF-8 with no imposed length
  91. or character restrictions.
  92. The
  93. .B -c
  94. flag causes
  95. .I mk9660
  96. to use only file names in ``8.3'' form
  97. that use digits, letters, and underscore.
  98. File names that do not conform are changed
  99. to
  100. .BI D nnnnnn
  101. (for directories)
  102. or
  103. .BI F nnnnnn
  104. (for files);
  105. a key file
  106. .B _CONFORM.MAP
  107. is created in the root
  108. directory to ease the reverse process.
  109. .PP
  110. If the
  111. .B -9
  112. flag is given, the system use fields at the end of
  113. each directory entry will be populated with
  114. Plan directory information (owner, group, mode,
  115. full name); this is interpreted by
  116. .IR 9660srv .
  117. .PP
  118. If the
  119. .B -j
  120. flag is given, the usual directory tree is written,
  121. but an additional tree in Microsoft Joliet format is
  122. also added.
  123. This second tree can contain long Unicode file names,
  124. and can be read by
  125. .I 9660srv
  126. as well as most versions of Windows
  127. and many Unix clones.
  128. The characters
  129. .BR * ,
  130. .BR : ,
  131. .BR ; ,
  132. .BR ? ,
  133. and
  134. .B \e
  135. are allowed in Plan 9 file names but not in Joliet file names;
  136. non-conforming file names are translated
  137. and a
  138. .B _CONFORM.MAP
  139. file written
  140. as in the case of the
  141. .B -c
  142. option.
  143. .PP
  144. If the
  145. .B -r
  146. flag is given, Rock Ridge extensions are written in the
  147. format of the system use sharing protocol;
  148. this format provides Posix-style file metadata and is
  149. common on Unix platforms.
  150. .PP
  151. The options
  152. .BR -c ,
  153. .BR -9 ,
  154. .BR -j ,
  155. and
  156. .B -r
  157. may be mixed freely with the exception that
  158. .B -9
  159. and
  160. .B -r
  161. are mutually exclusive.
  162. .PP
  163. The
  164. .B -v
  165. flag sets the volume title;
  166. if unspecified, the base name of
  167. .I proto
  168. is used.
  169. .PP
  170. The
  171. .B -:
  172. flag causes
  173. .I mk9660
  174. to replace colons in scanned file names with spaces;
  175. this is the inverse of the map applied by
  176. .IR dossrv (4)
  177. and is useful for writing Joliet CDs containing data
  178. from FAT file systems.
  179. .PP
  180. The
  181. .B -b
  182. option creates a bootable CD.
  183. Bootable CDs contain pointers to floppy images which are
  184. loaded and booted by the BIOS.
  185. .I Bootfile
  186. should be the name of the floppy image to use;
  187. it is a path relative to the root of the created CD.
  188. That is, the boot floppy image must be listed in the
  189. .I proto
  190. file already:
  191. the
  192. .B -b
  193. option just creates a pointer to it.
  194. .PP
  195. The
  196. .B -B
  197. option is similar to
  198. .B -b
  199. but the created CD image is marked as having a non-floppy-emulation
  200. boot block.
  201. This gives the program in the boot block full (ATA) LBA access
  202. to the CD filesystem, not just the initial blocks that would fit on a floppy.
  203. Additionally,
  204. .B -x
  205. can be used in conjunction with
  206. .B -B
  207. to make
  208. .I mk9660
  209. annotate the boot file with the address and size of
  210. the loader, which has to be a file in the CD's root directory.
  211. .PP
  212. The
  213. .B -D
  214. flag creates immense amounts of debugging output
  215. on standard error.
  216. .PP
  217. .I Dump9660
  218. is similar in specification to
  219. .I mk9660
  220. but creates and updates backup CD images in the style of
  221. the
  222. .I dump
  223. file system
  224. (see
  225. .IR fs (4)).
  226. The dump is file-based rather than block-based:
  227. if a file's contents have not changed since the last
  228. backup, only its directory entry will be rewritten.
  229. .PP
  230. The
  231. .B -n
  232. option specifies a time (in seconds since January 1, 1970)
  233. to be used for naming the dump directory.
  234. .PP
  235. The
  236. .B -m
  237. option specifies a maximum size for the image;
  238. if a backup would cause the image to grow larger than
  239. .IR maxsize ,
  240. it will not be written, and
  241. .I dump9660
  242. will exit with a non-empty status.
  243. .SH EXAMPLE
  244. .PP
  245. Create an image of the Plan 9 source tree,
  246. including a conformant ISO-9660 directory tree,
  247. Plan 9 extensions in the system use fields, and
  248. a Joliet directory tree.
  249. .IP
  250. .EX
  251. disk/mk9660 -9cj -s /sys/src \e
  252. -p /sys/lib/sysconfig/proto/allproto cdimage
  253. .EE
  254. .SH SOURCE
  255. .B /sys/src/cmd/disk/9660
  256. .SH "SEE ALSO"
  257. .I 9660srv
  258. (in
  259. .IR dossrv (4)),
  260. .IR cdfs (4),
  261. .IR mkfs (8)
  262. .br
  263. .B http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-119.pdf