GRML2USB(8)
π GRML2USB β the grml2usb(8) manual, but make it make sense π
okay bestie, sit down, hydrate, because we're about to install Grml on a USB stick and it's gonna be so good. this is the grml2usb page from section 8 of the manual, and I'm translating the whole thing for you. no details skipped, fr fr. π«Ά
β¨ NAME β¨
grml2usb β install Grml ISO(s) on USB device for booting π¦
πΈ SYNOPSIS πΈ
grml2usb [ options ] <ISO[s]> <device>
okay so, real talk, the Grml team does not take responsibility for loss of any data. so like. back up your stuff. I'm begging. π
π INTRODUCTION π
grml2usb installs Grml on a given partition of your USB device and makes it bootable. it's giving main character USB stick.
it also does multiboot ISO support, which lowkey slay: you can hand it several Grml ISOs on the command line all at once, and then at the bootprompt you get to pick which Grml flavour you wanna boot. iconic.
one thing though β the first ISO you list on the grml2usb command line becomes the default one. so that's the one that boots when you just hit enter at the bootprompt, or when you let the boot timeout run out. β
π important!! by default a compatible master boot record (MBR) gets installed on the device (that's like/dev/sdXwhen you rungrml2usb grml.iso /dev/sdX1), andsyslinuxis used as the default bootloader. want none of that? use the--skip-mbroption to avoid installing the default MBR. or, if you're running into problems with the default MBR, consider--syslinux-mbrinstead. π§
π OPTIONS π
ISO[s] should be the path to one or multiple grml-ISOs and/or the path to the currently running live-system (being /run/live/medium).
the device either might be a device name like /dev/sdX1 or a directory. here's the vibe:
- if you give it a device name, the device gets mounted automatically.
- if you give it a directory,
grml2usbassumes you set up a bootloader on your own (or don't need one), and a bootloader won't be installed automatically.
the following options are supported:
--bootoptions=...β use the specified bootoptions as default. and bestie, if you wanna use the flavour name as an argument for a boot parameter, use%flavourβ it expands to the flavour name. want multiple bootoptions? just specify this option multiple times. π--bootloader-onlyβ don't copy files, just install a bootloader. note that the boot addons still get copied to/boot/addonsat this stage. if you'd rather skip copying the boot addons too, consider the--skip-addonsoption.--copy-onlyβ copy files only but do not install a bootloader.--dry-runβ avoid executing commands, instead show what would be executed. warning bestie: the ISO has to be mounted anyway, otherwise identifying the Grml flavour wouldn't be possible. π--formatβ format the specified partition with FAT. important: this will destroy any existing data on the specified partition!! like, gone-gone. π--forceβ force any (possible dangerous) actions requiring manual interaction (like--format).--grubβ install grub bootloader instead of (default) syslinux.--grub-mbrβ install grub into MBR (Master Boot Record) instead of PBR (Partition Boot Record). check out the mbr-vs-pbr section in the FAQ of this document for further details.--helpβ display usage information and exit. π«Ά--mbr-menuβ install master boot record (MBR) with integrated boot menu: interactively choose the partition to boot from, with a timeout to load the default partition, or boot from floppy. when you're NOT using the--mbr-menuoption, an MBR with LBA and large disc support but without an integrated boot menu gets installed (so it's not visible at all but instead directly jumps to the bootloader β being grub or syslinux). note: this option is available only when using the default MBR and won't have any effect if you're using the--syslinux-mbroption.--quietβ do not output anything but just errors on console. silence is golden, as they say. π€«--skip-addonsβ do not install/boot/addons/files (like dos, grub, memdisk,...).--remove-bootoption=...β remove the specified bootoption (could be a regex) from existing boot options. use multiple entries to remove different bootoptions all at once.--skip-bootflagβ do not check for presence of boot flag on target device.--skip-grub-configβ skip generation of grub configuration files. by default the configuration files for syslinux and grub will be written, so you've got a working configuration file no matter whether you're using grub or syslinux as bootloader. π«--skip-mbrβ do not touch/install the master boot record (MBR).--skip-syslinux-configβ skip generation of syslinux configuration files. by default the configuration files for syslinux and grub will be written, so you've got a working configuration file no matter whether you're using grub or syslinux as bootloader. β¨--skip-usb-checkβ skip the check that verifies whether the given device is a removable device. some USB devices are known to report wrong information β when you're using such a device you can skip grml2usb's removable device check. π--syslinuxβ this option is deprecated and is being left only for backwards compatibility reasons. syslinux is the default bootloader ofgrml2usband therefore the--syslinuxoption doesn't have any effects. if you do not want to use syslinux as bootloader, consider using the--gruboption.--syslinux-mbrβ install syslinux' master boot record (MBR, which is booting from the partition with the "active" flag set) instead of the default one. if you encounter any problems with the default MBR you can try using the syslinux MBR instead. and if that works for you, please let us know so we can adjust our default MBR accordingly. π«Ά-v,--versionβ return version and exit.--verboseβ enable verbose mode. give me ALL the output bestie. π₯
π οΈ DEVELOPERS CORNER π οΈ
π Directory layout on USB device π
boot/ ->
|-- addons/
| |-- ... [as provided on ISO]
|-- release/
| |-- grml/
| | |-- vmlinuz [Kernel]
| | |-- initrd.gz [initramfs]
| |-- grml64
| | |-- vmlinuz [Kernel]
| | |-- initrd.gz [initramfs]
| |-- grml-small
| | |-- vmlinuz
| | |-- initrd.gz
| `-- grml64-small
| |-- vmlinuz
| |-- initrd.gz
|-- grub/
| |-- grml.png [graphical bootsplash background image for grub2]
| |-- grub.cfg [configuration file for grub2]
`-- syslinux/
|-- grml.png [graphical bootsplash background image for syslinux]
|-- syslinux.cfg [main configuration file for syslinux]
`-- [....] [several further config files for syslinux]
grml/
|-- grml2usb.txt [not yet implemented]
|-- grml-cheatcodes.txt [list of bootoptions for Grml]
|-- grml-version.txt [file containing information about grml-version]
|-- LICENSE.txt [license information]
|-- md5sums [md5sums of original ISO]
|-- README.txt [informational text]
`-- web/ [browser related files]
|-- index.html
|-- style.css
`-- images/
|-- button.png
|-- favicon.png
|-- linux.jpg
`-- logo.png
live/
|-- grml/
| |-- filesystem.module [module specifying which squashfs should be used for grml]
| `-- grml.squashfs [squashfs file for grml]
|-- grml-small/
| |-- filesystem.module [module specifying which squashfs should be used for grml-small]
| `-- grml-small.squashfs [squashfs file for grml-small]
`-- ...
π Grabbing the source π
% git clone https://github.com/grml/grml2usb.git
π Developers Debugging Hints π
to play with grml2usb you can avoid using a real device via a loopback file setup, like:
# dd if=/dev/zero of=~/loopback bs=1M count=100 # adjust size to your needs
# losetup /dev/loop1 ~/loopback
then create according partitions either running for example:
# echo -en "n\np\n1\n\n\nt\n6\na\n1\n w\n" | fdisk /dev/loop1
or:
# parted /dev/loop1 -s "mkpart primary fat32 0 -1s mkfs 1 fat32"
finally create a filesystem and execute grml2usb as needed:
# mkfs.vfat /dev/loop1
# grml2usb --bootloader-only /grml/isos/grml-full-2025.08-amd64.iso /dev/loop1
π Performance tracing π
# blktrace -d /dev/sdX -o - | blkparse -i -
# grml2usb grml-full-2025.08-amd64.iso /dev/sdX1
π§ TROUBLESHOOTING AND PITFALLS WHEN BOOTING π§
okay bestie, vibe check time π here's the whole lineup of error messages your BIOS/bootloader might hit you with when you're trying to boot from USB. Find yours, fix yours, move on with your life β¨
ran out of input data. + System halted
shows up like this:
ran out of input data.
System halted
the tea β: literally everything is fine, except the filesystem on your USB device. So instead of fat16 you went and used, say, fat32. the fix: use the appropriate filesystem (for a USB flash drive that's usually fat16). Sneaky detail: the bootsplash might actually display, the kernel loads... and then you get the error message really soon after. Rude, honestly π
Invalid operating system
the tea β: your partition layout is not it. Lowkey most likely there's no primary partition (/dev/sdX{1..4}) at all, or none of them has the bootable flag set. π«
Boot error.
the tea β: some BIOSes offer different modes for USB booting, and the proper mode for booting a USB stick is USB-HDD. If that doesn't work, or your system doesn't support it, you need to format your USB-Stick as USB-ZIP. To do that, syslinux ships a utility called mkdiskimage, which you can use to re-format your USB stick in USB-ZIP format by running:
mkdiskimage -4 /dev/sdX 1 64 32
β οΈ please be aware that this procedure will erase all data on your stick. rip π
After running mkdiskimage just continue installing as usual:
grml2usb ... /dev/sdX4
Note that this is not going to work for any device larger than 8 GB, since mkdiskimage only supports 1024c 256h 63s. For a more detailed explanation, refer to /usr/share/doc/syslinux-common/usbkey.txt. π
No operating system found.
the tea β: you forgot to set the boot-flag on the partition. Or there really isn't any operating system at all. :) π
kernel-panic: unable to mount root-fs...
the tea β: the kernel boots but fails to find the root filesystem. Your root= argument in the kernel commandline is pointing at the wrong device. Adjust root=..., and consider using root=UUID=.... π‘
Could not find kernel image: ...
the tea β: either a broken isolinux/syslinux version or a broken BIOS. Check out whether the vendor provides a BIOS update, or whether using bootloader grub instead of isolinux/syslinux fixes the problem. π§
πΈ FREQUENTLY ASKED QUESTIONS (FAQ) πΈ
Where can I get grml2usb?
grml2usb is available as a Debian package via the grml-testing Debian repository[1] β¨
If you do not want to (or can't) use the grml2usb Debian package, you can either use the grml2usb git tree by running:
git clone https://github.com/grml/grml2usb.git
cd grml2usb
sudo ./grml2usb ...
π Note: it is NOT enough to have just the grml2usb script itself without the according files provided either via the Debian package or the git tree. it's giving "script without its friends" energy π
Why can't I just dd the ISO to a USB device?
Well... you can. :) Starting with Grml 2009.10 the ISOs are dd-able straight out-of-the-box. π
β οΈ Important: note that ANY existing data on your USB device will be destroyed when using the dd approach. gone. obliterated. no take-backs π«Ά
This allows you to dd the Grml ISO to your USB device (use for example rawwrite[2] if you've just a Windows system available) by running:
% dd if=grml-full-2025.08-amd64.iso of=/dev/sdX
where /dev/sdX is your USB device. Of course this doesn't provide such a flexible system like with grml2usb (no multi-ISO setup, no additional default bootoptions, ...) but it's a nice way to get a working USB boot setup if you don't have grml2usb available. πββοΈ
What's the difference between grml2usb and just using dd?
grml2usb does not remove any data from your USB device and does not alter the partition table at all. grml2usb provides multi-ISO support, support for adding default bootoptions and selecting the bootloader (syslinux vs. grub) without having to manually touch the ISO at all. main character behavior, honestly π
What's grml2iso?
grml2iso is a script which uses grml2usb to generate a multiboot ISO out of several Grml ISOs. See man grml2iso for further details. π₯
grub-install complains about /sbin/grub-install and/or xfs_freeze?!
The following message:
You shouldn't call /sbin/grub-install. Please call /usr/sbin/grub-install instead!
xfs_freeze: specified file ["/tmp/tmpqaBK6z/boot/grub"] is not on an XFS filesystem
This is "normal". grub-install sends those messages to stderr. To avoid hiding any possible real error messages, grml2usb doesn't ignore those messages. π€
grub-install complains about a unary operator?!
The following message:
'/usr/sbin/grub-install: line 374: [: =: unary operator expected'
This is "normal". Just ignore it. (It usually doesn't appear on the second invocation on the same device.) π
grub-install fails with grub-probe: error: unknown filesystem?!
The following message:
grub-probe: error: unknown filesystem
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.
usually means that the device partition table says something else than the filesystem on the device. For example, using FAT16 as filesystem type and using FAT32 as filesystem on the partition will not work. Either set the filesystem type to FAT32 or format the partition using FAT16. It is essential that device partition table and filesystem use the same filesystem type β they gotta match, bestie, it's a whole relationship π
grub-setup fails after "Attempting to install GRUB to a partition instead of the MBR"?!
The following message:
grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea.
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.
grub-setup: error: Cannot read `/grub/core.img' correctly
appears when using grub2 versions older than 1.98, as those versions introduced a regression which avoids that grub is being installed into a partition (PBR, Partition Boot Record) instead of MBR (Master Boot Record). π«
To work around this issue you can either:
- upgrade to grub versions
>=1.98, - install grub into the MBR (Master Boot Record) using the
--grub-mbroption ofgrml2usb, or - switch to
syslinuxas bootmanager (just drop the--gruboption).
I'm getting something like Error: /usr/share/grml2usb/grub/splash.xpm.gz can not be read"!?
Looks like you've only got the grml2usb script itself available. Please make sure you've the grml2usb Debian package installed. The most recent stable version is available via the grml-testing Debian repository[1]. If you do not have a Debian system, please see section Where can I get grml2usb? in this FAQ. π
Why do I have to use a FAT16/FAT32 filesystem?
Syslinux (currently) does not support any other filesystems besides FAT16/FAT32 (though that's a sane default if you want to share your files with other (operating) systems). If you want to use a different filesystem (like ext2/3) use the bootloader grub instead, using grml2usb's --grub option. π
I think I've got a really cool idea!
Great! Please check out the TODO file[3]. Feel free to report your wishes to the author. Patches highly appreciated. π«Ά
I've problems with booting from USB.
Check out Troubleshooting and Pitfalls when booting. β¬οΈ
I've found a bug!
Please report it to the author. Please provide usage examples and output of your grml2usb commandline (consider using the "--verbose" option). π
π USAGE EXAMPLES π
# grml2usb /home/grml/grml-full-2025.08-amd64.iso /dev/sdX1
Install specified ISO on device /dev/sdX1. β¨
# grml2usb /home/grml/grml-full-2025.08-amd64.iso /home/grml/grml-full-2025.08-arm64.iso /dev/sdX1
Install specified ISOs on device /dev/sdX1 for multibooting ISOs. π₯
# grml2usb /run/live/medium /dev/sdX1
Install currently running Grml live system on device /dev/sdX1. πΈ
# grml2usb /run/live/medium /home/grml/grml-full-2025.08-amd64.iso /dev/sdX1
Install currently running Grml live system and the specified ISO on device /dev/sdX1 for multibooting. π«
# grml2usb --format /home/grml/grml-full-2025.08-amd64.iso /dev/sdX1
Install specified ISO on device /dev/sdX1 and format partition /dev/sdX1 with FAT filesystem. π§Ό
# grml2usb --grub --grub-mbr /home/grml/grml-full-2025.08-amd64.iso /dev/sdX1
Install specified ISO on device /dev/sdX1 and use grub as bootloader (instead of syslinux being the default) and install a master boot record (MBR) to the MBR of /dev/sdX. π
# grml2usb --bootoptions="lang=de ssh=mysecret" grml-full-2025.08-amd64.iso /dev/sdX1
# grml2usb --bootoptions="lang=de" --bootoptions="ssh=mysecret" grml-full-2025.08-amd64.iso /dev/sdX1
Install specified ISO on device /dev/sdX1 and use "lang=de ssh=mysecret" as default bootoptions. π¬
# grml2usb --remove-bootoption="vga=791" --remove-bootoption="nomce" grml-full-2025.08-amd64.iso /dev/sdX1
Install specified ISO on device /dev/sdX1 remove vga=791 and nomce from existing bootoptions. βοΈ
# grml2usb --bootoptions="persistent-path=%flavour_name" grml-full-2025.08-amd64.iso grml-full-2025.08-arm64.iso /dev/sdX1
Install specified ISOs on device /dev/sdx and add parameter persistent-path to every menu entry. %flavour_name will be expanded to the flavour of the specific iso, e.g. grml64 and grml. π¦
π ONLINE RESOURCES π
Check out the grml2usb webpage[4], the grml2usb git repository[5] and the wiki for persistency[6]. go click, bestie π
π BUGS π
Please report feedback, bugreports and wishes to the author.
π AUTHOR π
Michael Prokop <mika@grml.org>[7]
β¨ NOTES β¨
okay bestie, here's the receipts folder π every single one of these is linked from the manpage, so if you wanna go deeper, this is your lil treasure map πΊοΈπ
- the grml-testing Debian repository β
https://deb.grml.org/ - rawwrite β
http://www.chrysocome.net/rawwrite - the TODO file β
https://github.com/grml/grml2usb/blob/master/TODO - grml2usb webpage β
https://grml.org/grml2usb/ - grml2usb git repository β
https://github.com/grml/grml2usb - persistency β
https://github.com/grml/grml/wiki/persistency mika@grml.orgβmailto:mika@grml.org
and that's the whole page, bestie π you made it to the end, slay fr fr π
oh and before you go β this whole thing is the GRML2USB(8) manual, and it's dated 05/20/2026 at the bottom, just so you know exactly which version of the vibe you're reading πΈ she's current, she's iconic, she's literally the manual π
β¨
π¦ where this page comes from
- ubuntu stonking: grml2usb 0.20.14
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms