Update grml2usb files to v0.13.4
[grml.org.git] / grml2usb / index.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"\r
2     "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\r
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">\r
4 <head>\r
5 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />\r
6 <meta name="generator" content="AsciiDoc 8.6.7" />\r
7 <title>grml2usb(8)</title>\r
8 <style type="text/css">\r
9 /* Shared CSS for AsciiDoc xhtml11 and html5 backends */\r
10 \r
11 /* Default font. */\r
12 body {\r
13   font-family: Georgia,serif;\r
14 }\r
15 \r
16 /* Title font. */\r
17 h1, h2, h3, h4, h5, h6,\r
18 div.title, caption.title,\r
19 thead, p.table.header,\r
20 #toctitle,\r
21 #author, #revnumber, #revdate, #revremark,\r
22 #footer {\r
23   font-family: Arial,Helvetica,sans-serif;\r
24 }\r
25 \r
26 body {\r
27   margin: 1em 5% 1em 5%;\r
28 }\r
29 \r
30 a {\r
31   color: blue;\r
32   text-decoration: underline;\r
33 }\r
34 a:visited {\r
35   color: fuchsia;\r
36 }\r
37 \r
38 em {\r
39   font-style: italic;\r
40   color: navy;\r
41 }\r
42 \r
43 strong {\r
44   font-weight: bold;\r
45   color: #083194;\r
46 }\r
47 \r
48 h1, h2, h3, h4, h5, h6 {\r
49   color: #527bbd;\r
50   margin-top: 1.2em;\r
51   margin-bottom: 0.5em;\r
52   line-height: 1.3;\r
53 }\r
54 \r
55 h1, h2, h3 {\r
56   border-bottom: 2px solid silver;\r
57 }\r
58 h2 {\r
59   padding-top: 0.5em;\r
60 }\r
61 h3 {\r
62   float: left;\r
63 }\r
64 h3 + * {\r
65   clear: left;\r
66 }\r
67 h5 {\r
68   font-size: 1.0em;\r
69 }\r
70 \r
71 div.sectionbody {\r
72   margin-left: 0;\r
73 }\r
74 \r
75 hr {\r
76   border: 1px solid silver;\r
77 }\r
78 \r
79 p {\r
80   margin-top: 0.5em;\r
81   margin-bottom: 0.5em;\r
82 }\r
83 \r
84 ul, ol, li > p {\r
85   margin-top: 0;\r
86 }\r
87 ul > li     { color: #aaa; }\r
88 ul > li > * { color: black; }\r
89 \r
90 pre {\r
91   padding: 0;\r
92   margin: 0;\r
93 }\r
94 \r
95 #author {\r
96   color: #527bbd;\r
97   font-weight: bold;\r
98   font-size: 1.1em;\r
99 }\r
100 #email {\r
101 }\r
102 #revnumber, #revdate, #revremark {\r
103 }\r
104 \r
105 #footer {\r
106   font-size: small;\r
107   border-top: 2px solid silver;\r
108   padding-top: 0.5em;\r
109   margin-top: 4.0em;\r
110 }\r
111 #footer-text {\r
112   float: left;\r
113   padding-bottom: 0.5em;\r
114 }\r
115 #footer-badges {\r
116   float: right;\r
117   padding-bottom: 0.5em;\r
118 }\r
119 \r
120 #preamble {\r
121   margin-top: 1.5em;\r
122   margin-bottom: 1.5em;\r
123 }\r
124 div.imageblock, div.exampleblock, div.verseblock,\r
125 div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,\r
126 div.admonitionblock {\r
127   margin-top: 1.0em;\r
128   margin-bottom: 1.5em;\r
129 }\r
130 div.admonitionblock {\r
131   margin-top: 2.0em;\r
132   margin-bottom: 2.0em;\r
133   margin-right: 10%;\r
134   color: #606060;\r
135 }\r
136 \r
137 div.content { /* Block element content. */\r
138   padding: 0;\r
139 }\r
140 \r
141 /* Block element titles. */\r
142 div.title, caption.title {\r
143   color: #527bbd;\r
144   font-weight: bold;\r
145   text-align: left;\r
146   margin-top: 1.0em;\r
147   margin-bottom: 0.5em;\r
148 }\r
149 div.title + * {\r
150   margin-top: 0;\r
151 }\r
152 \r
153 td div.title:first-child {\r
154   margin-top: 0.0em;\r
155 }\r
156 div.content div.title:first-child {\r
157   margin-top: 0.0em;\r
158 }\r
159 div.content + div.title {\r
160   margin-top: 0.0em;\r
161 }\r
162 \r
163 div.sidebarblock > div.content {\r
164   background: #ffffee;\r
165   border: 1px solid #dddddd;\r
166   border-left: 4px solid #f0f0f0;\r
167   padding: 0.5em;\r
168 }\r
169 \r
170 div.listingblock > div.content {\r
171   border: 1px solid #dddddd;\r
172   border-left: 5px solid #f0f0f0;\r
173   background: #f8f8f8;\r
174   padding: 0.5em;\r
175 }\r
176 \r
177 div.quoteblock, div.verseblock {\r
178   padding-left: 1.0em;\r
179   margin-left: 1.0em;\r
180   margin-right: 10%;\r
181   border-left: 5px solid #f0f0f0;\r
182   color: #888;\r
183 }\r
184 \r
185 div.quoteblock > div.attribution {\r
186   padding-top: 0.5em;\r
187   text-align: right;\r
188 }\r
189 \r
190 div.verseblock > pre.content {\r
191   font-family: inherit;\r
192   font-size: inherit;\r
193 }\r
194 div.verseblock > div.attribution {\r
195   padding-top: 0.75em;\r
196   text-align: left;\r
197 }\r
198 /* DEPRECATED: Pre version 8.2.7 verse style literal block. */\r
199 div.verseblock + div.attribution {\r
200   text-align: left;\r
201 }\r
202 \r
203 div.admonitionblock .icon {\r
204   vertical-align: top;\r
205   font-size: 1.1em;\r
206   font-weight: bold;\r
207   text-decoration: underline;\r
208   color: #527bbd;\r
209   padding-right: 0.5em;\r
210 }\r
211 div.admonitionblock td.content {\r
212   padding-left: 0.5em;\r
213   border-left: 3px solid #dddddd;\r
214 }\r
215 \r
216 div.exampleblock > div.content {\r
217   border-left: 3px solid #dddddd;\r
218   padding-left: 0.5em;\r
219 }\r
220 \r
221 div.imageblock div.content { padding-left: 0; }\r
222 span.image img { border-style: none; }\r
223 a.image:visited { color: white; }\r
224 \r
225 dl {\r
226   margin-top: 0.8em;\r
227   margin-bottom: 0.8em;\r
228 }\r
229 dt {\r
230   margin-top: 0.5em;\r
231   margin-bottom: 0;\r
232   font-style: normal;\r
233   color: navy;\r
234 }\r
235 dd > *:first-child {\r
236   margin-top: 0.1em;\r
237 }\r
238 \r
239 ul, ol {\r
240     list-style-position: outside;\r
241 }\r
242 ol.arabic {\r
243   list-style-type: decimal;\r
244 }\r
245 ol.loweralpha {\r
246   list-style-type: lower-alpha;\r
247 }\r
248 ol.upperalpha {\r
249   list-style-type: upper-alpha;\r
250 }\r
251 ol.lowerroman {\r
252   list-style-type: lower-roman;\r
253 }\r
254 ol.upperroman {\r
255   list-style-type: upper-roman;\r
256 }\r
257 \r
258 div.compact ul, div.compact ol,\r
259 div.compact p, div.compact p,\r
260 div.compact div, div.compact div {\r
261   margin-top: 0.1em;\r
262   margin-bottom: 0.1em;\r
263 }\r
264 \r
265 tfoot {\r
266   font-weight: bold;\r
267 }\r
268 td > div.verse {\r
269   white-space: pre;\r
270 }\r
271 \r
272 div.hdlist {\r
273   margin-top: 0.8em;\r
274   margin-bottom: 0.8em;\r
275 }\r
276 div.hdlist tr {\r
277   padding-bottom: 15px;\r
278 }\r
279 dt.hdlist1.strong, td.hdlist1.strong {\r
280   font-weight: bold;\r
281 }\r
282 td.hdlist1 {\r
283   vertical-align: top;\r
284   font-style: normal;\r
285   padding-right: 0.8em;\r
286   color: navy;\r
287 }\r
288 td.hdlist2 {\r
289   vertical-align: top;\r
290 }\r
291 div.hdlist.compact tr {\r
292   margin: 0;\r
293   padding-bottom: 0;\r
294 }\r
295 \r
296 .comment {\r
297   background: yellow;\r
298 }\r
299 \r
300 .footnote, .footnoteref {\r
301   font-size: 0.8em;\r
302 }\r
303 \r
304 span.footnote, span.footnoteref {\r
305   vertical-align: super;\r
306 }\r
307 \r
308 #footnotes {\r
309   margin: 20px 0 20px 0;\r
310   padding: 7px 0 0 0;\r
311 }\r
312 \r
313 #footnotes div.footnote {\r
314   margin: 0 0 5px 0;\r
315 }\r
316 \r
317 #footnotes hr {\r
318   border: none;\r
319   border-top: 1px solid silver;\r
320   height: 1px;\r
321   text-align: left;\r
322   margin-left: 0;\r
323   width: 20%;\r
324   min-width: 100px;\r
325 }\r
326 \r
327 div.colist td {\r
328   padding-right: 0.5em;\r
329   padding-bottom: 0.3em;\r
330   vertical-align: top;\r
331 }\r
332 div.colist td img {\r
333   margin-top: 0.3em;\r
334 }\r
335 \r
336 @media print {\r
337   #footer-badges { display: none; }\r
338 }\r
339 \r
340 #toc {\r
341   margin-bottom: 2.5em;\r
342 }\r
343 \r
344 #toctitle {\r
345   color: #527bbd;\r
346   font-size: 1.1em;\r
347   font-weight: bold;\r
348   margin-top: 1.0em;\r
349   margin-bottom: 0.1em;\r
350 }\r
351 \r
352 div.toclevel0, div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {\r
353   margin-top: 0;\r
354   margin-bottom: 0;\r
355 }\r
356 div.toclevel2 {\r
357   margin-left: 2em;\r
358   font-size: 0.9em;\r
359 }\r
360 div.toclevel3 {\r
361   margin-left: 4em;\r
362   font-size: 0.9em;\r
363 }\r
364 div.toclevel4 {\r
365   margin-left: 6em;\r
366   font-size: 0.9em;\r
367 }\r
368 \r
369 span.aqua { color: aqua; }\r
370 span.black { color: black; }\r
371 span.blue { color: blue; }\r
372 span.fuchsia { color: fuchsia; }\r
373 span.gray { color: gray; }\r
374 span.green { color: green; }\r
375 span.lime { color: lime; }\r
376 span.maroon { color: maroon; }\r
377 span.navy { color: navy; }\r
378 span.olive { color: olive; }\r
379 span.purple { color: purple; }\r
380 span.red { color: red; }\r
381 span.silver { color: silver; }\r
382 span.teal { color: teal; }\r
383 span.white { color: white; }\r
384 span.yellow { color: yellow; }\r
385 \r
386 span.aqua-background { background: aqua; }\r
387 span.black-background { background: black; }\r
388 span.blue-background { background: blue; }\r
389 span.fuchsia-background { background: fuchsia; }\r
390 span.gray-background { background: gray; }\r
391 span.green-background { background: green; }\r
392 span.lime-background { background: lime; }\r
393 span.maroon-background { background: maroon; }\r
394 span.navy-background { background: navy; }\r
395 span.olive-background { background: olive; }\r
396 span.purple-background { background: purple; }\r
397 span.red-background { background: red; }\r
398 span.silver-background { background: silver; }\r
399 span.teal-background { background: teal; }\r
400 span.white-background { background: white; }\r
401 span.yellow-background { background: yellow; }\r
402 \r
403 span.big { font-size: 2em; }\r
404 span.small { font-size: 0.6em; }\r
405 \r
406 span.underline { text-decoration: underline; }\r
407 span.overline { text-decoration: overline; }\r
408 span.line-through { text-decoration: line-through; }\r
409 \r
410 div.unbreakable { page-break-inside: avoid; }\r
411 \r
412 \r
413 /*\r
414  * xhtml11 specific\r
415  *\r
416  * */\r
417 \r
418 tt {\r
419   font-family: "Courier New", Courier, monospace;\r
420   font-size: inherit;\r
421   color: navy;\r
422 }\r
423 \r
424 div.tableblock {\r
425   margin-top: 1.0em;\r
426   margin-bottom: 1.5em;\r
427 }\r
428 div.tableblock > table {\r
429   border: 3px solid #527bbd;\r
430 }\r
431 thead, p.table.header {\r
432   font-weight: bold;\r
433   color: #527bbd;\r
434 }\r
435 p.table {\r
436   margin-top: 0;\r
437 }\r
438 /* Because the table frame attribute is overriden by CSS in most browsers. */\r
439 div.tableblock > table[frame="void"] {\r
440   border-style: none;\r
441 }\r
442 div.tableblock > table[frame="hsides"] {\r
443   border-left-style: none;\r
444   border-right-style: none;\r
445 }\r
446 div.tableblock > table[frame="vsides"] {\r
447   border-top-style: none;\r
448   border-bottom-style: none;\r
449 }\r
450 \r
451 \r
452 /*\r
453  * html5 specific\r
454  *\r
455  * */\r
456 \r
457 .monospaced {\r
458   font-family: "Courier New", Courier, monospace;\r
459   font-size: inherit;\r
460   color: navy;\r
461 }\r
462 \r
463 table.tableblock {\r
464   margin-top: 1.0em;\r
465   margin-bottom: 1.5em;\r
466 }\r
467 thead, p.tableblock.header {\r
468   font-weight: bold;\r
469   color: #527bbd;\r
470 }\r
471 p.tableblock {\r
472   margin-top: 0;\r
473 }\r
474 table.tableblock {\r
475   border-width: 3px;\r
476   border-spacing: 0px;\r
477   border-style: solid;\r
478   border-color: #527bbd;\r
479   border-collapse: collapse;\r
480 }\r
481 th.tableblock, td.tableblock {\r
482   border-width: 1px;\r
483   padding: 4px;\r
484   border-style: solid;\r
485   border-color: #527bbd;\r
486 }\r
487 \r
488 table.tableblock.frame-topbot {\r
489   border-left-style: hidden;\r
490   border-right-style: hidden;\r
491 }\r
492 table.tableblock.frame-sides {\r
493   border-top-style: hidden;\r
494   border-bottom-style: hidden;\r
495 }\r
496 table.tableblock.frame-none {\r
497   border-style: hidden;\r
498 }\r
499 \r
500 th.tableblock.halign-left, td.tableblock.halign-left {\r
501   text-align: left;\r
502 }\r
503 th.tableblock.halign-center, td.tableblock.halign-center {\r
504   text-align: center;\r
505 }\r
506 th.tableblock.halign-right, td.tableblock.halign-right {\r
507   text-align: right;\r
508 }\r
509 \r
510 th.tableblock.valign-top, td.tableblock.valign-top {\r
511   vertical-align: top;\r
512 }\r
513 th.tableblock.valign-middle, td.tableblock.valign-middle {\r
514   vertical-align: middle;\r
515 }\r
516 th.tableblock.valign-bottom, td.tableblock.valign-bottom {\r
517   vertical-align: bottom;\r
518 }\r
519 \r
520 \r
521 /*\r
522  * manpage specific\r
523  *\r
524  * */\r
525 \r
526 body.manpage h1 {\r
527   padding-top: 0.5em;\r
528   padding-bottom: 0.5em;\r
529   border-top: 2px solid silver;\r
530   border-bottom: 2px solid silver;\r
531 }\r
532 body.manpage h2 {\r
533   border-style: none;\r
534 }\r
535 body.manpage div.sectionbody {\r
536   margin-left: 3em;\r
537 }\r
538 \r
539 @media print {\r
540   body.manpage div#toc { display: none; }\r
541 }\r
542 </style>\r
543 <script type="text/javascript">\r
544 /*<![CDATA[*/\r
545 var asciidoc = {  // Namespace.\r
546 \r
547 /////////////////////////////////////////////////////////////////////\r
548 // Table Of Contents generator\r
549 /////////////////////////////////////////////////////////////////////\r
550 \r
551 /* Author: Mihai Bazon, September 2002\r
552  * http://students.infoiasi.ro/~mishoo\r
553  *\r
554  * Table Of Content generator\r
555  * Version: 0.4\r
556  *\r
557  * Feel free to use this script under the terms of the GNU General Public\r
558  * License, as long as you do not remove or alter this notice.\r
559  */\r
560 \r
561  /* modified by Troy D. Hanson, September 2006. License: GPL */\r
562  /* modified by Stuart Rackham, 2006, 2009. License: GPL */\r
563 \r
564 // toclevels = 1..4.\r
565 toc: function (toclevels) {\r
566 \r
567   function getText(el) {\r
568     var text = "";\r
569     for (var i = el.firstChild; i != null; i = i.nextSibling) {\r
570       if (i.nodeType == 3 /* Node.TEXT_NODE */) // IE doesn't speak constants.\r
571         text += i.data;\r
572       else if (i.firstChild != null)\r
573         text += getText(i);\r
574     }\r
575     return text;\r
576   }\r
577 \r
578   function TocEntry(el, text, toclevel) {\r
579     this.element = el;\r
580     this.text = text;\r
581     this.toclevel = toclevel;\r
582   }\r
583 \r
584   function tocEntries(el, toclevels) {\r
585     var result = new Array;\r
586     var re = new RegExp('[hH]([1-'+(toclevels+1)+'])');\r
587     // Function that scans the DOM tree for header elements (the DOM2\r
588     // nodeIterator API would be a better technique but not supported by all\r
589     // browsers).\r
590     var iterate = function (el) {\r
591       for (var i = el.firstChild; i != null; i = i.nextSibling) {\r
592         if (i.nodeType == 1 /* Node.ELEMENT_NODE */) {\r
593           var mo = re.exec(i.tagName);\r
594           if (mo && (i.getAttribute("class") || i.getAttribute("className")) != "float") {\r
595             result[result.length] = new TocEntry(i, getText(i), mo[1]-1);\r
596           }\r
597           iterate(i);\r
598         }\r
599       }\r
600     }\r
601     iterate(el);\r
602     return result;\r
603   }\r
604 \r
605   var toc = document.getElementById("toc");\r
606   if (!toc) {\r
607     return;\r
608   }\r
609 \r
610   // Delete existing TOC entries in case we're reloading the TOC.\r
611   var tocEntriesToRemove = [];\r
612   var i;\r
613   for (i = 0; i < toc.childNodes.length; i++) {\r
614     var entry = toc.childNodes[i];\r
615     if (entry.nodeName.toLowerCase() == 'div'\r
616      && entry.getAttribute("class")\r
617      && entry.getAttribute("class").match(/^toclevel/))\r
618       tocEntriesToRemove.push(entry);\r
619   }\r
620   for (i = 0; i < tocEntriesToRemove.length; i++) {\r
621     toc.removeChild(tocEntriesToRemove[i]);\r
622   }\r
623 \r
624   // Rebuild TOC entries.\r
625   var entries = tocEntries(document.getElementById("content"), toclevels);\r
626   for (var i = 0; i < entries.length; ++i) {\r
627     var entry = entries[i];\r
628     if (entry.element.id == "")\r
629       entry.element.id = "_toc_" + i;\r
630     var a = document.createElement("a");\r
631     a.href = "#" + entry.element.id;\r
632     a.appendChild(document.createTextNode(entry.text));\r
633     var div = document.createElement("div");\r
634     div.appendChild(a);\r
635     div.className = "toclevel" + entry.toclevel;\r
636     toc.appendChild(div);\r
637   }\r
638   if (entries.length == 0)\r
639     toc.parentNode.removeChild(toc);\r
640 },\r
641 \r
642 \r
643 /////////////////////////////////////////////////////////////////////\r
644 // Footnotes generator\r
645 /////////////////////////////////////////////////////////////////////\r
646 \r
647 /* Based on footnote generation code from:\r
648  * http://www.brandspankingnew.net/archive/2005/07/format_footnote.html\r
649  */\r
650 \r
651 footnotes: function () {\r
652   // Delete existing footnote entries in case we're reloading the footnodes.\r
653   var i;\r
654   var noteholder = document.getElementById("footnotes");\r
655   if (!noteholder) {\r
656     return;\r
657   }\r
658   var entriesToRemove = [];\r
659   for (i = 0; i < noteholder.childNodes.length; i++) {\r
660     var entry = noteholder.childNodes[i];\r
661     if (entry.nodeName.toLowerCase() == 'div' && entry.getAttribute("class") == "footnote")\r
662       entriesToRemove.push(entry);\r
663   }\r
664   for (i = 0; i < entriesToRemove.length; i++) {\r
665     noteholder.removeChild(entriesToRemove[i]);\r
666   }\r
667 \r
668   // Rebuild footnote entries.\r
669   var cont = document.getElementById("content");\r
670   var spans = cont.getElementsByTagName("span");\r
671   var refs = {};\r
672   var n = 0;\r
673   for (i=0; i<spans.length; i++) {\r
674     if (spans[i].className == "footnote") {\r
675       n++;\r
676       var note = spans[i].getAttribute("data-note");\r
677       if (!note) {\r
678         // Use [\s\S] in place of . so multi-line matches work.\r
679         // Because JavaScript has no s (dotall) regex flag.\r
680         note = spans[i].innerHTML.match(/\s*\[([\s\S]*)]\s*/)[1];\r
681         spans[i].innerHTML =\r
682           "[<a id='_footnoteref_" + n + "' href='#_footnote_" + n +\r
683           "' title='View footnote' class='footnote'>" + n + "</a>]";\r
684         spans[i].setAttribute("data-note", note);\r
685       }\r
686       noteholder.innerHTML +=\r
687         "<div class='footnote' id='_footnote_" + n + "'>" +\r
688         "<a href='#_footnoteref_" + n + "' title='Return to text'>" +\r
689         n + "</a>. " + note + "</div>";\r
690       var id =spans[i].getAttribute("id");\r
691       if (id != null) refs["#"+id] = n;\r
692     }\r
693   }\r
694   if (n == 0)\r
695     noteholder.parentNode.removeChild(noteholder);\r
696   else {\r
697     // Process footnoterefs.\r
698     for (i=0; i<spans.length; i++) {\r
699       if (spans[i].className == "footnoteref") {\r
700         var href = spans[i].getElementsByTagName("a")[0].getAttribute("href");\r
701         href = href.match(/#.*/)[0];  // Because IE return full URL.\r
702         n = refs[href];\r
703         spans[i].innerHTML =\r
704           "[<a href='#_footnote_" + n +\r
705           "' title='View footnote' class='footnote'>" + n + "</a>]";\r
706       }\r
707     }\r
708   }\r
709 },\r
710 \r
711 install: function(toclevels) {\r
712   var timerId;\r
713 \r
714   function reinstall() {\r
715     asciidoc.footnotes();\r
716     if (toclevels) {\r
717       asciidoc.toc(toclevels);\r
718     }\r
719   }\r
720 \r
721   function reinstallAndRemoveTimer() {\r
722     clearInterval(timerId);\r
723     reinstall();\r
724   }\r
725 \r
726   timerId = setInterval(reinstall, 500);\r
727   if (document.addEventListener)\r
728     document.addEventListener("DOMContentLoaded", reinstallAndRemoveTimer, false);\r
729   else\r
730     window.onload = reinstallAndRemoveTimer;\r
731 }\r
732 \r
733 }\r
734 asciidoc.install(2);\r
735 /*]]>*/\r
736 </script>\r
737 </head>\r
738 <body class="article">\r
739 <div id="header">\r
740 <h1>grml2usb(8)</h1>\r
741 <div id="toc">
742   <div id="toctitle">Table of Contents</div>
743   <noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
744 </div>\r
745 </div>\r
746 <div id="content">\r
747 <div class="sect1">\r
748 <h2 id="_name">1. Name</h2>\r
749 <div class="sectionbody">\r
750 <div class="paragraph"><p>grml2usb - install grml ISO(s) on usb device for booting</p></div>\r
751 </div>\r
752 </div>\r
753 <div class="sect1">\r
754 <h2 id="_synopsis">2. Synopsis</h2>\r
755 <div class="sectionbody">\r
756 <div class="paragraph"><p>grml2usb [ options ] &lt;ISO[s]&gt; &lt;device&gt;</p></div>\r
757 <div class="sidebarblock">\r
758 <div class="content">\r
759 <div class="paragraph"><p>Important! The grml team does not take responsibility for loss of any data!</p></div>\r
760 </div></div>\r
761 </div>\r
762 </div>\r
763 <div class="sect1">\r
764 <h2 id="introduction">3. Introduction</h2>\r
765 <div class="sectionbody">\r
766 <div class="paragraph"><p>grml2usb installs grml on a given partition of your usb device and makes it\r
767 bootable. It provides multi-iso support, meaning you can specify several grml\r
768 ISOs on the command line at once and select the grml flavour you would like to\r
769 boot on the bootprompt then. Note that the <strong>first</strong> ISO specified on the grml2usb\r
770 command line will become the default one (that&#8217;s the one that will boot when\r
771 just pressing enter on the bootprompt or wait until the boot timeout matches).</p></div>\r
772 <div class="admonitionblock">\r
773 <table><tr>\r
774 <td class="icon">\r
775 <img src="./images/icons/important.png" alt="Important" />\r
776 </td>\r
777 <td class="content">By default a compatible master boot record (MBR) is installed on the device\r
778 (being for example /dev/sdX when executing <em>grml2usb grml.iso /dev/sdX1</em>) and\r
779 syslinux is being used as default bootloader. Avoid installation of the default\r
780 MBR using the <em>--skip-mbr</em> option or if you encounter any problems with the\r
781 default MBR consider using <em>--syslinux-mbr</em> instead.</td>\r
782 </tr></table>\r
783 </div>\r
784 </div>\r
785 </div>\r
786 <div class="sect1">\r
787 <h2 id="options">4. Options</h2>\r
788 <div class="sectionbody">\r
789 <div class="paragraph"><p>The ISO[s] should be the path to one or multiple grml-ISOs and/or the path to\r
790 the currently running live-system (being /lib/live/mount/medium).</p></div>\r
791 <div class="paragraph"><p>The device either might be a device name like /dev/sdX1 or a directory. When\r
792 specifying a device name the device is mounted automatically. When specifying a\r
793 directory grml2usb is assuming that you did set up a bootloader on your own (or\r
794 don&#8217;t need one) and a bootloader won&#8217;t be installed automatically.</p></div>\r
795 <div class="paragraph"><p>The following options are supported:</p></div>\r
796 <div class="dlist"><dl>\r
797 <dt class="hdlist1">\r
798 <strong>--bootoptions=&#8230;</strong>\r
799 </dt>\r
800 <dd>\r
801 <p>\r
802 Use specified bootoptions as default. To use flavour name as a argument for a\r
803 boot parameter use %flavour which will be expanded to the flavour name. To add\r
804 multiple bootoptions you can specify the option multiple time.\r
805 </p>\r
806 </dd>\r
807 <dt class="hdlist1">\r
808 <strong>--bootloader-only</strong>\r
809 </dt>\r
810 <dd>\r
811 <p>\r
812 Do <strong>not</strong> copy files but instead just install a bootloader.  Note that the boot\r
813 addons are copied to /boot/addons at this stage as well.  If you want to skip\r
814 copying the boot addons consider using the --skip-addons option.\r
815 </p>\r
816 </dd>\r
817 <dt class="hdlist1">\r
818 <strong>--copy-only</strong>\r
819 </dt>\r
820 <dd>\r
821 <p>\r
822 Copy files only but do <strong>not</strong> install a bootloader.\r
823 </p>\r
824 </dd>\r
825 <dt class="hdlist1">\r
826 <strong>--dry-run</strong>\r
827 </dt>\r
828 <dd>\r
829 <p>\r
830 Avoid executing commands, instead show what would be executed.\r
831 Warning: please notice that the ISO has to be mounted anyway, otherwise\r
832 identifying the grml flavour would not be possible.\r
833 </p>\r
834 </dd>\r
835 <dt class="hdlist1">\r
836 <strong>--fat16</strong>\r
837 </dt>\r
838 <dd>\r
839 <p>\r
840 Format specified partition with FAT16.\r
841 <strong>Important:</strong> this will destroy any existing data on the specified partition!\r
842 </p>\r
843 </dd>\r
844 <dt class="hdlist1">\r
845 <strong>--force</strong>\r
846 </dt>\r
847 <dd>\r
848 <p>\r
849 Force any (possible dangerous) actions requiring manual interaction (like --fat16).\r
850 </p>\r
851 </dd>\r
852 <dt class="hdlist1">\r
853 <strong>--grub</strong>\r
854 </dt>\r
855 <dd>\r
856 <p>\r
857 Install grub bootloader instead of (default) syslinux.\r
858 </p>\r
859 </dd>\r
860 <dt class="hdlist1">\r
861 <strong>--grub-mbr</strong>\r
862 </dt>\r
863 <dd>\r
864 <p>\r
865 Install grub into MBR (Master Boot Record) instead of PBR (Partition Boot\r
866 Record). Check out <a href="#mbr-vs-pbr">the <em>mbr-vs-pbr</em> section in the FAQ of this document</a> for further details.\r
867 </p>\r
868 </dd>\r
869 <dt class="hdlist1">\r
870 <strong>--help</strong>\r
871 </dt>\r
872 <dd>\r
873 <p>\r
874 Display usage information and exit.\r
875 </p>\r
876 </dd>\r
877 </dl></div>\r
878 <div class="dlist"><dl>\r
879 <dt class="hdlist1">\r
880 <strong>--mbr-menu</strong>\r
881 </dt>\r
882 <dd>\r
883 <p>\r
884 Install master boot record (MBR) with integrated boot menu: interactively choose\r
885 the partition to boot from, with a timeout to load the default partition, or\r
886 boot from floppy. When NOT using the --mbr-menu option a MBR with LBA and large\r
887 disc support but without an integrated boot menu is installed (so it&#8217;s not\r
888 visible at all but instead directly jumps to the bootloader - being grub or\r
889 syslinux). Note: This options is available only when using the default MBR and\r
890 won&#8217;t have any effect if you&#8217;re using the <em>--syslinux-mbr</em> option.\r
891 </p>\r
892 </dd>\r
893 <dt class="hdlist1">\r
894 <strong>--quiet</strong>\r
895 </dt>\r
896 <dd>\r
897 <p>\r
898 Do not output anything but just errors on console.\r
899 </p>\r
900 </dd>\r
901 <dt class="hdlist1">\r
902 <strong>--skip-addons</strong>\r
903 </dt>\r
904 <dd>\r
905 <p>\r
906 Do not install /boot/addons/ files (like dos, grub, memdisk,&#8230;).\r
907 </p>\r
908 </dd>\r
909 <dt class="hdlist1">\r
910 <strong>--remove-bootoption=&#8230;</strong>\r
911 </dt>\r
912 <dd>\r
913 <p>\r
914 Remove specified bootoption (could be a regex) from existing boot options. Use\r
915 multiple entries for removing different bootoptions at once.\r
916 </p>\r
917 </dd>\r
918 <dt class="hdlist1">\r
919 <strong>--skip-grub-config</strong>\r
920 </dt>\r
921 <dd>\r
922 <p>\r
923 Skip generation of grub configuration files. By default the configuration\r
924 files for syslinux <strong>and</strong> grub will be written so you&#8217;ve a working configuration\r
925 file no matter whether you&#8217;re using grub or syslinux as bootloader.\r
926 </p>\r
927 </dd>\r
928 <dt class="hdlist1">\r
929 <strong>--skip-mbr</strong>\r
930 </dt>\r
931 <dd>\r
932 <p>\r
933 Do not touch/install the master boot record (MBR).\r
934 </p>\r
935 </dd>\r
936 <dt class="hdlist1">\r
937 <strong>--skip-syslinux-config</strong>\r
938 </dt>\r
939 <dd>\r
940 <p>\r
941 Skip generation of syslinux configuration files. By default the configuration\r
942 files for syslinux <strong>and</strong> grub will be written so you&#8217;ve a working configuration\r
943 file no matter whether you&#8217;re using grub or syslinux as bootloader.\r
944 </p>\r
945 </dd>\r
946 <dt class="hdlist1">\r
947 <strong>--syslinux</strong>\r
948 </dt>\r
949 <dd>\r
950 <p>\r
951 This option is deprecated and is being left only for backwards compatibility\r
952 reasons. Syslinux is the default bootloader of grml2usb and therefore the\r
953 <em>--syslinux</em> option doesn&#8217;t have any effects. If you do not want to use syslinux\r
954 as bootloader consider using the <em>--grub</em> option.\r
955 </p>\r
956 </dd>\r
957 <dt class="hdlist1">\r
958 <strong>--syslinux-mbr</strong>\r
959 </dt>\r
960 <dd>\r
961 <p>\r
962 Install syslinux' master boot record (MBR, which is booting from the partition\r
963 with the "active" flag set) instead of the default one.  If you encounter any\r
964 problems with the default MBR you can try using the syslinux MBR instead. If\r
965 that works for you please <a href="#author">let us know</a> so we can adjust our default\r
966 MBR accordingly.\r
967 </p>\r
968 </dd>\r
969 </dl></div>\r
970 <div class="dlist"><dl>\r
971 <dt class="hdlist1">\r
972 <strong>-v</strong>, <strong>--version</strong>\r
973 </dt>\r
974 <dd>\r
975 <p>\r
976 Return version and exit.\r
977 </p>\r
978 </dd>\r
979 <dt class="hdlist1">\r
980 <strong>--verbose</strong>\r
981 </dt>\r
982 <dd>\r
983 <p>\r
984 Enable verbose mode.\r
985 </p>\r
986 </dd>\r
987 </dl></div>\r
988 </div>\r
989 </div>\r
990 <div class="sect1">\r
991 <h2 id="_developers_corner">5. Developers Corner</h2>\r
992 <div class="sectionbody">\r
993 <div class="sect2">\r
994 <h3 id="directory-layout">5.1. Directory layout on usb device</h3>\r
995 <div class="literalblock">\r
996 <div class="content">\r
997 <pre><tt>boot/ -&gt;\r
998   |-- addons/\r
999   |   |-- allinone.img     [grub - all in one image]\r
1000   |   |-- bsd4grml/        [MirBSD]\r
1001   |   |-- balder10.imz     [FreeDOS]\r
1002   |   |-- memdisk          [chainloading helper]\r
1003   |   |-- memtest          [memtest86+]\r
1004   |-- release/\r
1005   |   |-- grml/\r
1006   |   |   |-- linux26      [Kernel]\r
1007   |   |   |-- initrd.gz    [initramfs]\r
1008   |   |-- grml64\r
1009   |   |   |-- linux26      [Kernel]\r
1010   |   |   |-- initrd.gz    [initramfs]\r
1011   |   |-- grml-medium\r
1012   |   |   |-- linux26      [...]\r
1013   |   |   |-- initrd.gz\r
1014   |   |-- grml64-medium\r
1015   |   |   |-- linux26\r
1016   |   |   |-- initrd.gz\r
1017   |   |-- grml-small\r
1018   |   |   |-- linux26\r
1019   |   |   |-- initrd.gz\r
1020   |   `-- grml64-small\r
1021   |       |-- linux26\r
1022   |       |-- initrd.gz\r
1023   |-- grub/\r
1024   |   |-- grml.png         [graphical bootsplash background image for grub2]\r
1025   |   |-- grub.cfg         [configuration file for grub2]\r
1026   |   |-- menu.lst         [configuration file for grub1]\r
1027   |   |-- splash.xpm.gz    [splash screen for grub1]\r
1028   `-- syslinux/\r
1029       |-- grml.png         [graphical bootsplash background image for syslinux]\r
1030       |-- syslinux.cfg     [main configuration file for syslinux]\r
1031       `-- [....]           [several further config files for syslinux]</tt></pre>\r
1032 </div></div>\r
1033 <div class="literalblock">\r
1034 <div class="content">\r
1035 <pre><tt>grml/\r
1036   |-- grml2usb.txt         [not yet implemented]\r
1037   |-- grml-cheatcodes.txt  [list of bootoptions for grml]\r
1038   |-- grml-version.txt     [file containing information about grml-version]\r
1039   |-- LICENSE.txt          [license information]\r
1040   |-- md5sums              [md5sums of original ISO]\r
1041   |-- README.txt           [informational text]\r
1042   `-- web/                 [browser related files]\r
1043       |-- index.html\r
1044       |-- style.css\r
1045       `-- images/\r
1046           |-- button.png\r
1047           |-- favicon.png\r
1048           |-- linux.jpg\r
1049           `-- logo.png</tt></pre>\r
1050 </div></div>\r
1051 <div class="literalblock">\r
1052 <div class="content">\r
1053 <pre><tt>live/\r
1054   |-- grml/\r
1055   |   |-- filesystem.module    [module specifying which squashfs should be used for grml]\r
1056   |   `-- grml.squashfs        [squashfs file for grml]\r
1057   |-- grml-medium/\r
1058   |   |-- filesystem.module    [module specifying which squashfs should be used for grml-medium]\r
1059   |   `-- grml-medium.squashfs [squashfs file for grml-medium]\r
1060   |-- grml-small/\r
1061   |   |-- filesystem.module    [module specifying which squashfs should be used for grml-medium]\r
1062   |   `-- grml-small.squashfs  [squashfs file for grml-small]\r
1063   `-- ...</tt></pre>\r
1064 </div></div>\r
1065 </div>\r
1066 <div class="sect2">\r
1067 <h3 id="source">5.2. Grabbing the source</h3>\r
1068 <div class="literalblock">\r
1069 <div class="content">\r
1070 <pre><tt>% git clone git://git.grml.org/grml2usb.git</tt></pre>\r
1071 </div></div>\r
1072 </div>\r
1073 <div class="sect2">\r
1074 <h3 id="debugging">5.3. Developers Debugging Hints</h3>\r
1075 <div class="paragraph"><p>To play with grml2usb you can avoid using a real device via a loopback file\r
1076 setup, like:</p></div>\r
1077 <div class="literalblock">\r
1078 <div class="content">\r
1079 <pre><tt># dd if=/dev/zero of=~/loopback bs=1M count=100 # adjust size to your needs\r
1080 # losetup /dev/loop1 ~/loopback</tt></pre>\r
1081 </div></div>\r
1082 <div class="paragraph"><p>Then create according partitions either running for example:</p></div>\r
1083 <div class="literalblock">\r
1084 <div class="content">\r
1085 <pre><tt># echo -en "n\np\n1\n\n\nt\n6\na\n1\n w\n" | fdisk /dev/loop1</tt></pre>\r
1086 </div></div>\r
1087 <div class="paragraph"><p>or:</p></div>\r
1088 <div class="literalblock">\r
1089 <div class="content">\r
1090 <pre><tt># parted /dev/loop1 -s "mkpart primary fat16 0 -1s mkfs 1 fat16"</tt></pre>\r
1091 </div></div>\r
1092 <div class="paragraph"><p>Finally create a filesystem and execute grml2usb as needed:</p></div>\r
1093 <div class="literalblock">\r
1094 <div class="content">\r
1095 <pre><tt># mkfs.vfat /dev/loop1\r
1096 # grml2usb --bootloader-only /grml/isos/grml-small_2013.01.iso /dev/loop1</tt></pre>\r
1097 </div></div>\r
1098 </div>\r
1099 <div class="sect2">\r
1100 <h3 id="performance-tracing">5.4. Performance tracing</h3>\r
1101 <div class="literalblock">\r
1102 <div class="content">\r
1103 <pre><tt># blktrace -d /dev/sdX -o - | blkparse -i -\r
1104 # grml2usb grml_2013.01.iso /dev/sdX1</tt></pre>\r
1105 </div></div>\r
1106 </div>\r
1107 </div>\r
1108 </div>\r
1109 <div class="sect1">\r
1110 <h2 id="troubleshooting">6. Troubleshooting and Pitfalls when booting</h2>\r
1111 <div class="sectionbody">\r
1112 <div class="paragraph"><p>Here is a list of common error messages from BIOS/bootloader when trying to boot\r
1113 from USB.</p></div>\r
1114 <div class="hdlist"><table>\r
1115 <tr>\r
1116 <td class="hdlist1">\r
1117 <strong>Error message</strong>\r
1118 <br />\r
1119 </td>\r
1120 <td class="hdlist2">\r
1121 <p style="margin-top: 0;">\r
1122 ran out of input data. System halted\r
1123 </p>\r
1124 </td>\r
1125 </tr>\r
1126 <tr>\r
1127 <td class="hdlist1">\r
1128 <strong>Reason</strong>\r
1129 <br />\r
1130 </td>\r
1131 <td class="hdlist2">\r
1132 <p style="margin-top: 0;">\r
1133 Everything OK, except for the filesystem used on your usb device. So\r
1134 instead of fat16 you are using for example fat32. Fix: use the appropriate\r
1135 filesystem (fat16 for usb pens usually). The Bootsplash might be displayed, the\r
1136 kernel loads but you very soon get the error message.\r
1137 </p>\r
1138 </td>\r
1139 </tr>\r
1140 <tr>\r
1141 <td class="hdlist1">\r
1142 <strong>Error message</strong>\r
1143 <br />\r
1144 </td>\r
1145 <td class="hdlist2">\r
1146 <p style="margin-top: 0;">\r
1147 Invalid operating system\r
1148 </p>\r
1149 </td>\r
1150 </tr>\r
1151 <tr>\r
1152 <td class="hdlist1">\r
1153 <strong>Reason</strong>\r
1154 <br />\r
1155 </td>\r
1156 <td class="hdlist2">\r
1157 <p style="margin-top: 0;">\r
1158 the partition layout is not ok. Very probably there&#8217;s no primary\r
1159   partition (/dev/sdX{1..4}) or none has the flag <em>bootable</em> set.\r
1160 </p>\r
1161 </td>\r
1162 </tr>\r
1163 <tr>\r
1164 <td class="hdlist1">\r
1165 <strong>Error message</strong>\r
1166 <br />\r
1167 </td>\r
1168 <td class="hdlist2">\r
1169 <p style="margin-top: 0;">\r
1170 Boot error.\r
1171 </p>\r
1172 </td>\r
1173 </tr>\r
1174 <tr>\r
1175 <td class="hdlist1">\r
1176 <strong>Reason</strong>\r
1177 <br />\r
1178 </td>\r
1179 <td class="hdlist2">\r
1180 <p style="margin-top: 0;">\r
1181 Some BIOSses offer different modes for USB booting. The proper mode\r
1182 to boot a USB stick is USB-HDD. If that doesn’t work or is not supported by your\r
1183 system, you need to format your USB-Stick as USB-ZIP.  To do this, syslinux\r
1184 contains an utility called mkdiskimage, which you can use to re-format your USB\r
1185 stick in USB-ZIP format running <em>mkdiskimage -4 /dev/sdX 1 64 32</em>. Please be\r
1186 aware that this procedure will erase all data on your stick.  After executing\r
1187 mkdiskimage just continue installing as usual (grml2usb &#8230;  /dev/sdX4). Note\r
1188 that this is not going to work for any device larger than 8 GB, since\r
1189 mkdiskimage only supports 1024c 256h 63s. For a more detailed explanation, refer\r
1190 to /usr/share/doc/syslinux-common/usbkey.txt.\r
1191 </p>\r
1192 </td>\r
1193 </tr>\r
1194 <tr>\r
1195 <td class="hdlist1">\r
1196 <strong>Error message</strong>\r
1197 <br />\r
1198 </td>\r
1199 <td class="hdlist2">\r
1200 <p style="margin-top: 0;">\r
1201 No operating system found.\r
1202 </p>\r
1203 </td>\r
1204 </tr>\r
1205 <tr>\r
1206 <td class="hdlist1">\r
1207 <strong>Reason</strong>\r
1208 <br />\r
1209 </td>\r
1210 <td class="hdlist2">\r
1211 <p style="margin-top: 0;">\r
1212 you forgot to set the boot-flag on the partition. Or there really isn&#8217;t\r
1213 any operating system at all. :)\r
1214 </p>\r
1215 </td>\r
1216 </tr>\r
1217 <tr>\r
1218 <td class="hdlist1">\r
1219 <strong>Error message</strong>\r
1220 <br />\r
1221 </td>\r
1222 <td class="hdlist2">\r
1223 <p style="margin-top: 0;">\r
1224 kernel-panic: unable to mount root-fs&#8230;\r
1225 </p>\r
1226 </td>\r
1227 </tr>\r
1228 <tr>\r
1229 <td class="hdlist1">\r
1230 <strong>Reason</strong>\r
1231 <br />\r
1232 </td>\r
1233 <td class="hdlist2">\r
1234 <p style="margin-top: 0;">\r
1235 Kernel boots but fails to find the root filesystem. The root=\r
1236 argument in your kernel commandline is pointing to the wrong device. Adjust\r
1237 root=&#8230;, consider using root=UUID=&#8230;.\r
1238 </p>\r
1239 </td>\r
1240 </tr>\r
1241 <tr>\r
1242 <td class="hdlist1">\r
1243 <strong>Error message</strong>\r
1244 <br />\r
1245 </td>\r
1246 <td class="hdlist2">\r
1247 <p style="margin-top: 0;">\r
1248 Could not find kernel image: &#8230;\r
1249 </p>\r
1250 </td>\r
1251 </tr>\r
1252 <tr>\r
1253 <td class="hdlist1">\r
1254 <strong>Reason</strong>\r
1255 <br />\r
1256 </td>\r
1257 <td class="hdlist2">\r
1258 <p style="margin-top: 0;">\r
1259 either a broken isolinux/syslinux version or a broken BIOS. Check out\r
1260 whether the vendor provides a BIOS update or if using bootloader grub instead of\r
1261 isolinux/syslinux fixes the problem.\r
1262 </p>\r
1263 </td>\r
1264 </tr>\r
1265 </table></div>\r
1266 </div>\r
1267 </div>\r
1268 <div class="sect1">\r
1269 <h2 id="faq">7. Frequently Asked Questions (FAQ)</h2>\r
1270 <div class="sectionbody">\r
1271 <div class="sect2">\r
1272 <h3 id="download">7.1. Where can I get grml2usb?</h3>\r
1273 <div class="paragraph"><p>grml2usb is available as Debian package via <a href="http://deb.grml.org/">the\r
1274 grml-testing Debian repository</a>.</p></div>\r
1275 <div class="paragraph"><p>If you do not want to (or can&#8217;t) use the grml2usb Debian package you can either\r
1276 use the grml2usb git tree running:</p></div>\r
1277 <div class="literalblock">\r
1278 <div class="content">\r
1279 <pre><tt>git clone git://git.grml.org/grml2usb.git\r
1280 cd grml2usb\r
1281 make -C mbr\r
1282 sudo ./grml2usb ...</tt></pre>\r
1283 </div></div>\r
1284 <div class="paragraph"><p>or download the provided\r
1285 <a href="http://grml.org/grml2usb/grml2usb.tgz">http://grml.org/grml2usb/grml2usb.tgz</a>\r
1286 (<a href="http://grml.org/grml2usb/grml2usb.tgz.md5.asc">gpg signed md5 hash</a>).\r
1287 Download and extract the tarball and execute the provided script <em>install.sh</em>.</p></div>\r
1288 <div class="admonitionblock">\r
1289 <table><tr>\r
1290 <td class="icon">\r
1291 <img src="./images/icons/note.png" alt="Note" />\r
1292 </td>\r
1293 <td class="content">It is <strong>NOT</strong> enough to have just the grml2usb script itself without the according\r
1294 files provided either via the Debian package, the git tree or the file\r
1295 grml2usb.tgz.</td>\r
1296 </tr></table>\r
1297 </div>\r
1298 </div>\r
1299 <div class="sect2">\r
1300 <h3 id="dd">7.2. Why can&#8217;t I just dd the ISO to a USB device?</h3>\r
1301 <div class="paragraph"><p>Well, you can. :) Starting with grml 2009.10 the ISOs are dd-able straight out-of-the-box.</p></div>\r
1302 <div class="admonitionblock">\r
1303 <table><tr>\r
1304 <td class="icon">\r
1305 <img src="./images/icons/important.png" alt="Important" />\r
1306 </td>\r
1307 <td class="content">Note that ANY existing data on your USB device will be destroyed when\r
1308 using the dd approach.</td>\r
1309 </tr></table>\r
1310 </div>\r
1311 <div class="paragraph"><p>This allows you to dd the Grml ISO to your USB device (use for example\r
1312 <a href="http://www.chrysocome.net/rawwrite">rawwrite</a> if you&#8217;ve just a Windows\r
1313 system available) running:</p></div>\r
1314 <div class="literalblock">\r
1315 <div class="content">\r
1316 <pre><tt>% dd if=grml_2013.01.iso of=/dev/sdX</tt></pre>\r
1317 </div></div>\r
1318 <div class="paragraph"><p>where /dev/sdX is your USB device. Of course this doesn&#8217;t provide such a\r
1319 flexible system like with grml2usb (no multi-ISO setup, no additional default\r
1320 bootoptions,&#8230;) but it&#8217;s a nice way to get a working USB boot setup if you\r
1321 don&#8217;t have grml2usb available.</p></div>\r
1322 </div>\r
1323 <div class="sect2">\r
1324 <h3 id="grml2usb-vs-dd">7.3. What&#8217;s the difference between grml2usb and just using dd?</h3>\r
1325 <div class="paragraph"><p>grml2usb does not remove any data from your USB device and does not alter the\r
1326 partition table at all. grml2usb provides multi-ISO support, support for adding\r
1327 default bootoptions and selecting the bootloader (syslinux vs. grub) without\r
1328 having to manually touch the ISO at all.</p></div>\r
1329 </div>\r
1330 <div class="sect2">\r
1331 <h3 id="grml2iso">7.4. What&#8217;s grml2iso?</h3>\r
1332 <div class="paragraph"><p>grml2iso is a script which uses grml2usb to generate a multiboot ISO out of\r
1333 several grml ISOs. See <em>man grml2iso</em> for further details.</p></div>\r
1334 </div>\r
1335 <div class="sect2">\r
1336 <h3 id="menu-lst">7.5. Why is there a menu.lst and a grub.cfg inside /boot/grub/?</h3>\r
1337 <div class="paragraph"><p>grml2usb supports grub version 1 (grub1) as well as grub version 2 (grub2).\r
1338 Whereas grub1 uses menu.lst the new version grub2 needs grub.cfg.\r
1339 Providing both files allows grml2usb to install grub on the target device\r
1340 no matter which grub version is available on the host where grml2usb is\r
1341 executed on.</p></div>\r
1342 </div>\r
1343 <div class="sect2">\r
1344 <h3 id="stage1">7.6. grub-install fails with 'The file ../boot/grub/stage1 not read correctly"?!</h3>\r
1345 <div class="paragraph"><p>Check whether the partition has the right partition type. For example do NOT use\r
1346 FAT16 (partition type 6) when using a ext3 filesystem on the partition but\r
1347 instead use the correct partition type (<em>83</em> - Linux) then.</p></div>\r
1348 </div>\r
1349 <div class="sect2">\r
1350 <h3 id="grub-install-xfs_freeze">7.7. grub-install complains about /sbin/grub-install and/or xfs_freeze?!</h3>\r
1351 <div class="paragraph"><p>The following message:</p></div>\r
1352 <div class="literalblock">\r
1353 <div class="content">\r
1354 <pre><tt>You shouldn't call /sbin/grub-install. Please call /usr/sbin/grub-install instead!\r
1355 xfs_freeze: specified file ["/tmp/tmpqaBK6z/boot/grub"] is not on an XFS filesystem</tt></pre>\r
1356 </div></div>\r
1357 <div class="paragraph"><p>This is "normal". grub-install sends those messages to stderr. To avoid hiding any\r
1358 possible real error messages grml2usb doesn&#8217;t ignore those messages.</p></div>\r
1359 </div>\r
1360 <div class="sect2">\r
1361 <h3 id="device-map">7.8. grub-install complains about /boot/grub/device.map?!</h3>\r
1362 <div class="paragraph"><p>The following message:</p></div>\r
1363 <div class="literalblock">\r
1364 <div class="content">\r
1365 <pre><tt>grub-probe: error: Cannot open `/boot/grub/device.map'</tt></pre>\r
1366 </div></div>\r
1367 <div class="paragraph"><p>This is "normal" (at least with grub1). This isn&#8217;t a problem, because the\r
1368 device.map file will be generated on the target device anyway.</p></div>\r
1369 </div>\r
1370 <div class="sect2">\r
1371 <h3 id="unary-operator">7.9. grub-install complains about a unary operator?!</h3>\r
1372 <div class="paragraph"><p>The following message:</p></div>\r
1373 <div class="literalblock">\r
1374 <div class="content">\r
1375 <pre><tt>'/usr/sbin/grub-install: line 374: [: =: unary operator expected'</tt></pre>\r
1376 </div></div>\r
1377 <div class="paragraph"><p>This is "normal". Just ignore it. (It usually doesn&#8217;t appear\r
1378 on the second invocation on the same device.)</p></div>\r
1379 </div>\r
1380 <div class="sect2">\r
1381 <h3 id="unknown-filesystem">7.10. grub-install fails with grub-probe: error: unknown filesystem?!</h3>\r
1382 <div class="paragraph"><p>The following message:</p></div>\r
1383 <div class="literalblock">\r
1384 <div class="content">\r
1385 <pre><tt>grub-probe: error: unknown filesystem\r
1386 Auto-detection of a filesystem module failed.\r
1387 Please specify the module with the option `--modules' explicitly.</tt></pre>\r
1388 </div></div>\r
1389 <div class="paragraph"><p>usually means that the device partition table says something else than the\r
1390 filesystem on the device. For example using FAT16 as filesystem type and\r
1391 using FAT32 as filesystem on the partition will not work. Either set filesystem\r
1392 type to FAT32 or format the partition using FAT16. It is essential that\r
1393 device partition table and filesystem use the same filesystem type.</p></div>\r
1394 </div>\r
1395 <div class="sect2">\r
1396 <h3 id="mbr-vs-pbr">7.11. grub-setup fails after Attempting to install GRUB to a partition instead of the MBR?!</h3>\r
1397 <div class="paragraph"><p>The following message:</p></div>\r
1398 <div class="literalblock">\r
1399 <div class="content">\r
1400 <pre><tt>grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR.  This is a BAD idea.\r
1401 grub-setup: warn: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and its use is discouraged.\r
1402 grub-setup: error: Cannot read `/grub/core.img' correctly</tt></pre>\r
1403 </div></div>\r
1404 <div class="paragraph"><p>appears when using grub2 versions older than 1.98 as those version introduced a\r
1405 regression which avoids that grub is being installed into a partition (PBR,\r
1406 Partition Boot Record) instead of MBR (Master Boot Record).</p></div>\r
1407 <div class="paragraph"><p>To work around this issue you can either 1) upgrade to grub versions &gt;=1.98, 2)\r
1408 install grub into the MBR (Master Boot Record) using the <em>--grub-mbr</em> option of\r
1409 grml2usb or 3) switch to syslinux as bootmanager (just drop the <em>--grub</em>\r
1410 option).</p></div>\r
1411 </div>\r
1412 <div class="sect2">\r
1413 <h3 id="splash-xpm">7.12. I&#8217;m getting something like "Error: /usr/share/grml2usb/grub/splash.xpm.gz can not be read"!?</h3>\r
1414 <div class="paragraph"><p>Looks like you&#8217;ve only the grml2usb script itself available. Please make sure\r
1415 you&#8217;ve the grml2usb Debian package installed. The most resent stable version is\r
1416 available via <a href="http://deb.grml.org/">the grml-testing Debian repository</a>.  If\r
1417 you do not have a Debian system please see section <a href="#download">Where can I get grml2usb?</a> in this FAQ.</p></div>\r
1418 </div>\r
1419 <div class="sect2">\r
1420 <h3 id="fat16">7.13. Why do I have to use a FAT16/FAT32 filesystem?</h3>\r
1421 <div class="paragraph"><p>Syslinux (currently) does not support any other filesystems besides FAT16/FAT32\r
1422 (though that&#8217;s a sane default if you want to share your files with other\r
1423 (operating) systems). If you want to use a different filesystem (like ext2/3)\r
1424 use the bootloader grub instead using grml2usb&#8217;s <em>--grub</em> option.</p></div>\r
1425 <div class="admonitionblock">\r
1426 <table><tr>\r
1427 <td class="icon">\r
1428 <img src="./images/icons/note.png" alt="Note" />\r
1429 </td>\r
1430 <td class="content">FAT32 is supported since syslinux version 3.0.</td>\r
1431 </tr></table>\r
1432 </div>\r
1433 </div>\r
1434 <div class="sect2">\r
1435 <h3 id="hdt-hangs">7.14. Addons &#8594; Hardware Detection Tool freezes</h3>\r
1436 <div class="paragraph"><p>This usually means that the machine you ran grml2usb on had syslinux 3.x\r
1437 installed. The version of hdt (Hardware detection tool) shipping with Grml\r
1438 2010.12 and newer requires syslinux 4.x.</p></div>\r
1439 </div>\r
1440 <div class="sect2">\r
1441 <h3 id="cool-idea">7.15. I think I&#8217;ve got a really cool idea!</h3>\r
1442 <div class="paragraph"><p>Great! Please check out\r
1443 <a href="http://git.grml.org/?p=grml2usb.git;a=blob;f=TODO;hb=HEAD">the TODO file</a>.\r
1444 Feel free to <a href="#author">report your wishes to the author</a>. Patches highly\r
1445 appreciated.</p></div>\r
1446 </div>\r
1447 <div class="sect2">\r
1448 <h3 id="booting-from-usb">7.16. I&#8217;ve problems with booting from USB.</h3>\r
1449 <div class="paragraph"><p>Check out <a href="#troubleshooting">Troubleshooting and Pitfalls when booting</a>.</p></div>\r
1450 </div>\r
1451 <div class="sect2">\r
1452 <h3 id="found-a-bug">7.17. I&#8217;ve found a bug!</h3>\r
1453 <div class="paragraph"><p>Please <a href="#author">report it to the author</a>. Please provide usage examples and output\r
1454 of your grml2usb commandline (consider using the "--verbose" option).</p></div>\r
1455 </div>\r
1456 </div>\r
1457 </div>\r
1458 <div class="sect1">\r
1459 <h2 id="usage-examples">8. Usage examples</h2>\r
1460 <div class="sectionbody">\r
1461 <div class="literalblock">\r
1462 <div class="content">\r
1463 <pre><tt># grml2usb /home/grml/grml_2013.01.iso /dev/sdX1</tt></pre>\r
1464 </div></div>\r
1465 <div class="paragraph"><p>Install specified ISO on device /dev/sdX1.</p></div>\r
1466 <div class="literalblock">\r
1467 <div class="content">\r
1468 <pre><tt># grml2usb /home/grml/grml_2013.01.iso /home/grml/grml_small_2013.01.iso /dev/sdX1</tt></pre>\r
1469 </div></div>\r
1470 <div class="paragraph"><p>Install specified ISOs on device /dev/sdX1 for multibooting ISOs.</p></div>\r
1471 <div class="literalblock">\r
1472 <div class="content">\r
1473 <pre><tt># grml2usb /lib/live/mount/medium /dev/sdX1</tt></pre>\r
1474 </div></div>\r
1475 <div class="paragraph"><p>Install currently running Grml live system on device /dev/sdX1.</p></div>\r
1476 <div class="literalblock">\r
1477 <div class="content">\r
1478 <pre><tt># grml2usb /lib/live/mount/medium /home/grml/grml_2013.01.iso /dev/sdX1</tt></pre>\r
1479 </div></div>\r
1480 <div class="paragraph"><p>Install currently running Grml live system and the specified\r
1481 ISO on device /dev/sdX1 for multibooting.</p></div>\r
1482 <div class="literalblock">\r
1483 <div class="content">\r
1484 <pre><tt># grml2usb --fat16 /home/grml/grml_2013.01.iso /dev/sdX1</tt></pre>\r
1485 </div></div>\r
1486 <div class="paragraph"><p>Install specified ISO on device /dev/sdX1 and format partition /dev/sdX1 with\r
1487 FAT16 filesystem.</p></div>\r
1488 <div class="literalblock">\r
1489 <div class="content">\r
1490 <pre><tt># grml2usb --grub --grub-mbr /home/grml/grml_2013.01.iso /dev/sdX1</tt></pre>\r
1491 </div></div>\r
1492 <div class="paragraph"><p>Install specified ISO on device /dev/sdX1 and use grub as bootloader (instead of\r
1493 syslinux being the default) and install a master boot record (MBR) to the MBR of\r
1494 /dev/sdX.</p></div>\r
1495 <div class="literalblock">\r
1496 <div class="content">\r
1497 <pre><tt># grml2usb --bootoptions="lang=de ssh=mysecret" grml_2013.01.iso /dev/sdX1\r
1498 # grml2usb --bootoptions="lang=de" --bootoptions="ssh=mysecret" grml_2013.01.iso /dev/sdX1</tt></pre>\r
1499 </div></div>\r
1500 <div class="paragraph"><p>Install specified ISO on device /dev/sdX1 and use "lang=de ssh=mysecret" as\r
1501 default bootoptions.</p></div>\r
1502 <div class="literalblock">\r
1503 <div class="content">\r
1504 <pre><tt># grml2usb --remove-bootoption="vga=791" --remove-bootoption="nomce" grml_2013.01.iso /dev/sdX1</tt></pre>\r
1505 </div></div>\r
1506 <div class="paragraph"><p>Install specified ISO on device /dev/sdX1 remove vga=791 and nomce from existing bootoptions.</p></div>\r
1507 <div class="literalblock">\r
1508 <div class="content">\r
1509 <pre><tt># grml2usb --bootoptions="persistent-path=%flavour_name" grml64_2010.04.iso grml_2010.04.iso /dev/sdX1</tt></pre>\r
1510 </div></div>\r
1511 <div class="paragraph"><p>Install specified Isos on device /dev/sdx and add parameter persisten-path\r
1512 to every menu entry. %flavour_name will be expanded to the flavour of the specific\r
1513 iso, e.g. grml64 and grml.</p></div>\r
1514 </div>\r
1515 </div>\r
1516 <div class="sect1">\r
1517 <h2 id="ressources">9. Online Ressources</h2>\r
1518 <div class="sectionbody">\r
1519 <div class="paragraph"><p>Check out the <a href="http://grml.org/grml2usb/">grml2usb webpage</a> and the\r
1520 <a href="http://git.grml.org/?p=grml2usb.git">grml2usb git repository</a>.</p></div>\r
1521 </div>\r
1522 </div>\r
1523 <div class="sect1">\r
1524 <h2 id="bugs">10. Bugs</h2>\r
1525 <div class="sectionbody">\r
1526 <div class="paragraph"><p>Please report feedback, bugreports and wishes <a href="#author">to the author</a>.</p></div>\r
1527 </div>\r
1528 </div>\r
1529 <div class="sect1">\r
1530 <h2 id="author">11. Author</h2>\r
1531 <div class="sectionbody">\r
1532 <div class="paragraph"><p>Michael Prokop &lt;<a href="mailto:mika@grml.org">mika@grml.org</a>&gt;</p></div>\r
1533 </div>\r
1534 </div>\r
1535 </div>\r
1536 <div id="footnotes"><hr /></div>\r
1537 <div id="footer">\r
1538 <div id="footer-text">\r
1539 Last updated 2013-01-10 13:55:49 CET\r
1540 </div>\r
1541 </div>\r
1542 </body>\r
1543 </html>\r