Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We're building a tool right now which includes booting a tiny Linux environment via PXE, and having it perform a number of system configuration operations without loading a larger system. (Formatting disks, creating filesystems, etc.) We've been planning to use BusyBox in this system, as having most of the system tools in one tiny static binary is obviously great in this context.

Problem, though: we've had a requirements change, and need support for creating ext3 (and maybe ext4) filesystems, which BusyBox does not support. Is anyone aware of a similarly self-contained binary tool which can be used for creating these filesystems? It doesn't need to also be BusyBox (I can include a few extra tools), but it can't require a bunch of dynamic libraries.

share|improve this question
up vote 2 down vote accepted

Compile e2fsprogs with static linking and choose the binaries you need from it. You probably only need mke2fs (which makes all kinda of EXT series file systems - mkfs.ext4 is just a symlink to it.

If you can't get static compiling to work, "ldd mke2fs" will at least show which libearies you need to install.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.