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