make urls clickable
[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.6" />\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.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 \r
411 /*\r
412  * xhtml11 specific\r
413  *\r
414  * */\r
415 \r
416 tt {\r
417   font-family: monospace;\r
418   font-size: inherit;\r
419   color: navy;\r
420 }\r
421 \r
422 div.tableblock {\r
423   margin-top: 1.0em;\r
424   margin-bottom: 1.5em;\r
425 }\r
426 div.tableblock > table {\r
427   border: 3px solid #527bbd;\r
428 }\r
429 thead, p.table.header {\r
430   font-weight: bold;\r
431   color: #527bbd;\r
432 }\r
433 p.table {\r
434   margin-top: 0;\r
435 }\r
436 /* Because the table frame attribute is overriden by CSS in most browsers. */\r
437 div.tableblock > table[frame="void"] {\r
438   border-style: none;\r
439 }\r
440 div.tableblock > table[frame="hsides"] {\r
441   border-left-style: none;\r
442   border-right-style: none;\r
443 }\r
444 div.tableblock > table[frame="vsides"] {\r
445   border-top-style: none;\r
446   border-bottom-style: none;\r
447 }\r
448 \r
449 \r
450 /*\r
451  * html5 specific\r
452  *\r
453  * */\r
454 \r
455 .monospaced {\r
456   font-family: monospace;\r
457   font-size: inherit;\r
458   color: navy;\r
459 }\r
460 \r
461 table.tableblock {\r
462   margin-top: 1.0em;\r
463   margin-bottom: 1.5em;\r
464 }\r
465 thead, p.tableblock.header {\r
466   font-weight: bold;\r
467   color: #527bbd;\r
468 }\r
469 p.tableblock {\r
470   margin-top: 0;\r
471 }\r
472 table.tableblock {\r
473   border-width: 3px;\r
474   border-spacing: 0px;\r
475   border-style: solid;\r
476   border-color: #527bbd;\r
477   border-collapse: collapse;\r
478 }\r
479 th.tableblock, td.tableblock {\r
480   border-width: 1px;\r
481   padding: 4px;\r
482   border-style: solid;\r
483   border-color: #527bbd;\r
484 }\r
485 \r
486 table.tableblock.frame-topbot {\r
487   border-left-style: hidden;\r
488   border-right-style: hidden;\r
489 }\r
490 table.tableblock.frame-sides {\r
491   border-top-style: hidden;\r
492   border-bottom-style: hidden;\r
493 }\r
494 table.tableblock.frame-none {\r
495   border-style: hidden;\r
496 }\r
497 \r
498 th.tableblock.halign-left, td.tableblock.halign-left {\r
499   text-align: left;\r
500 }\r
501 th.tableblock.halign-center, td.tableblock.halign-center {\r
502   text-align: center;\r
503 }\r
504 th.tableblock.halign-right, td.tableblock.halign-right {\r
505   text-align: right;\r
506 }\r
507 \r
508 th.tableblock.valign-top, td.tableblock.valign-top {\r
509   vertical-align: top;\r
510 }\r
511 th.tableblock.valign-middle, td.tableblock.valign-middle {\r
512   vertical-align: middle;\r
513 }\r
514 th.tableblock.valign-bottom, td.tableblock.valign-bottom {\r
515   vertical-align: bottom;\r
516 }\r
517 \r
518 \r
519 /*\r
520  * manpage specific\r
521  *\r
522  * */\r
523 \r
524 body.manpage h1 {\r
525   padding-top: 0.5em;\r
526   padding-bottom: 0.5em;\r
527   border-top: 2px solid silver;\r
528   border-bottom: 2px solid silver;\r
529 }\r
530 body.manpage h2 {\r
531   border-style: none;\r
532 }\r
533 body.manpage div.sectionbody {\r
534   margin-left: 3em;\r
535 }\r
536 \r
537 @media print {\r
538   body.manpage div#toc { display: none; }\r
539 }\r
540 </style>\r
541 <script type="text/javascript">\r
542 /*<![CDATA[*/\r
543 var asciidoc = {  // Namespace.\r
544 \r
545 /////////////////////////////////////////////////////////////////////\r
546 // Table Of Contents generator\r
547 /////////////////////////////////////////////////////////////////////\r
548 \r
549 /* Author: Mihai Bazon, September 2002\r
550  * http://students.infoiasi.ro/~mishoo\r
551  *\r
552  * Table Of Content generator\r
553  * Version: 0.4\r
554  *\r
555  * Feel free to use this script under the terms of the GNU General Public\r
556  * License, as long as you do not remove or alter this notice.\r
557  */\r
558 \r
559  /* modified by Troy D. Hanson, September 2006. License: GPL */\r
560  /* modified by Stuart Rackham, 2006, 2009. License: GPL */\r
561 \r
562 // toclevels = 1..4.\r
563 toc: function (toclevels) {\r
564 \r
565   function getText(el) {\r
566     var text = "";\r
567     for (var i = el.firstChild; i != null; i = i.nextSibling) {\r
568       if (i.nodeType == 3 /* Node.TEXT_NODE */) // IE doesn't speak constants.\r
569         text += i.data;\r
570       else if (i.firstChild != null)\r
571         text += getText(i);\r
572     }\r
573     return text;\r
574   }\r
575 \r
576   function TocEntry(el, text, toclevel) {\r
577     this.element = el;\r
578     this.text = text;\r
579     this.toclevel = toclevel;\r
580   }\r
581 \r
582   function tocEntries(el, toclevels) {\r
583     var result = new Array;\r
584     var re = new RegExp('[hH]([2-'+(toclevels+1)+'])');\r
585     // Function that scans the DOM tree for header elements (the DOM2\r
586     // nodeIterator API would be a better technique but not supported by all\r
587     // browsers).\r
588     var iterate = function (el) {\r
589       for (var i = el.firstChild; i != null; i = i.nextSibling) {\r
590         if (i.nodeType == 1 /* Node.ELEMENT_NODE */) {\r
591           var mo = re.exec(i.tagName);\r
592           if (mo && (i.getAttribute("class") || i.getAttribute("className")) != "float") {\r
593             result[result.length] = new TocEntry(i, getText(i), mo[1]-1);\r
594           }\r
595           iterate(i);\r
596         }\r
597       }\r
598     }\r
599     iterate(el);\r
600     return result;\r
601   }\r
602 \r
603   var toc = document.getElementById("toc");\r
604   if (!toc) {\r
605     return;\r
606   }\r
607 \r
608   // Delete existing TOC entries in case we're reloading the TOC.\r
609   var tocEntriesToRemove = [];\r
610   var i;\r
611   for (i = 0; i < toc.childNodes.length; i++) {\r
612     var entry = toc.childNodes[i];\r
613     if (entry.nodeName == 'div'\r
614      && entry.getAttribute("class")\r
615      && entry.getAttribute("class").match(/^toclevel/))\r
616       tocEntriesToRemove.push(entry);\r
617   }\r
618   for (i = 0; i < tocEntriesToRemove.length; i++) {\r
619     toc.removeChild(tocEntriesToRemove[i]);\r
620   }\r
621 \r
622   // Rebuild TOC entries.\r
623   var entries = tocEntries(document.getElementById("content"), toclevels);\r
624   for (var i = 0; i < entries.length; ++i) {\r
625     var entry = entries[i];\r
626     if (entry.element.id == "")\r
627       entry.element.id = "_toc_" + i;\r
628     var a = document.createElement("a");\r
629     a.href = "#" + entry.element.id;\r
630     a.appendChild(document.createTextNode(entry.text));\r
631     var div = document.createElement("div");\r
632     div.appendChild(a);\r
633     div.className = "toclevel" + entry.toclevel;\r
634     toc.appendChild(div);\r
635   }\r
636   if (entries.length == 0)\r
637     toc.parentNode.removeChild(toc);\r
638 },\r
639 \r
640 \r
641 /////////////////////////////////////////////////////////////////////\r
642 // Footnotes generator\r
643 /////////////////////////////////////////////////////////////////////\r
644 \r
645 /* Based on footnote generation code from:\r
646  * http://www.brandspankingnew.net/archive/2005/07/format_footnote.html\r
647  */\r
648 \r
649 footnotes: function () {\r
650   // Delete existing footnote entries in case we're reloading the footnodes.\r
651   var i;\r
652   var noteholder = document.getElementById("footnotes");\r
653   if (!noteholder) {\r
654     return;\r
655   }\r
656   var entriesToRemove = [];\r
657   for (i = 0; i < noteholder.childNodes.length; i++) {\r
658     var entry = noteholder.childNodes[i];\r
659     if (entry.nodeName == 'div' && entry.getAttribute("class") == "footnote")\r
660       entriesToRemove.push(entry);\r
661   }\r
662   for (i = 0; i < entriesToRemove.length; i++) {\r
663     noteholder.removeChild(entriesToRemove[i]);\r
664   }\r
665 \r
666   // Rebuild footnote entries.\r
667   var cont = document.getElementById("content");\r
668   var spans = cont.getElementsByTagName("span");\r
669   var refs = {};\r
670   var n = 0;\r
671   for (i=0; i<spans.length; i++) {\r
672     if (spans[i].className == "footnote") {\r
673       n++;\r
674       var note = spans[i].getAttribute("data-note");\r
675       if (!note) {\r
676         // Use [\s\S] in place of . so multi-line matches work.\r
677         // Because JavaScript has no s (dotall) regex flag.\r
678         note = spans[i].innerHTML.match(/\s*\[([\s\S]*)]\s*/)[1];\r
679         spans[i].innerHTML =\r
680           "[<a id='_footnoteref_" + n + "' href='#_footnote_" + n +\r
681           "' title='View footnote' class='footnote'>" + n + "</a>]";\r
682         spans[i].setAttribute("data-note", note);\r
683       }\r
684       noteholder.innerHTML +=\r
685         "<div class='footnote' id='_footnote_" + n + "'>" +\r
686         "<a href='#_footnoteref_" + n + "' title='Return to text'>" +\r
687         n + "</a>. " + note + "</div>";\r
688       var id =spans[i].getAttribute("id");\r
689       if (id != null) refs["#"+id] = n;\r
690     }\r
691   }\r
692   if (n == 0)\r
693     noteholder.parentNode.removeChild(noteholder);\r
694   else {\r
695     // Process footnoterefs.\r
696     for (i=0; i<spans.length; i++) {\r
697       if (spans[i].className == "footnoteref") {\r
698         var href = spans[i].getElementsByTagName("a")[0].getAttribute("href");\r
699         href = href.match(/#.*/)[0];  // Because IE return full URL.\r
700         n = refs[href];\r
701         spans[i].innerHTML =\r
702           "[<a href='#_footnote_" + n +\r
703           "' title='View footnote' class='footnote'>" + n + "</a>]";\r
704       }\r
705     }\r
706   }\r
707 },\r
708 \r
709 install: function(toclevels) {\r
710   var timerId;\r
711 \r
712   function reinstall() {\r
713     asciidoc.footnotes();\r
714     if (toclevels) {\r
715       asciidoc.toc(toclevels);\r
716     }\r
717   }\r
718 \r
719   function reinstallAndRemoveTimer() {\r
720     clearInterval(timerId);\r
721     reinstall();\r
722   }\r
723 \r
724   timerId = setInterval(reinstall, 500);\r
725   if (document.addEventListener)\r
726     document.addEventListener("DOMContentLoaded", reinstallAndRemoveTimer, false);\r
727   else\r
728     window.onload = reinstallAndRemoveTimer;\r
729 }\r
730 \r
731 }\r
732 asciidoc.install(2);\r
733 /*]]>*/\r
734 </script>\r
735 </head>\r
736 <body class="article">\r
737 <div id="header">\r
738 <h1>grml2usb(8)</h1>\r
739 <div id="toc">
740   <div id="toctitle">Table of Contents</div>
741   <noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
742 </div>\r
743 </div>\r
744 <div id="content">\r
745 <div class="sect1">\r
746 <h2 id="_name">1. Name</h2>\r
747 <div class="sectionbody">\r
748 <div class="paragraph"><p>grml2usb - install grml ISO(s) on usb device for booting</p></div>\r
749 </div>\r
750 </div>\r
751 <div class="sect1">\r
752 <h2 id="_synopsis">2. Synopsis</h2>\r
753 <div class="sectionbody">\r
754 <div class="paragraph"><p>grml2usb [ options ] &lt;ISO[s]&gt; &lt;device&gt;</p></div>\r
755 <div class="sidebarblock">\r
756 <div class="content">\r
757 <div class="paragraph"><p>Important! The grml team does not take responsibility for loss of any data!</p></div>\r
758 </div></div>\r
759 </div>\r
760 </div>\r
761 <div class="sect1">\r
762 <h2 id="introduction">3. Introduction</h2>\r
763 <div class="sectionbody">\r
764 <div class="paragraph"><p>grml2usb installs grml on a given partition of your usb device and makes it\r
765 bootable. It provides multi-iso support, meaning you can specify several grml\r
766 ISOs on the command line at once and select the grml flavour you would like to\r
767 boot on the bootprompt then. Note that the <strong>first</strong> ISO specified on the grml2usb\r
768 command line will become the default one (that&#8217;s the one that will boot when\r
769 just pressing enter on the bootprompt or wait until the boot timeout matches).</p></div>\r
770 <div class="admonitionblock">\r
771 <table><tr>\r
772 <td class="icon">\r
773 <img src="./images/icons/important.png" alt="Important" />\r
774 </td>\r
775 <td class="content">By default a compatible master boot record (MBR) is installed on the device\r
776 (being for example /dev/sdX when executing <em>grml2usb grml.iso /dev/sdX1</em>) and\r
777 syslinux is being used as default bootloader. Avoid installation of the default\r
778 MBR using the <em>--skip-mbr</em> option or if you encounter any problems with the\r
779 default MBR consider using <em>--syslinux-mbr</em> instead.</td>\r
780 </tr></table>\r
781 </div>\r
782 </div>\r
783 </div>\r
784 <div class="sect1">\r
785 <h2 id="options">4. Options</h2>\r
786 <div class="sectionbody">\r
787 <div class="paragraph"><p>The ISO[s] should be the path to one or multiple grml-ISOs and/or the path to\r
788 the currently running live-system (being /live/image).</p></div>\r
789 <div class="paragraph"><p>The device either might be a device name like /dev/sdX1 or a directory. When\r
790 specifying a device name the device is mounted automatically. When specifying a\r
791 directory grml2usb is assuming that you did set up a bootloader on your own (or\r
792 don&#8217;t need one) and a bootloader won&#8217;t be installed automatically.</p></div>\r
793 <div class="paragraph"><p>The following options are supported:</p></div>\r
794 <div class="dlist"><dl>\r
795 <dt class="hdlist1">\r
796 <strong>--bootoptions=&#8230;</strong>\r
797 </dt>\r
798 <dd>\r
799 <p>\r
800 Use specified bootoptions as default. To use flavour name as a argument for a\r
801 boot parameter use %flavour which will be expanded to the flavour name. To add\r
802 multiple bootoptions you can specify the option multiple time.\r
803 </p>\r
804 </dd>\r
805 <dt class="hdlist1">\r
806 <strong>--bootloader-only</strong>\r
807 </dt>\r
808 <dd>\r
809 <p>\r
810 Do <strong>not</strong> copy files but instead just install a bootloader.  Note that the boot\r
811 addons are copied to /boot/addons at this stage as well.  If you want to skip\r
812 copying the boot addons consider using the --skip-addons option.\r
813 </p>\r
814 </dd>\r
815 <dt class="hdlist1">\r
816 <strong>--copy-only</strong>\r
817 </dt>\r
818 <dd>\r
819 <p>\r
820 Copy files only but do <strong>not</strong> install a bootloader.\r
821 </p>\r
822 </dd>\r
823 <dt class="hdlist1">\r
824 <strong>--dry-run</strong>\r
825 </dt>\r
826 <dd>\r
827 <p>\r
828 Avoid executing commands, instead show what would be executed.\r
829 Warning: please notice that the ISO has to be mounted anyway, otherwise\r
830 identifying the grml flavour would not be possible.\r
831 </p>\r
832 </dd>\r
833 <dt class="hdlist1">\r
834 <strong>--fat16</strong>\r
835 </dt>\r
836 <dd>\r
837 <p>\r
838 Format specified partition with FAT16.\r
839 <strong>Important:</strong> this will destroy any existing data on the specified partition!\r
840 </p>\r
841 </dd>\r
842 <dt class="hdlist1">\r
843 <strong>--force</strong>\r
844 </dt>\r
845 <dd>\r
846 <p>\r
847 Force any (possible dangerous) actions requiring manual interaction (like --fat16).\r
848 </p>\r
849 </dd>\r
850 <dt class="hdlist1">\r
851 <strong>--grub</strong>\r
852 </dt>\r
853 <dd>\r
854 <p>\r
855 Install grub bootloader instead of (default) syslinux.\r
856 </p>\r
857 </dd>\r
858 <dt class="hdlist1">\r
859 <strong>--grub-mbr</strong>\r
860 </dt>\r
861 <dd>\r
862 <p>\r
863 Install grub into MBR (Master Boot Record) instead of PBR (Partition Boot\r
864 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
865 </p>\r
866 </dd>\r
867 <dt class="hdlist1">\r
868 <strong>--help</strong>\r
869 </dt>\r
870 <dd>\r
871 <p>\r
872 Display usage information and exit.\r
873 </p>\r
874 </dd>\r
875 </dl></div>\r
876 <div class="dlist"><dl>\r
877 <dt class="hdlist1">\r
878 <strong>--mbr-menu</strong>\r
879 </dt>\r
880 <dd>\r
881 <p>\r
882 Install master boot record (MBR) with integrated boot menu: interactively choose\r
883 the partition to boot from, with a timeout to load the default partition, or\r
884 boot from floppy. When NOT using the --mbr-menu option a MBR with LBA and large\r
885 disc support but without an integrated boot menu is installed (so it&#8217;s not\r
886 visible at all but instead directly jumps to the bootloader - being grub or\r
887 syslinux). Note: This options is available only when using the default MBR and\r
888 won&#8217;t have any effect if you&#8217;re using the <em>--syslinux-mbr</em> option.\r
889 </p>\r
890 </dd>\r
891 <dt class="hdlist1">\r
892 <strong>--quiet</strong>\r
893 </dt>\r
894 <dd>\r
895 <p>\r
896 Do not output anything but just errors on console.\r
897 </p>\r
898 </dd>\r
899 <dt class="hdlist1">\r
900 <strong>--skip-addons</strong>\r
901 </dt>\r
902 <dd>\r
903 <p>\r
904 Do not install /boot/addons/ files (like dos, grub, memdisk,&#8230;).\r
905 </p>\r
906 </dd>\r
907 <dt class="hdlist1">\r
908 <strong>--remove-bootoption=&#8230;</strong>\r
909 </dt>\r
910 <dd>\r
911 <p>\r
912 Remove specified bootoption (could be a regex) from existing boot options. Use\r
913 multiple entries for removing different bootoptions at once.\r
914 </p>\r
915 </dd>\r
916 <dt class="hdlist1">\r
917 <strong>--skip-grub-config</strong>\r
918 </dt>\r
919 <dd>\r
920 <p>\r
921 Skip generation of grub configuration files. By default the configuration\r
922 files for syslinux <strong>and</strong> grub will be written so you&#8217;ve a working configuration\r
923 file no matter whether you&#8217;re using grub or syslinux as bootloader.\r
924 </p>\r
925 </dd>\r
926 <dt class="hdlist1">\r
927 <strong>--skip-mbr</strong>\r
928 </dt>\r
929 <dd>\r
930 <p>\r
931 Do not touch/install the master boot record (MBR).\r
932 </p>\r
933 </dd>\r
934 <dt class="hdlist1">\r
935 <strong>--skip-syslinux-config</strong>\r
936 </dt>\r
937 <dd>\r
938 <p>\r
939 Skip generation of syslinux configuration files. By default the configuration\r
940 files for syslinux <strong>and</strong> grub will be written so you&#8217;ve a working configuration\r
941 file no matter whether you&#8217;re using grub or syslinux as bootloader.\r
942 </p>\r
943 </dd>\r
944 <dt class="hdlist1">\r
945 <strong>--syslinux</strong>\r
946 </dt>\r
947 <dd>\r
948 <p>\r
949 This option is deprecated and is being left only for backwards compatibility\r
950 reasons. Syslinux is the default bootloader of grml2usb and therefore the\r
951 <em>--syslinux</em> option doesn&#8217;t have any effects. If you do not want to use syslinux\r
952 as bootloader consider using the <em>--grub</em> option.\r
953 </p>\r
954 </dd>\r
955 <dt class="hdlist1">\r
956 <strong>--syslinux-mbr</strong>\r
957 </dt>\r
958 <dd>\r
959 <p>\r
960 Install syslinux' master boot record (MBR, which is booting from the partition\r
961 with the "active" flag set) instead of the default one.  If you encounter any\r
962 problems with the default MBR you can try using the syslinux MBR instead. If\r
963 that works for you please <a href="#author">let us know</a> so we can adjust our default\r
964 MBR accordingly.\r
965 </p>\r
966 </dd>\r
967 </dl></div>\r
968 <div class="dlist"><dl>\r
969 <dt class="hdlist1">\r
970 <strong>-v</strong>, <strong>--version</strong>\r
971 </dt>\r
972 <dd>\r
973 <p>\r
974 Return version and exit.\r
975 </p>\r
976 </dd>\r
977 <dt class="hdlist1">\r
978 <strong>--verbose</strong>\r
979 </dt>\r
980 <dd>\r
981 <p>\r
982 Enable verbose mode.\r
983 </p>\r
984 </dd>\r
985 </dl></div>\r
986 </div>\r
987 </div>\r
988 <div class="sect1">\r
989 <h2 id="_developers_corner">5. Developers Corner</h2>\r
990 <div class="sectionbody">\r
991 <div class="sect2">\r
992 <h3 id="directory-layout">5.1. Directory layout on usb device</h3>\r
993 <div class="literalblock">\r
994 <div class="content">\r
995 <pre><tt>boot/ -&gt;\r
996   |-- addons/\r
997   |   |-- allinone.img     [grub - all in one image]\r
998   |   |-- bsd4grml/        [MirBSD]\r
999   |   |-- balder10.imz     [FreeDOS]\r
1000   |   |-- memdisk          [chainloading helper]\r
1001   |   |-- memtest          [memtest86+]\r
1002   |-- release/\r
1003   |   |-- grml/\r
1004   |   |   |-- linux26      [Kernel]\r
1005   |   |   |-- initrd.gz    [initramfs]\r
1006   |   |-- grml64\r
1007   |   |   |-- linux26      [Kernel]\r
1008   |   |   |-- initrd.gz    [initramfs]\r
1009   |   |-- grml-medium\r
1010   |   |   |-- linux26      [...]\r
1011   |   |   |-- initrd.gz\r
1012   |   |-- grml64-medium\r
1013   |   |   |-- linux26\r
1014   |   |   |-- initrd.gz\r
1015   |   |-- grml-small\r
1016   |   |   |-- linux26\r
1017   |   |   |-- initrd.gz\r
1018   |   `-- grml64-small\r
1019   |       |-- linux26\r
1020   |       |-- initrd.gz\r
1021   |-- grub/\r
1022   |   |-- grml.png         [graphical bootsplash background image for grub2]\r
1023   |   |-- grub.cfg         [configuration file for grub2]\r
1024   |   |-- menu.lst         [configuration file for grub1]\r
1025   |   |-- splash.xpm.gz    [splash screen for grub1]\r
1026   `-- syslinux/\r
1027       |-- grml.png         [graphical bootsplash background image for syslinux]\r
1028       |-- syslinux.cfg     [main configuration file for syslinux]\r
1029       `-- [....]           [several further config files for syslinux]</tt></pre>\r
1030 </div></div>\r
1031 <div class="literalblock">\r
1032 <div class="content">\r
1033 <pre><tt>grml/\r
1034   |-- grml2usb.txt         [not yet implemented]\r
1035   |-- grml-cheatcodes.txt  [list of bootoptions for grml]\r
1036   |-- grml-version.txt     [file containing information about grml-version]\r
1037   |-- LICENSE.txt          [license information]\r
1038   |-- md5sums              [md5sums of original ISO]\r
1039   |-- README.txt           [informational text]\r
1040   `-- web/                 [browser related files]\r
1041       |-- index.html\r
1042       |-- style.css\r
1043       `-- images/\r
1044           |-- button.png\r
1045           |-- favicon.png\r
1046           |-- linux.jpg\r
1047           `-- logo.png</tt></pre>\r
1048 </div></div>\r
1049 <div class="literalblock">\r
1050 <div class="content">\r
1051 <pre><tt>live/\r
1052   |-- grml/\r
1053   |   |-- filesystem.module    [module specifying which squashfs should be used for grml]\r
1054   |   `-- grml.squashfs        [squashfs file for grml]\r
1055   |-- grml-medium/\r
1056   |   |-- filesystem.module    [module specifying which squashfs should be used for grml-medium]\r
1057   |   `-- grml-medium.squashfs [squashfs file for grml-medium]\r
1058   |-- grml-small/\r
1059   |   |-- filesystem.module    [module specifying which squashfs should be used for grml-medium]\r
1060   |   `-- grml-small.squashfs  [squashfs file for grml-small]\r
1061   `-- ...</tt></pre>\r
1062 </div></div>\r
1063 </div>\r
1064 <div class="sect2">\r
1065 <h3 id="source">5.2. Grabbing the source</h3>\r
1066 <div class="literalblock">\r
1067 <div class="content">\r
1068 <pre><tt>% git clone git://git.grml.org/grml2usb.git</tt></pre>\r
1069 </div></div>\r
1070 </div>\r
1071 <div class="sect2">\r
1072 <h3 id="debugging">5.3. Developers Debugging Hints</h3>\r
1073 <div class="paragraph"><p>To play with grml2usb you can avoid using a real device via a loopback file\r
1074 setup, like:</p></div>\r
1075 <div class="literalblock">\r
1076 <div class="content">\r
1077 <pre><tt># dd if=/dev/zero of=~/loopback bs=1M count=100 # adjust size to your needs\r
1078 # losetup /dev/loop1 ~/loopback</tt></pre>\r
1079 </div></div>\r
1080 <div class="paragraph"><p>Then create according partitions either running for example:</p></div>\r
1081 <div class="literalblock">\r
1082 <div class="content">\r
1083 <pre><tt># echo -en "n\np\n1\n\n\nt\n6\na\n1\n w\n" | fdisk /dev/loop1</tt></pre>\r
1084 </div></div>\r
1085 <div class="paragraph"><p>or:</p></div>\r
1086 <div class="literalblock">\r
1087 <div class="content">\r
1088 <pre><tt># parted /dev/loop1 -s "mkpart primary fat16 0 -1s mkfs 1 fat16"</tt></pre>\r
1089 </div></div>\r
1090 <div class="paragraph"><p>Finally create a filesystem and execute grml2usb as needed:</p></div>\r
1091 <div class="literalblock">\r
1092 <div class="content">\r
1093 <pre><tt># mkfs.vfat /dev/loop1\r
1094 # grml2usb --bootloader-only /grml/isos/grml-small_2009.10.iso /dev/loop1</tt></pre>\r
1095 </div></div>\r
1096 </div>\r
1097 <div class="sect2">\r
1098 <h3 id="performance-tracing">5.4. Performance tracing</h3>\r
1099 <div class="literalblock">\r
1100 <div class="content">\r
1101 <pre><tt># blktrace -d /dev/sdX -o - | blkparse -i -\r
1102 # grml2usb grml_2009.10.iso /dev/sdX1</tt></pre>\r
1103 </div></div>\r
1104 </div>\r
1105 </div>\r
1106 </div>\r
1107 <div class="sect1">\r
1108 <h2 id="troubleshooting">6. Troubleshooting and Pitfalls when booting</h2>\r
1109 <div class="sectionbody">\r
1110 <div class="paragraph"><p>Here is a list of common error messages from BIOS/bootloader when trying to boot\r
1111 from USB.</p></div>\r
1112 <div class="hdlist"><table>\r
1113 <tr>\r
1114 <td class="hdlist1">\r
1115 <strong>Error message</strong>\r
1116 <br />\r
1117 </td>\r
1118 <td class="hdlist2">\r
1119 <p style="margin-top: 0;">\r
1120 ran out of input data. System halted\r
1121 </p>\r
1122 </td>\r
1123 </tr>\r
1124 <tr>\r
1125 <td class="hdlist1">\r
1126 <strong>Reason</strong>\r
1127 <br />\r
1128 </td>\r
1129 <td class="hdlist2">\r
1130 <p style="margin-top: 0;">\r
1131 Everything OK, except for the filesystem used on your usb device. So\r
1132 instead of fat16 you are using for example fat32. Fix: use the appropriate\r
1133 filesystem (fat16 for usb pens usually). The Bootsplash might be displayed, the\r
1134 kernel loads but you very soon get the error message.\r
1135 </p>\r
1136 </td>\r
1137 </tr>\r
1138 <tr>\r
1139 <td class="hdlist1">\r
1140 <strong>Error message</strong>\r
1141 <br />\r
1142 </td>\r
1143 <td class="hdlist2">\r
1144 <p style="margin-top: 0;">\r
1145 Invalid operating system\r
1146 </p>\r
1147 </td>\r
1148 </tr>\r
1149 <tr>\r
1150 <td class="hdlist1">\r
1151 <strong>Reason</strong>\r
1152 <br />\r
1153 </td>\r
1154 <td class="hdlist2">\r
1155 <p style="margin-top: 0;">\r
1156 the partition layout is not ok. Very probably there&#8217;s no primary\r
1157   partition (/dev/sdX{1..4}) or none has the flag <em>bootable</em> set.\r
1158 </p>\r
1159 </td>\r
1160 </tr>\r
1161 <tr>\r
1162 <td class="hdlist1">\r
1163 <strong>Error message</strong>\r
1164 <br />\r
1165 </td>\r
1166 <td class="hdlist2">\r
1167 <p style="margin-top: 0;">\r
1168 Boot error.\r
1169 </p>\r
1170 </td>\r
1171 </tr>\r
1172 <tr>\r
1173 <td class="hdlist1">\r
1174 <strong>Reason</strong>\r
1175 <br />\r
1176 </td>\r
1177 <td class="hdlist2">\r
1178 <p style="margin-top: 0;">\r
1179 Some BIOSses offer different modes for USB booting. The proper mode\r
1180 to boot a USB stick is USB-HDD. If that doesn’t work or is not supported by your\r
1181 system, you need to format your USB-Stick as USB-ZIP.  To do this, syslinux\r
1182 contains an utility called mkdiskimage, which you can use to re-format your USB\r
1183 stick in USB-ZIP format running <em>mkdiskimage -4 /dev/sdX 1 64 32</em>. Please be\r
1184 aware that this procedure will erase all data on your stick.  After executing\r
1185 mkdiskimage just continue installing as usual (grml2usb &#8230;  /dev/sdX4). Note\r
1186 that this is not going to work for any device larger than 8 GB, since\r
1187 mkdiskimage only supports 1024c 256h 63s. For a more detailed explanation, refer\r
1188 to /usr/share/doc/syslinux-common/usbkey.txt.\r
1189 </p>\r
1190 </td>\r
1191 </tr>\r
1192 <tr>\r
1193 <td class="hdlist1">\r
1194 <strong>Error message</strong>\r
1195 <br />\r
1196 </td>\r
1197 <td class="hdlist2">\r
1198 <p style="margin-top: 0;">\r
1199 No operating system found.\r
1200 </p>\r
1201 </td>\r
1202 </tr>\r
1203 <tr>\r
1204 <td class="hdlist1">\r
1205 <strong>Reason</strong>\r
1206 <br />\r
1207 </td>\r
1208 <td class="hdlist2">\r
1209 <p style="margin-top: 0;">\r
1210 you forgot to set the boot-flag on the partition. Or there really isn&#8217;t\r
1211 any operating system at all. :)\r
1212 </p>\r
1213 </td>\r
1214 </tr>\r
1215 <tr>\r
1216 <td class="hdlist1">\r
1217 <strong>Error message</strong>\r
1218 <br />\r
1219 </td>\r
1220 <td class="hdlist2">\r
1221 <p style="margin-top: 0;">\r
1222 kernel-panic: unable to mount root-fs&#8230;\r
1223 </p>\r
1224 </td>\r
1225 </tr>\r
1226 <tr>\r
1227 <td class="hdlist1">\r
1228 <strong>Reason</strong>\r
1229 <br />\r
1230 </td>\r
1231 <td class="hdlist2">\r
1232 <p style="margin-top: 0;">\r
1233 Kernel boots but fails to find the root filesystem. The root=\r
1234 argument in your kernel commandline is pointing to the wrong device. Adjust\r
1235 root=&#8230;, consider using root=UUID=&#8230;.\r
1236 </p>\r
1237 </td>\r
1238 </tr>\r
1239 <tr>\r
1240 <td class="hdlist1">\r
1241 <strong>Error message</strong>\r
1242 <br />\r
1243 </td>\r
1244 <td class="hdlist2">\r
1245 <p style="margin-top: 0;">\r
1246 Could not find kernel image: &#8230;\r
1247 </p>\r
1248 </td>\r
1249 </tr>\r
1250 <tr>\r
1251 <td class="hdlist1">\r
1252 <strong>Reason</strong>\r
1253 <br />\r
1254 </td>\r
1255 <td class="hdlist2">\r
1256 <p style="margin-top: 0;">\r
1257 either a broken isolinux/syslinux version or a broken BIOS. Check out\r
1258 whether the vendor provides a BIOS update or if using bootloader grub instead of\r
1259 isolinux/syslinux fixes the problem.\r
1260 </p>\r
1261 </td>\r
1262 </tr>\r
1263 </table></div>\r
1264 </div>\r
1265 </div>\r
1266 <div class="sect1">\r
1267 <h2 id="faq">7. Frequently Asked Questions (FAQ)</h2>\r
1268 <div class="sectionbody">\r
1269 <div class="sect2">\r
1270 <h3 id="download">7.1. Where can I get grml2usb?</h3>\r
1271 <div class="paragraph"><p>grml2usb is available as Debian package via <a href="http://deb.grml.org/">the\r
1272 grml-testing Debian repository</a>.</p></div>\r
1273 <div class="paragraph"><p>If you do not want to (or can&#8217;t) use the grml2usb Debian package you can either\r
1274 use the grml2usb git tree running:</p></div>\r
1275 <div class="literalblock">\r
1276 <div class="content">\r
1277 <pre><tt>git clone git://git.grml.org/grml2usb.git\r
1278 cd grml2usb\r
1279 make -C mbr\r
1280 sudo ./grml2usb ...</tt></pre>\r
1281 </div></div>\r
1282 <div class="paragraph"><p>or download the provided\r
1283 <a href="http://grml.org/grml2usb/grml2usb.tgz">http://grml.org/grml2usb/grml2usb.tgz</a>\r
1284 (<a href="http://grml.org/grml2usb/grml2usb.tgz.md5.asc">gpg signed md5 hash</a>).\r
1285 Download and extract the tarball and execute the provided script <em>install.sh</em>.</p></div>\r
1286 <div class="admonitionblock">\r
1287 <table><tr>\r
1288 <td class="icon">\r
1289 <img src="./images/icons/note.png" alt="Note" />\r
1290 </td>\r
1291 <td class="content">It is <strong>NOT</strong> enough to have just the grml2usb script itself without the according\r
1292 files provided either via the Debian package, the git tree or the file\r
1293 grml2usb.tgz.</td>\r
1294 </tr></table>\r
1295 </div>\r
1296 </div>\r
1297 <div class="sect2">\r
1298 <h3 id="dd">7.2. Why can&#8217;t I just dd the ISO to a USB device?</h3>\r
1299 <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
1300 <div class="admonitionblock">\r
1301 <table><tr>\r
1302 <td class="icon">\r
1303 <img src="./images/icons/important.png" alt="Important" />\r
1304 </td>\r
1305 <td class="content">Note that ANY existing data on your USB device will be destroyed when\r
1306 using the dd approach.</td>\r
1307 </tr></table>\r
1308 </div>\r
1309 <div class="paragraph"><p>This allows you to dd the Grml ISO to your USB device (use for example\r
1310 <a href="http://www.chrysocome.net/rawwrite">rawwrite</a> if you&#8217;ve just a Windows\r
1311 system available) running:</p></div>\r
1312 <div class="literalblock">\r
1313 <div class="content">\r
1314 <pre><tt>% dd if=grml_2009.10.iso of=/dev/sdX</tt></pre>\r
1315 </div></div>\r
1316 <div class="paragraph"><p>where /dev/sdX is your USB device. Of course this doesn&#8217;t provide such a\r
1317 flexible system like with grml2usb (no multi-ISO setup, no additional default\r
1318 bootoptions,&#8230;) but it&#8217;s a nice way to get a working USB boot setup if you\r
1319 don&#8217;t have grml2usb available.</p></div>\r
1320 </div>\r
1321 <div class="sect2">\r
1322 <h3 id="grml2usb-vs-dd">7.3. What&#8217;s the difference between grml2usb and just using dd?</h3>\r
1323 <div class="paragraph"><p>grml2usb does not remove any data from your USB device and does not alter the\r
1324 partition table at all. grml2usb provides multi-ISO support, support for adding\r
1325 default bootoptions and selecting the bootloader (syslinux vs. grub) without\r
1326 having to manually touch the ISO at all.</p></div>\r
1327 </div>\r
1328 <div class="sect2">\r
1329 <h3 id="grml2iso">7.4. What&#8217;s grml2iso?</h3>\r
1330 <div class="paragraph"><p>grml2iso is a script which uses grml2usb to generate a multiboot ISO out of\r
1331 several grml ISOs. See <em>man grml2iso</em> for further details.</p></div>\r
1332 </div>\r
1333 <div class="sect2">\r
1334 <h3 id="menu-lst">7.5. Why is there a menu.lst and a grub.cfg inside /boot/grub/?</h3>\r
1335 <div class="paragraph"><p>grml2usb supports grub version 1 (grub1) as well as grub version 2 (grub2).\r
1336 Whereas grub1 uses menu.lst the new version grub2 needs grub.cfg.\r
1337 Providing both files allows grml2usb to install grub on the target device\r
1338 no matter which grub version is available on the host where grml2usb is\r
1339 executed on.</p></div>\r
1340 </div>\r
1341 <div class="sect2">\r
1342 <h3 id="stage1">7.6. grub-install fails with 'The file ../boot/grub/stage1 not read correctly"?!</h3>\r
1343 <div class="paragraph"><p>Check whether the partition has the right partition type. For example do NOT use\r
1344 FAT16 (partition type 6) when using a ext3 filesystem on the partition but\r
1345 instead use the correct partition type (<em>83</em> - Linux) then.</p></div>\r
1346 </div>\r
1347 <div class="sect2">\r
1348 <h3 id="grub-install-xfs_freeze">7.7. grub-install complains about /sbin/grub-install and/or xfs_freeze?!</h3>\r
1349 <div class="paragraph"><p>The following message:</p></div>\r
1350 <div class="literalblock">\r
1351 <div class="content">\r
1352 <pre><tt>You shouldn't call /sbin/grub-install. Please call /usr/sbin/grub-install instead!\r
1353 xfs_freeze: specified file ["/tmp/tmpqaBK6z/boot/grub"] is not on an XFS filesystem</tt></pre>\r
1354 </div></div>\r
1355 <div class="paragraph"><p>This is "normal". grub-install sends those messages to stderr. To avoid hiding any\r
1356 possible real error messages grml2usb doesn&#8217;t ignore those messages.</p></div>\r
1357 </div>\r
1358 <div class="sect2">\r
1359 <h3 id="device-map">7.8. grub-install complains about /boot/grub/device.map?!</h3>\r
1360 <div class="paragraph"><p>The following message:</p></div>\r
1361 <div class="literalblock">\r
1362 <div class="content">\r
1363 <pre><tt>grub-probe: error: Cannot open `/boot/grub/device.map'</tt></pre>\r
1364 </div></div>\r
1365 <div class="paragraph"><p>This is "normal" (at least with grub1). This isn&#8217;t a problem, because the\r
1366 device.map file will be generated on the target device anyway.</p></div>\r
1367 </div>\r
1368 <div class="sect2">\r
1369 <h3 id="unary-operator">7.9. grub-install complains about a unary operator?!</h3>\r
1370 <div class="paragraph"><p>The following message:</p></div>\r
1371 <div class="literalblock">\r
1372 <div class="content">\r
1373 <pre><tt>'/usr/sbin/grub-install: line 374: [: =: unary operator expected'</tt></pre>\r
1374 </div></div>\r
1375 <div class="paragraph"><p>This is "normal". Just ignore it. (It usually doesn&#8217;t appear\r
1376 on the second invocation on the same device.)</p></div>\r
1377 </div>\r
1378 <div class="sect2">\r
1379 <h3 id="unknown-filesystem">7.10. grub-install fails with grub-probe: error: unknown filesystem?!</h3>\r
1380 <div class="paragraph"><p>The following message:</p></div>\r
1381 <div class="literalblock">\r
1382 <div class="content">\r
1383 <pre><tt>grub-probe: error: unknown filesystem\r
1384 Auto-detection of a filesystem module failed.\r
1385 Please specify the module with the option `--modules' explicitly.</tt></pre>\r
1386 </div></div>\r
1387 <div class="paragraph"><p>usually means that the device partition table says something else than the\r
1388 filesystem on the device. For example using FAT16 as filesystem type and\r
1389 using FAT32 as filesystem on the partition will not work. Either set filesystem\r
1390 type to FAT32 or format the partition using FAT16. It is essential that\r
1391 device partition table and filesystem use the same filesystem type.</p></div>\r
1392 </div>\r
1393 <div class="sect2">\r
1394 <h3 id="mbr-vs-pbr">7.11. grub-setup fails after Attempting to install GRUB to a partition instead of the MBR?!</h3>\r
1395 <div class="paragraph"><p>The following message:</p></div>\r
1396 <div class="literalblock">\r
1397 <div class="content">\r
1398 <pre><tt>grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR.  This is a BAD idea.\r
1399 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
1400 grub-setup: error: Cannot read `/grub/core.img' correctly</tt></pre>\r
1401 </div></div>\r
1402 <div class="paragraph"><p>appears when using grub2 versions older than 1.98 as those version introduced a\r
1403 regression which avoids that grub is being installed into a partition (PBR,\r
1404 Partition Boot Record) instead of MBR (Master Boot Record).</p></div>\r
1405 <div class="paragraph"><p>To work around this issue you can either 1) upgrade to grub versions &gt;=1.98, 2)\r
1406 install grub into the MBR (Master Boot Record) using the <em>--grub-mbr</em> option of\r
1407 grml2usb or 3) switch to syslinux as bootmanager (just drop the <em>--grub</em>\r
1408 option).</p></div>\r
1409 </div>\r
1410 <div class="sect2">\r
1411 <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
1412 <div class="paragraph"><p>Looks like you&#8217;ve only the grml2usb script itself available. Please make sure\r
1413 you&#8217;ve the grml2usb Debian package installed. The most resent stable version is\r
1414 available via <a href="http://deb.grml.org/">the grml-testing Debian repository</a>.  If\r
1415 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
1416 </div>\r
1417 <div class="sect2">\r
1418 <h3 id="fat16">7.13. Why do I have to use a FAT16/FAT32 filesystem?</h3>\r
1419 <div class="paragraph"><p>Syslinux (currently) does not support any other filesystems besides FAT16/FAT32\r
1420 (though that&#8217;s a sane default if you want to share your files with other\r
1421 (operating) systems). If you want to use a different filesystem (like ext2/3)\r
1422 use the bootloader grub instead using grml2usb&#8217;s <em>--grub</em> option.</p></div>\r
1423 <div class="admonitionblock">\r
1424 <table><tr>\r
1425 <td class="icon">\r
1426 <img src="./images/icons/note.png" alt="Note" />\r
1427 </td>\r
1428 <td class="content">FAT32 is supported since syslinux version 3.0.</td>\r
1429 </tr></table>\r
1430 </div>\r
1431 </div>\r
1432 <div class="sect2">\r
1433 <h3 id="hdt-hangs">7.14. Addons &#8594; Hardware Detection Tool freezes</h3>\r
1434 <div class="paragraph"><p>This usually means that the machine you ran grml2usb on had syslinux 3.x\r
1435 installed. The version of hdt (Hardware detection tool) shipping with Grml\r
1436 2010.12 and newer requires syslinux 4.x.</p></div>\r
1437 </div>\r
1438 <div class="sect2">\r
1439 <h3 id="cool-idea">7.15. I think I&#8217;ve got a really cool idea!</h3>\r
1440 <div class="paragraph"><p>Great! Please check out\r
1441 <a href="http://git.grml.org/?p=grml2usb.git;a=blob;f=TODO;hb=HEAD">the TODO file</a>.\r
1442 Feel free to <a href="#author">report your wishes to the author</a>. Patches highly\r
1443 appreciated.</p></div>\r
1444 </div>\r
1445 <div class="sect2">\r
1446 <h3 id="booting-from-usb">7.16. I&#8217;ve problems with booting from USB.</h3>\r
1447 <div class="paragraph"><p>Check out <a href="#troubleshooting">Troubleshooting and Pitfalls when booting</a>.</p></div>\r
1448 </div>\r
1449 <div class="sect2">\r
1450 <h3 id="found-a-bug">7.17. I&#8217;ve found a bug!</h3>\r
1451 <div class="paragraph"><p>Please <a href="#author">report it to the author</a>. Please provide usage examples and output\r
1452 of your grml2usb commandline (consider using the "--verbose" option).</p></div>\r
1453 </div>\r
1454 </div>\r
1455 </div>\r
1456 <div class="sect1">\r
1457 <h2 id="usage-examples">8. Usage examples</h2>\r
1458 <div class="sectionbody">\r
1459 <div class="literalblock">\r
1460 <div class="content">\r
1461 <pre><tt># grml2usb /home/grml/grml_2009.10.iso /dev/sdX1</tt></pre>\r
1462 </div></div>\r
1463 <div class="paragraph"><p>Install specified ISO on device /dev/sdX1.</p></div>\r
1464 <div class="literalblock">\r
1465 <div class="content">\r
1466 <pre><tt># grml2usb /home/grml/grml_2009.10.iso /home/grml/grml_small_2009.10.iso /dev/sdX1</tt></pre>\r
1467 </div></div>\r
1468 <div class="paragraph"><p>Install specified ISOs on device /dev/sdX1 for multibooting ISOs.</p></div>\r
1469 <div class="literalblock">\r
1470 <div class="content">\r
1471 <pre><tt># grml2usb /live/image /dev/sdX1</tt></pre>\r
1472 </div></div>\r
1473 <div class="paragraph"><p>Install currently running grml live system on device /dev/sdX1.</p></div>\r
1474 <div class="literalblock">\r
1475 <div class="content">\r
1476 <pre><tt># grml2usb /live/image /home/grml/grml_2009.10.iso /dev/sdX1</tt></pre>\r
1477 </div></div>\r
1478 <div class="paragraph"><p>Install currently running grml live system and the specified\r
1479 ISO on device /dev/sdX1 for multibooting.</p></div>\r
1480 <div class="literalblock">\r
1481 <div class="content">\r
1482 <pre><tt># grml2usb --fat16 /home/grml/grml_2009.10.iso /dev/sdX1</tt></pre>\r
1483 </div></div>\r
1484 <div class="paragraph"><p>Install specified ISO on device /dev/sdX1 and format partition /dev/sdX1 with\r
1485 FAT16 filesystem.</p></div>\r
1486 <div class="literalblock">\r
1487 <div class="content">\r
1488 <pre><tt># grml2usb --grub --grub-mbr /home/grml/grml_2009.10.iso /dev/sdX1</tt></pre>\r
1489 </div></div>\r
1490 <div class="paragraph"><p>Install specified ISO on device /dev/sdX1 and use grub as bootloader (instead of\r
1491 syslinux being the default) and install a master boot record (MBR) to the MBR of\r
1492 /dev/sdX.</p></div>\r
1493 <div class="literalblock">\r
1494 <div class="content">\r
1495 <pre><tt># grml2usb --bootoptions="lang=de ssh=mysecret" grml_2009.10.iso /dev/sdX1\r
1496 # grml2usb --bootoptions="lang=de" --bootoptions="ssh=mysecret" grml_2009.10.iso /dev/sdX1</tt></pre>\r
1497 </div></div>\r
1498 <div class="paragraph"><p>Install specified ISO on device /dev/sdX1 and use "lang=de ssh=mysecret" as\r
1499 default bootoptions.</p></div>\r
1500 <div class="literalblock">\r
1501 <div class="content">\r
1502 <pre><tt># grml2usb --remove-bootoption="vga=791" --remove-bootoption="nomce" grml_2009.10.iso /dev/sdX1</tt></pre>\r
1503 </div></div>\r
1504 <div class="paragraph"><p>Install specified ISO on device /dev/sdX1 remove vga=791 and nomce from existing bootoptions.</p></div>\r
1505 <div class="literalblock">\r
1506 <div class="content">\r
1507 <pre><tt># grml2usb --bootoptions="persistent-path=%flavour_name" grml64_2010.04.iso grml_2010.04.iso /dev/sdX1</tt></pre>\r
1508 </div></div>\r
1509 <div class="paragraph"><p>Install specified Isos on device /dev/sdx and add parameter persisten-path\r
1510 to every menu entry. %flavour_name will be expanded to the flavour of the specific\r
1511 iso, e.g. grml64 and grml.</p></div>\r
1512 </div>\r
1513 </div>\r
1514 <div class="sect1">\r
1515 <h2 id="ressources">9. Online Ressources</h2>\r
1516 <div class="sectionbody">\r
1517 <div class="paragraph"><p>Check out the <a href="http://grml.org/grml2usb/">grml2usb webpage</a> and the\r
1518 <a href="http://git.grml.org/?p=grml2usb.git">grml2usb git repository</a>.</p></div>\r
1519 </div>\r
1520 </div>\r
1521 <div class="sect1">\r
1522 <h2 id="bugs">10. Bugs</h2>\r
1523 <div class="sectionbody">\r
1524 <div class="paragraph"><p>Please report feedback, bugreports and wishes <a href="#author">to the author</a>.</p></div>\r
1525 </div>\r
1526 </div>\r
1527 <div class="sect1">\r
1528 <h2 id="author">11. Author</h2>\r
1529 <div class="sectionbody">\r
1530 <div class="paragraph"><p>Michael Prokop &lt;<a href="mailto:mika@grml.org">mika@grml.org</a>&gt;</p></div>\r
1531 </div>\r
1532 </div>\r
1533 </div>\r
1534 <div id="footnotes"><hr /></div>\r
1535 <div id="footer">\r
1536 <div id="footer-text">\r
1537 Last updated 2011-12-25 18:20:03 CET\r
1538 </div>\r
1539 </div>\r
1540 </body>\r
1541 </html>\r