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