| CROSSHURD-IMAGE(8) | CROSSHURD-IMAGE(8) |
NAME¶
crosshurd-image - Create a bootable disk image file with `crosshurd` setup
SYNOPSIS¶
crosshurd-image [option_*]
DESCRIPTION¶
The script crosshurd-image creates a bootable disk image file with a crosshurd setup. This may be used as primary disk for a virtual machine, e.g. with qemu-system-x86_64.
OPTIONS¶
--disk=filename
--size=number
--name=hostname
--ip=address/bits
--gw=address
--cpu=type
--extlinux
--mb=file
NOTES¶
crosshurd-image runs through a straight-forward sequence of steps that involve:
partitioned in a DOS table with a single partition, and
formatted for GNU Hurd (ext2fs -o hurd)
with stage 1 boot loader, and
multiboot configuration for GNU Hurd core modules
The disk image file is then ready to be used as primary disk for a virtual machine with legacy bios boot.
Note that the disk image file is created as a "holes" file where only data blocks actually in use have been allocated in the filesystem. This means that the actual size initially is smaller than reported by, say, ls -l.
— MULTIBOOT DEFINITION FORMAT
The multiboot defintition file is a grub multiboot snippet where the first line consitute the parameters for the multiboot tag, and the lines following constitute subsequent module declarations separated by blank lines. This snippet will be included verbatim (except for comments and blank lines) for the grub boot option, whereas it mill be translated into the syslinux parameter format for its mboot module for extlinux boot option.
The latter is essentially the same format, except that the module keyword for grub is replaced with mboot’s module separator tag "---", and that arguments are stripped of their surrounding single-quotes. Further, the line breaks are replaced by spacing, since the mboot arguments need to be on a single line.
AUTHOR¶
Ralph Ronnquist <rrq@rrq.au>
| 2026-03-15 |