GENROMFS(8) | System Manager's Manual | GENROMFS(8) |
genromfs - create a romfs image
genromfs -f device [ -d source ] [ -V label ] [ -a alignment ] [ -A alignment,pattern ] [ -x pattern ] [ -v ]
genromfs is used to create a romfs file system image, usually directly on a block device, or for test purposes, in a plain file. It is the mkfs equivalent of other filesystems.
genromfs will scan the current directory and its subdirectories, build a romfs image from the files found, and output it to the file or device you specified.
During scanning, it recognizes a special notation. If a file begins with the @ sign (and is empty otherwise), it refers to a device special node in the format: @name,type,major,minor. type can be b for block devices, c for character devices, and p for fifos. The linux virtual console 1 can thus be included as a file with the name: @tty1,c,4,1
genromfs -d root -f /dev/fd0 -V 'Secret labs install disk'
All files in the root directory will be written to /dev/fd0 as a new romfs filesystem image.
genromfs -d root -f /dev/fd0 -A 2048,/.. -A '4096,*.boot' -a 512 -V 'Bootable floppy'
Generate the image and place file data of all regular files on 512 bytes boundaries or on 4K boundaries, if they have the .boot extension. Additionally, align the romfs header of the '..' entry in the root directory on a 2K boundary. Effectively, this makes sure that the romfs image uses the least possible space in the first 2048 bytes.
You can use the generated image (if you have the romfs module loaded, or compiled into the kernel) via:
mount -t romfs /dev/fd0 /mnt
This manual page was initially written by Christoph Lameter <clameter@debian.org>, for the Debian GNU/Linux system.
Jun 2007 | Version 0.5.2 |