GENEXT2FS   (8) manpage
GENEXT2FS
8
July 14, 2001
  • NAME
      genext2fs - ext2 filesystem generator for embedded systems
  • SYNOPSIS
      genext2fs [ options ]   image
  • DESCRIPTION
      genext2fs generates an ext2 filesystem as a normal (non-root) user. It doesn't require you to mount the image file to copy files on it. It doesn't even require you to be the superuser to make device nodes.
  • OPTIONS
      -x image
      Use this image as a starting point
      -d directory
      Add this directory as source
      -f file
      Add nodes (e.g. devices) from this spec file
      -b blocks
      Size in blocks
      -i inodes
      Number of inodes
      -r reserved
      Number of reserved blocks
      -g path
      Generate a block map file for this path
      -e value
      Fill unallocated blocks with value
      -z
      Make files with holes
      -v
      Print resulting filesystem structure
      -h
      Display help
  • EXAMPLES

      genext2fs -b 1440 -d src /dev/fd0
      All files in the src directory will be written to /dev/fd0 as a new ext2 filesystem image. You can then mount the floppy as usual.
      genext2fs -b 1024 -d src -f dev.txt flashdisk.img
      This example builds a filesystem from all the files in src , then device nodes are created based on the contents of the device file dev.txt. An example device file follows:
      drwx            /dev crw-    10,190  /dev/lcd brw-    1,0     /dev/ram0
      This device list builds the /dev directory, a character device node /dev/lcd (major 10, minor 190) and a block device node /dev/ram0 (major 1, minor 0)
  • BUGS
      genext2fs has been designed for embedded systems. As such, it will generate a filesystem for single-user usage: all files/directories/etc... will belong to UID/GID 0
      genext2fs does not support hard links.  Hard links present in the input tree will be represented as separate files in the ext2 image.
  • SEE ALSO
  • AUTHOR
      This manual page was written by David Kimdon <dwhedon@debian.org>, for the Debian GNU/Linux system (but may be used by others).
Current Users: 30 © 1999-2006 Linux.com.hk PenguinSoft
All trademarks and copyrights on this page are owned by their respective companies. Linux is a trademark of Linus Torvalds.