📄 genromfs.8
字号:
.TH GENROMFS 8 "Jan 2002" "Version 0.5.1".SH NAMEgenromfs \- create a romfs image.SH SYNOPSIS.B genromfs.B \-f device[.B \-d source][.B \-V label][.B \-a alignment][.B \-A alignment,pattern][.B \-x pattern][.B \-v].SH DESCRIPTION.B genromfsis used to create a romfs file system image, usually directly ona block device, or for test purposes, in a plain file.It is the.I mkfsequivalent of other filesystems..PP.B genromfswill scan the current directory and its subdirectories, build a romfsimage from the files found, and output it to the file or device youspecified..PPDuring scanning, it recognizes a special notation. If a file beginswith the @ sign(and is empty otherwise),it refers to a device special node in the format:.B @name,type,major,minor.type can be.I bfor block devices,.I cfor character devices,and.I pfor fifos.The linux virtual console 1 can thus be included as afile with the name:.B @tty1,c,4,1.SH OPTIONS.TP.BI -f \ outputSpecifies the file to output the image to.This option is required..TP.BI -d \ sourceUse the specified directory as the source, not the current directory..TP.BI -V \ labelBuild the image with the specified volume label. Currently it isnot used by the kernel, but it will be recorded in the image..TP.BI -a \ alignmentAlign regular files to a larger boundary..B genromfswill align data of each regular file in the resulting image to the specifiedalignment, while keeping the image compatible with the original romfsdefinition (by adding pad bytes between last node before the file and file'sheader). By default,.B genromfswill guarantee only an alignment of 16 bytes..TP.BI -A \ alignment,patternAlign objects matching shell wildcard pattern to alignment bytes.If one object matches more patterns, then the highest alignment is chosen.Alignment has to be a power of two. Patterns either don't contain anyslashes, in which case files matching those patterns are matched in alldirectories, or start with a leading slash, in which case they are matchedagainst absolute paths inside of the romfs filesystem (that is, as if youchrooted into the rom filesystem)..TP.BI -x \ patternAllow to exclude files that match a pattern.It's useful to exclude CVS directories and backup files (ending in a '~')..TP.BI -vVerbose operation,.B genromfswill print each file which is included in the image, along withits offset..SH EXAMPLES.EX.B genromfs -d root -f /dev/fd0 -V 'Secret labs install disk'.EEAll files in the .I rootdirectory will be written to .B /dev/fd0as a new romfs filesystem image..EX.B genromfs -d root -f /dev/fd0 -A 2048,/.. -A '4096,*.boot' -a 512 -V 'Bootable floppy'.EEGenerate the image and place file data of all regular files on 512 bytesboundaries or on 4K boundaries, if they have the .boot extension.Additionally,align the romfs header of the '..' entry in the root directoryon a 2K boundary. Effectively, this makes sure that theromfs image uses the leastpossible space in the first 2048 bytes..PPYou can use the generated image (if you have theromfs module loaded, or compiled into the kernel) via:.EX.B mount -t romfs /dev/fd0 /mnt.EE.SH AUTHORThis manual page was initially written by Christoph Lameter <clameter@debian.org>,for the Debian GNU/Linux system..SH SEE ALSO.BR mkfs (8),.BR mount (8),.BR mkisofs (8)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -