This guide assumes that you are using the GRUB bootloader directly. If you’re using SeaBIOS, it’s quite intuitive and works similarly to other BIOS software; refer to the documentation on https://seabios.org/Developer_Documentation.html.
This guide explains how to prepare a bootable USB for Canoeboot systems that can be used to install several operating system distributions that contain the kernel named Linux. For this guide, you will only need a USB flash drive and the dd utility (it’s installed into all such distributions, by default).
These instructions are intended to be generic, applicable to just about any such distribution.
This section is applicable for those who boot an operating system that contains the Linux kernel, probably something that calls itself a distro.
If you downloaded your ISO while on an existing system, here is how to create the bootable USB drive:
Connect the USB drive. Check lsblk, to confirm its device name (e.g., /dev/sdX):
lsblk
For this example, let’s assume that our drive’s name is sdb. Make sure that it’s not mounted:
sudo umount /dev/sdb
Overwrite the drive, writing your distro ISO to it with dd. For example, if we are installing Foobarbaz distro, and it’s located in our Downloads folder, this is the command we would run:
sudo dd if=~/Downloads/foobarbaz.iso of=/dev/sdb bs=8M; sync
That’s it! You should now be able to boot the installer from your USB drive (the instructions for doing so will be given later).
If the distro installer image has a grub.cfg file inside, this menuentry is scripted to find it. This works well for many distros.
Boot it in GRUB using the Parse ISOLINUX config (USB) option. A new menu should appear in GRUB, showing the boot options for that distro; this is a GRUB menu, converted from the usual ISOLINUX menu provided by that distro.
These are generic instructions. They may or may not be correct for your distribution. You must adapt them appropriately, for whatever distribution it is that you are trying to install.
If the ISOLINUX parser or Search for GRUB configuration options won’t work, then press C in GRUB to access the command line, then run the ls command:
ls
Get the device name from the above output (e.g., usb0). Here’s an example:
cat (usb0)/isolinux/isolinux.cfg
Either the output of this command will be the ISOLINUX menuentries for that ISO, or link to other .cfg files (e.g, /isolinux/foo.cfg). For example, if the file found were foo.cfg, you would use this command:
cat (usb0)/isolinux/foo.cg`
And so on, until you find the correct menuentries for ISOLINUX.
Find this config in cbfsdisk.
Now, look at the ISOLINUX menuentry; it’ll look like this:
kernel /path/to/kernel append PARAMETERS initrd=/path/to/initrd ...
GRUB works similarly; here are some example GRUB commands:
set root='usb0'
linux /path/to/kernel PARAMETERS MAYBE_MORE_PARAMETERS
initrd /path/to/initrd
boot
Note: usb0 may be incorrect. Check the output of the ls command (in GRUB), to see a list of USB devices/partitions. Of course, this will vary from distro to distro. If you did all of that correctly, then it should now be booting your USB drive in the way that you specified.
Most of these issues occur when using Canoeboot with coreboot’s text-mode with libgfxinit for video initialization. This mode is useful for text mode payloads, like MemTest86+, which expect text-mode, but for some distributions it can be problematic when they are trying to switch to a framebuffer, because no mode switching support is present.
Markdown file for this page: https://canoeboot.org/docs/linux/grub_boot_installer.md
This HTML page was generated by the Canoeboot Static Site Generator.
Canoeboot is discontinued. A new project was created: RBoot project, a fully free UEFI firmware distribution based on coreboot. RBoot is Canoeboot continued under a new name, with the same maintainer. The canoeboot website and release sources shall be preserved for historical purposes.