Fix typo in option handling.
[grml2usb.git] / grml2usb.8.txt
1 grml2usb(8)
2 ==========
3
4 Name
5 ----
6 grml2usb - install grml ISO(s) on usb device for booting
7
8 Synopsis
9 --------
10 grml2usb [ options ] <ISO[s]> <device>
11
12 *******************************************************************************
13 Important! The grml team does not take responsibility for loss of any data!
14 *******************************************************************************
15
16 [[introduction]]
17 Introduction
18 ------------
19
20 grml2usb installs grml on a given partition of your usb device and makes it
21 bootable. It provides multi-iso support, meaning you can specify several grml
22 ISOs on the command line at once and select the grml flavour you would like to
23 boot on the bootprompt then. Note that the *first* ISO specified on the grml2usb
24 command line will become the default one (that's the one that will boot when
25 just pressing enter on the bootprompt or wait until the boot timeout matches).
26
27 [IMPORTANT]
28 By default a compatible master boot record (MBR) is installed on the device
29 (being for example /dev/sdX when executing 'grml2usb grml.iso /dev/sdX1') and
30 grub is being used as default bootloader. Avoid installation of the default MBR
31 using the '--skip-mbr' option or if you encounter any problems with the default
32 MBR consider using '--syslinux-mbr' instead.
33
34 [NOTE]
35 Whereas grml2usb is the script to install recent grml ISOs (>=2009.10) the
36 script grml2usb-compat supports older grml releases (<2009.10) as well.
37
38 [[options]]
39 Options
40 -------
41
42 The ISO[s] should be the path to one or multiple grml-ISOs and/or the path to
43 the currently running live-system (being /live/image).
44
45 The device either might be a device name like /dev/sdX1 or a directory. When
46 specifying a device name the device is mounted automatically. When specifying a
47 directory grml2usb is assuming that you did set up a bootloader on your own (or
48 don't need one) and a bootloader won't be installed automatically.
49
50 The following options are supported:
51
52   *\--bootoptions=...*::
53
54 Use specified bootoptions as default.
55
56   *\--bootloader-only*::
57
58 Do *not* copy files but instead just install a bootloader.  Note that the boot
59 addons are copied to /boot/addons at this stage as well.  If you want to skip
60 copying the boot addons consider using the --skip-addons option.
61
62   *\--copy-only*::
63
64 Copy files only but do *not* install a bootloader.
65
66   *\--dry-run*::
67
68 Avoid executing commands, instead show what would be executed.
69 Warning: please notice that the ISO has to be mounted anyway, otherwise
70 identifying the grml flavour would not be possible.
71
72   *\--fat16*::
73
74 Format specified partition with FAT16.
75 **Important:** this will destroy any existing data on the specified partition!
76
77   *\--force*::
78
79 Force any (possible dangerous) actions requiring manual interaction (like --fat16).
80
81   *\--grub-mbr*::
82
83 Install grub into MBR (Master Boot Record) instead of PBR (Partition Boot
84 Record). Check out <<mbr-vs-pbr,the 'mbr-vs-pbr' section in the FAQ of this
85 document>> for further details.
86
87   *\--help*::
88
89 Display usage information and exit.
90
91 //////////////////////////////////////////////////////////////////////////
92   *\--initrd=...*::
93
94 Install specified initrd instead of the default. You might want to specify
95 option *--kernel* as well. (Be aware when using multiboot setup.)
96 [Notice: not implemented yet.]
97 //////////////////////////////////////////////////////////////////////////
98
99 //////////////////////////////////////////////////////////////////////////
100   *\--kernel=...*::
101
102 Install specified kernel instead of the default. You might want to specify
103 option *--initrd* as well. (Be aware when using multiboot setup.)
104 [Notice: not implemented yet.]
105 //////////////////////////////////////////////////////////////////////////
106
107   *\--lilo-binary=...*::
108
109 Use specified lilo executable for installing master boot record (MBR) when using
110 the '--syslinux-mbr' option. By default any system wide (from $PATH) lilo
111 executable is taken.  If there can not be find any lilo executable the
112 statically compiled version of the grml2usb Debian package (see
113 /usr/share/grml2usb/lilo/lilo.static.[amd64|i386]) is taken.
114
115   *\--mbr-menu*::
116
117 Install master boot record (MBR) with integrated boot menu: interactively choose
118 the partition to boot from, with a timeout to load the default partition, or
119 boot from floppy. When NOT using the --mbr-menu option a MBR with LBA and large
120 disc support but without an integrated boot menu is installed (so it's not
121 visible at all but instead directly jumps to the bootloader - being grub or
122 syslinux). Note: This options is available only when using the default MBR and
123 won't have any effect if you're using the '--syslinux-mbr' option.
124
125   *\--quiet*::
126
127 Do not output anything but just errors on console.
128
129   *\--skip-addons*::
130
131 Do not install /boot/addons/ files (like dos, grub, memdisk,...).
132
133   *\--remove-bootoption=...*::
134
135 Remove specified bootoption (could be a regex) from existing boot options. Use
136 multiple entries for removing different bootoptions at once. (Note: this option
137 is not support in grml2usb-compat.)
138
139   *\--skip-grub-config*::
140
141 Skip generation of grub configuration files. By default the configuration
142 files for syslinux *and* grub will be written so you've a working configuration
143 file no matter whether you're using grub or syslinux as bootloader.
144
145   *\--skip-mbr*::
146
147 Do not touch/install the master boot record (MBR).
148
149   *\--skip-syslinux-config*::
150
151 Skip generation of syslinux configuration files. By default the configuration
152 files for syslinux *and* grub will be written so you've a working configuration
153 file no matter whether you're using grub or syslinux as bootloader.
154
155   *\--syslinux*::
156
157 This option is deprecated and is being left only for backwards compatibility
158 reasons. Syslinux is the default bootloader of grml2usb and therefore the
159 '--syslinux' option doesn't have any effects. If you do not want to use syslinux
160 as bootloader consider using the '--grub' option.
161
162   *\--syslinux-mbr*::
163
164 Install syslinux' master boot record (MBR, which is booting from the partition
165 with the "active" flag set) instead of the default one.  If you encounter any
166 problems with the default MBR you can try using the syslinux MBR instead. If
167 that works for you please <<author,let us know>> so we can adjust our default
168 MBR accordingly. Note: When using the '--syslinux-mbr' option lilo is executed
169 before the MBR is installed so the according partitions are set active.
170
171 //////////////////////////////////////////////////////////////////////////
172   *\--squashfs=*::
173
174 Install specified squashfs file instead of the default.
175 [Notice: not implemented yet.]
176 //////////////////////////////////////////////////////////////////////////
177
178 //////////////////////////////////////////////////////////////////////////
179   *\--uninstall*::
180
181 Uninstall grml ISO files.
182 [Notice: not implemented yet.]
183 //////////////////////////////////////////////////////////////////////////
184
185   *-v*, *\--version*::
186
187 Return version and exit.
188
189   *\--verbose*::
190
191 Enable verbose mode.
192
193 Developers Corner
194 -----------------
195
196 [[directory-layout]]
197 Directory layout on usb device
198 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
199
200   boot/ ->
201     |-- addons/
202     |   |-- allinone.img     [grub - all in one image]
203     |   |-- bsd4grml/        [MirBSD]
204     |   |-- balder10.imz     [FreeDOS]
205     |   |-- memdisk          [chainloading helper]
206     |   |-- memtest          [memtest86+]
207     |-- release/
208     |   |-- grml/
209     |   |   |-- linux26      [Kernel]
210     |   |   |-- initrd.gz    [initramfs]
211     |   |-- grml64
212     |   |   |-- linux26      [Kernel]
213     |   |   |-- initrd.gz    [initramfs]
214     |   |-- grml-medium
215     |   |   |-- linux26      [...]
216     |   |   |-- initrd.gz
217     |   |-- grml64-medium
218     |   |   |-- linux26
219     |   |   |-- initrd.gz
220     |   |-- grml-small
221     |   |   |-- linux26
222     |   |   |-- initrd.gz
223     |   `-- grml64-small
224     |       |-- linux26
225     |       |-- initrd.gz
226     |-- grub/
227     |   |-- grml.png         [graphical bootsplash background image for grub2]
228     |   |-- grub.cfg         [configuration file for grub2]
229     |   |-- menu.lst         [configuration file for grub1]
230     |   |-- splash.xpm.gz    [splash screen for grub1]
231     `-- syslinux/
232         |-- grml.png         [graphical bootsplash background image for syslinux]
233         |-- syslinux.cfg     [main configuration file for syslinux]
234         `-- [....]           [several further config files for syslinux]
235
236   grml/
237     |-- grml2usb.txt         [not yet implemented]
238     |-- grml-cheatcodes.txt  [list of bootoptions for grml]
239     |-- grml-version.txt     [file containing information about grml-version]
240     |-- LICENSE.txt          [license information]
241     |-- md5sums              [md5sums of original ISO]
242     |-- README.txt           [informational text]
243     `-- web/                 [browser related files]
244         |-- index.html
245         |-- style.css
246         `-- images/
247             |-- button.png
248             |-- favicon.png
249             |-- linux.jpg
250             `-- logo.png
251
252   live/
253     |-- grml/
254     |   |-- filesystem.module    [module specifying which squashfs should be used for grml]
255     |   `-- grml.squashfs        [squashfs file for grml]
256     |-- grml-medium/
257     |   |-- filesystem.module    [module specifying which squashfs should be used for grml-medium]
258     |   `-- grml-medium.squashfs [squashfs file for grml-medium]
259     |-- grml-small/
260     |   |-- filesystem.module    [module specifying which squashfs should be used for grml-medium]
261     |   `-- grml-small.squashfs  [squashfs file for grml-small]
262     `-- ...
263
264 [[source]]
265 Grabbing the source
266 ~~~~~~~~~~~~~~~~~~~
267
268   % git clone git://git.grml.org/grml2usb.git
269
270 [[debugging]]
271 Developers Debugging Hints
272 ~~~~~~~~~~~~~~~~~~~~~~~~~~
273
274 To play with grml2usb you can avoid using a real device via a loopback file
275 setup, like:
276
277   # dd if=/dev/zero of=~/loopback bs=1M count=100 # adjust size to your needs
278   # losetup /dev/loop1 ~/loopback
279
280 Then create according partitions either running for example:
281
282   # echo -en "n\np\n1\n\n\nt\n6\na\n1\n w\n" | fdisk /dev/loop1
283
284 or:
285
286   # parted /dev/loop1 -s "mkpart primary fat16 0 -1s mkfs 1 fat16"
287
288 Finally create a filesystem and execute grml2usb as needed:
289
290   # mkfs.vfat /dev/loop1
291   # grml2usb --bootloader-only /grml/isos/grml-small_2009.10.iso /dev/loop1
292
293 [[performance-tracing]]
294 Performance tracing
295 ~~~~~~~~~~~~~~~~~~~
296
297   # blktrace -d /dev/sdX -o - | blkparse -i -
298   # grml2usb grml_2009.10.iso /dev/sdX1
299
300 [[troubleshooting]]
301 Troubleshooting and Pitfalls when booting
302 -----------------------------------------
303
304 Here is a list of common error messages from BIOS/bootloader when trying to boot
305 from USB.
306
307 ///////////////////////////////////////////////////////////
308 TODO: better list type for the error message / reason part?
309 See http://www.methods.co.nz/asciidoc/userguide.html
310 ///////////////////////////////////////////////////////////
311
312 [horizontal]
313 *Error message*:: ran out of input data. System halted
314
315 *Reason*:: Everything OK, except for the filesystem used on your usb device. So
316 instead of fat16 you are using for example fat32. Fix: use the appropriate
317 filesystem (fat16 for usb pens usually). The Bootsplash might be displayed, the
318 kernel loads but you very soon get the error message.
319
320 *Error message*:: Invalid operating system
321
322 *Reason*:: the partition layout is not ok. Very probably there's no primary
323   partition (/dev/sdX{1..4}) or none has the flag 'bootable' set.
324
325 *Error message*:: Boot error.
326
327 *Reason*:: Some BIOSses offer different modes for USB booting. The proper mode
328 to boot a USB stick is USB-HDD. If that doesn’t work or is not supported by your
329 system, you need to format your USB-Stick as USB-ZIP.  To do this, syslinux
330 contains an utility called mkdiskimage, which you can use to re-format your USB
331 stick in USB-ZIP format running 'mkdiskimage -4 /dev/sdX 1 64 32'. Please be
332 aware that this procedure will erase all data on your stick.  After executing
333 mkdiskimage just continue installing as usual (grml2usb ...  /dev/sdX4). Note
334 that this is not going to work for any device larger than 8 GB, since
335 mkdiskimage only supports 1024c 256h 63s. For a more detailed explanation, refer
336 to /usr/share/doc/syslinux-common/usbkey.txt.
337
338 *Error message*:: No operating system found.
339
340 *Reason*:: you forgot to set the boot-flag on the partition. Or there really isn't
341 any operating system at all. :)
342
343 *Error message*:: kernel-panic: unable to mount root-fs...
344
345 *Reason*:: Kernel boots but fails to find the root filesystem. The root=
346 argument in your kernel commandline is pointing to the wrong device. Adjust
347 root=..., consider using root=UUID=....
348
349 *Error message*::  Could not find kernel image: ...
350
351 *Reason*:: either a broken isolinux/syslinux version or a broken BIOS. Check out
352 whether the vendor provides a BIOS update or if using bootloader grub instead of
353 isolinux/syslinux fixes the problem.
354
355 [[faq]]
356 Frequently Asked Questions (FAQ)
357 --------------------------------
358
359 [[download]]
360 Where can I get grml2usb?
361 ~~~~~~~~~~~~~~~~~~~~~~~~~
362
363 grml2usb is available as Debian package via link:http://deb.grml.org/[the
364 grml-testing Debian repository].
365
366 If you do not want to (or can't) use the grml2usb Debian package you can either
367 use the grml2usb git tree running:
368
369   git clone git://git.grml.org/grml2usb.git
370   cd grml2usb
371   make -C mbr
372   sudo ./grml2usb ...
373
374 or download the provided
375 link:http://grml.org/grml2usb/grml2usb.tgz[http://grml.org/grml2usb/grml2usb.tgz]
376 (link:http://grml.org/grml2usb/grml2usb.tgz.md5.asc[gpg signed md5 hash]).
377 Download and extract the tarball and execute the provided script 'install.sh'.
378
379 [NOTE]
380 It is *NOT* enough to have just the grml2usb script itself without the according
381 files provided either via the Debian package, the git tree or the file
382 grml2usb.tgz.
383
384 [[grml2hd-vs-grml2usb]]
385 What's the difference between grml2hd and grml2usb?
386 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
387
388 grml2hd installs a running grml system to a harddisk. When rebooting the
389 harddisk installation can be modified and changes will find their way to the
390 harddisk immediately.  grml2usb copies just the compressed chroot filesystem
391 (being the squashfs file), some further informational files and a bootloader to
392 your device. This way you don't need as much space as with a harddisk
393 installation (just a USB device with >=ISO size) and when rebooting the system
394 your changes will be lost (unless you are using the persistency feature, see
395 link:http://wiki.grml.org/doku.php?id=persistency[http://wiki.grml.org/doku.php?id=persistency]).
396 Think of using a better CD version: booting is (usually) faster, you don't need
397 to burn a new CD when a new ISO version arrives (just install the new ISO using
398 grml2usb) and you can carry additional files on a writable medium with yourself.
399
400 [[dd]]
401 Why can't I just dd the ISO to a USB device?
402 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
403
404 Well, you can. :) Starting with grml 2009.10 the ISOs are dd-able straight out-of-the-box.
405
406 [IMPORTANT]
407 Note that ANY existing data on your USB device will be destroyed when
408 using the dd approach.
409
410 ///////////////////////////////////////////////////////////////////////////////////////////////////
411 Grab a recent grml ISO and use
412 link:http://syslinux.zytor.com/wiki/index.php/Doc/isolinux#HYBRID_CD-ROM.2FHARD_DISK_MODE[isohybrid
413 from the syslinux project]:
414
415   % isohybrid grml_2009.10.iso
416 ///////////////////////////////////////////////////////////////////////////////////////////////////
417
418 This allows you to dd the Grml ISO to your USB device (use for example
419 link:http://www.chrysocome.net/rawwrite[rawwrite] if you've just a Windows
420 system available) running:
421
422   % dd if=grml_2009.10.iso of=/dev/sdX
423
424 where /dev/sdX is your USB device. Of course this doesn't provide such a
425 flexible system like with grml2usb (no multi-ISO setup, no additional default
426 bootoptions,...) but it's a nice way to get a working USB boot setup if you
427 don't have grml2usb available.
428
429 [[grml2usb-vs-dd]]
430 What's the difference between grml2usb and just using dd?
431 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
432
433 grml2usb does not remove any data from your USB device and does not alter the
434 partition table at all. grml2usb provides multi-ISO support, support for adding
435 default bootoptions and selecting the bootloader (syslinux vs. grub) without
436 having to manually touch the ISO at all.
437
438 [[grml2iso]]
439 What's grml2iso?
440 ~~~~~~~~~~~~~~~~
441
442 grml2iso is a script which uses grml2usb to generate a multiboot ISO out of
443 several grml ISOs. See 'man grml2iso' for further details.
444
445 [[grml2usb-compat]]
446 grml2usb fails with "Fatal: file default.cfg could not be found."
447 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
448
449 If you are trying to install an older grml ISO (older than grml 2009.10) with a
450 recent version of grml2usb then you might notice:
451
452   Fatal: file default.cfg could not be found.
453   Note:  this grml2usb version requires an ISO generated by grml-live >=0.9.24 ...
454          ... either use grml releases >=2009.10 or switch to an older grml2usb version.
455          Please visit http://grml.org/grml2usb/#grml2usb-compat for further information
456   Fatal: a critical error happend during execution (not a grml ISO?), giving up
457
458 Breaking the backward compatibility was necessary to avoid maintainability hell.
459 If you want to install older grml ISOs please use the grml2usb-compat script
460 which provides support for older releases.
461
462 [[menu-lst]]
463 Why is there a menu.lst and a grub.cfg inside /boot/grub/?
464 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
465
466 grml2usb supports grub version 1 (grub1) as well as grub version 2 (grub2).
467 Whereas grub1 uses menu.lst the new version grub2 needs grub.cfg.
468 Providing both files allows grml2usb to install grub on the target device
469 no matter which grub version is available on the host where grml2usb is
470 executed on.
471
472 [[stage1]]
473 grub-install fails with 'The file ../boot/grub/stage1 not read correctly"?!
474 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
475
476 Check whether the partition has the right partition type. For example do NOT use
477 FAT16 (partition type 6) when using a ext3 filesystem on the partition but
478 instead use the correct partition type ('83' - Linux) then.
479
480 [[grub-install-xfs_freeze]]
481 grub-install complains about /sbin/grub-install and/or xfs_freeze?!
482 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
483
484 The following message:
485
486   You shouldn't call /sbin/grub-install. Please call /usr/sbin/grub-install instead!
487   xfs_freeze: specified file ["/tmp/tmpqaBK6z/boot/grub"] is not on an XFS filesystem
488
489 This is "normal". grub-install sends those messages to stderr. To avoid hiding any
490 possible real error messages grml2usb doesn't ignore those messages.
491
492 [[device-map]]
493 grub-install complains about /boot/grub/device.map?!
494 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
495
496 The following message:
497
498   grub-probe: error: Cannot open `/boot/grub/device.map'
499
500 This is "normal" (at least with grub1). This isn't a problem, because the
501 device.map file will be generated on the target device anyway.
502
503 [[unary-operator]]
504 grub-install complains about a unary operator?!
505 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
506
507 The following message:
508
509   '/usr/sbin/grub-install: line 374: [: =: unary operator expected'
510
511 This is "normal". Just ignore it. (It usually doesn't appear
512 on the second invocation on the same device.)
513
514 [[unknown-filesystem]]
515 grub-install fails with grub-probe: error: unknown filesystem?!
516 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
517
518 The following message:
519
520   grub-probe: error: unknown filesystem
521   Auto-detection of a filesystem module failed.
522   Please specify the module with the option `--modules' explicitly.
523
524 usually means that the device partition table says something else than the
525 filesystem on the device. For example using FAT16 as filesystem type and
526 using FAT32 as filesystem on the partition will not work. Either set filesystem
527 type to FAT32 or format the partition using FAT16. It is essential that
528 device partition table and filesystem use the same filesystem type.
529
530 [[mbr-vs-pbr]]
531 grub-setup fails after Attempting to install GRUB to a partition instead of the MBR?!
532 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
533
534 The following message:
535
536   grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR.  This is a BAD idea.
537   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.
538   grub-setup: error: Cannot read `/grub/core.img' correctly
539
540 appears when using grub2 versions older than 1.98 as those version introduced a
541 regression which avoids that grub is being installed into a partition (PBR,
542 Partition Boot Record) instead of MBR (Master Boot Record).
543
544 To work around this issue you can either 1) upgrade to grub versions >=1.98, 2)
545 install grub into the MBR (Master Boot Record) using the '--grub-mbr' option of
546 grml2usb or 3) switch to syslinux as bootmanager (just drop the '--grub'
547 option).
548
549 [[splash-xpm]]
550 I'm getting something like "Error: /usr/share/grml2usb/grub/splash.xpm.gz can not be read"!?
551 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
552
553 Looks like you've only the grml2usb script itself available. Please make sure
554 you've the grml2usb Debian package installed. The most resent stable version is
555 available via link:http://deb.grml.org/[the grml-testing Debian repository].  If
556 you do not have a Debian system please see section <<download,Where can I get
557 grml2usb?>> in this FAQ.
558
559 [[fat16]]
560 Why do I have to use a FAT16/FAT32 filesystem?
561 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
562
563 Syslinux (currently) does not support any other filesystems besides FAT16/FAT32
564 (though that's a sane default if you want to share your files with other
565 (operating) systems). If you want to use a different filesystem (like ext2/3)
566 use the bootloader grub instead using grml2usb's '--grub' option.
567
568 [NOTE]
569 FAT32 is supported since syslinux version 3.0.
570
571 [[cool-idea]]
572 I think I've got a really cool idea!
573 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
574
575 Great! Please check out
576 link:http://git.grml.org/?p=grml2usb.git;a=blob;f=TODO;hb=HEAD[the TODO file].
577 Feel free to <<author,report your wishes to the author>>. Patches highly
578 appreciated.
579
580 [[booting-from-usb]]
581 I've problems with booting from USB.
582 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
583
584 Check out <<troubleshooting,Troubleshooting and Pitfalls when booting>>.
585
586 [[found-a-bug]]
587 I've found a bug!
588 ~~~~~~~~~~~~~~~~~
589
590 Please <<author,report it to the author>>. Please provide usage examples and output
591 of your grml2usb commandline (consider using the "\--verbose" option).
592
593 [[usage-examples]]
594 Usage examples
595 --------------
596
597   # grml2usb /home/grml/grml_2009.10.iso /dev/sdX1
598
599 Install specified ISO on device /dev/sdX1.
600
601   # grml2usb /home/grml/grml_2009.10.iso /home/grml/grml_small_2009.10.iso /dev/sdX1
602
603 Install specified ISOs on device /dev/sdX1 for multibooting ISOs.
604
605   # grml2usb /live/image /dev/sdX1
606
607 Install currently running grml live system on device /dev/sdX1.
608
609   # grml2usb /live/image /home/grml/grml_2009.10.iso /dev/sdX1
610
611 Install currently running grml live system and the specified
612 ISO on device /dev/sdX1 for multibooting.
613
614   # grml2usb --fat16 /home/grml/grml_2009.10.iso /dev/sdX1
615
616 Install specified ISO on device /dev/sdX1 and format partition /dev/sdX1 with
617 FAT16 filesystem.
618
619   # grml2usb --grub --grub-mbr /home/grml/grml_2009.10.iso /dev/sdX1
620
621 Install specified ISO on device /dev/sdX1 and use grub as bootloader (instead of
622 syslinux being the default) and install a master boot record (MBR) to the MBR of
623 /dev/sdX.
624
625   # grml2usb-compat /home/grml/grml_2009.05.iso /dev/sdX1
626
627 Install older grml ISO on device /dev/sdX1.
628
629 ///////////////////////////////////////////////////////////////////////////////////////
630   # grml2usb --kernel=/boot/vmlinuz-2.6.28-grml --initrd=/boot/initrd.img-2.6.28-grml \
631              /home/grml/grml_2009.10.iso /dev/sdX1
632
633 Install specified ISO on device /dev/sdX1 but use given kernel and initrd
634 instead of the ones provided by the ISO.
635
636   # grml2usb --squashfs=/grml/grml-live/grml_cd/live/grml.squashfs \
637              /home/grml/grml_2009.10.iso /dev/sdX1
638
639 Install specified ISO on device /dev/sdX1 but use given squashfs
640 file instead of the one provided by the ISO.
641 ///////////////////////////////////////////////////////////////////////////////////////
642
643   # grml2usb --bootoptions="lang=de ssh=mysecret" grml_2009.10.iso /dev/sdX1
644
645 Install specified ISO on device /dev/sdX1 and use "lang=de ssh=mysecret" as
646 default bootoptions.
647
648
649   # grml2usb --remove-bootoption="vga=791" --remove-bootoption="quiet" grml_2009.10.iso /dev/sdX1
650
651 Install specified ISO on device /dev/sdX1 remove vga=791 and quiet from existing bootoptions.
652
653 [[ressources]]
654 Online Ressources
655 -----------------
656
657 Check out the link:http://grml.org/grml2usb/[grml2usb webpage] and the
658 link:http://git.grml.org/?p=grml2usb.git[grml2usb git repository].
659
660 [[bugs]]
661 Bugs
662 ----
663 Please report feedback, bugreports and wishes <<author,to the author>>.
664
665 [[author]]
666 Author
667 ------
668 Michael Prokop <mika@grml.org>
669
670 /////////////////////////////////////////////////////////////////
671 http://wiki.grml.org/doku.php?id=tips#multiboot_usb_pen
672 http://www.startx.ro/sugar/isotostick.sh
673 https://help.ubuntu.com/community/Installation/FromUSBStick
674 http://unetbootin.sourceforge.net/
675 http://www.tux.org/pub/people/kent-robotti/looplinux/rip/mkusb.sh
676 https://fedorahosted.org/liveusb-creator/
677 /////////////////////////////////////////////////////////////////