Coder Social home page Coder Social logo

kusumi / makefs Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 0.0 1.33 MB

FreeBSD makefs(8) + HAMMER2 support + exFAT support for Linux / *BSD

License: BSD 2-Clause "Simplified" License

Makefile 0.84% C 96.58% C++ 1.13% Roff 0.90% M4 0.07% Shell 0.48%
exfat fat filesystem iso9660 linux ufs hammer2 bsd

makefs's Introduction

FreeBSD makefs(8) for Linux / *BSD

About

  • FreeBSD makefs(8) + HAMMER2 support + exFAT support

Supported platforms

  • Linux, Cygwin, FreeBSD, NetBSD, OpenBSD, DragonFly BSD

Requirements

  • C compiler

  • libuuid.so and <uuid/uuid.h> on Linux (unless HAMMER2 support is disabled on build)

Supported file systems

file system -t option name original implementation
UFS ffs (default) FreeBSD makefs(8)
FAT msdos FreeBSD makefs(8)
ISO9660 cd9660 FreeBSD makefs(8)
Version 7 Unix file system v7fs NetBSD makefs(8)
HAMMER2 hammer2 DragonFly BSD makefs(8)
exFAT exfat https://github.com/relan/exfat

Build

  • By default all supported file systems above are enabled. Use gmake(1) on *BSD.

      $ cd makefs
      $ make
    
  • Specify USE_HAMMER2=0 to disable HAMMER2 support.

      $ cd makefs
      $ make USE_HAMMER2=0
    
  • Specify USE_EXFAT=0 to disable exFAT support.

      $ cd makefs
      $ make USE_EXFAT=0
    

Install (optional)

    $ cd makefs
    $ make && make install

Uninstall (optional)

    $ cd makefs
    $ make uninstall

Usage examples

  • 4.4BSD FFS

      $ ./src/makefs -t ffs /path/to/img /path/to/directory
    
  • FreeBSD UFS2

      $ ./src/makefs -t ffs -o version=2 /path/to/img /path/to/directory
    
  • ISO9660

      $ ./src/makefs -t cd9660 /path/to/img /path/to/directory
    
  • HAMMER2

      $ ./src/makefs -t hammer2 /path/to/img /path/to/directory
    
  • FAT12/16/32 (file size required)

      $ ./src/makefs -t msdos -s 1g /path/to/img /path/to/directory
    
  • exFAT (file size required)

      $ ./src/makefs -t exfat -s 1g /path/to/img /path/to/directory
    

Notes

  • Build confirmed on Fedora, Ubuntu, Cygwin, FreeBSD, NetBSD, OpenBSD, DragonFly BSD on x86_64.

  • Due to lack of UFS standard among vendors, use an appropriate "-o ufstype=..." mount option to mount UFS on Linux.

    • Use "-o ufstype=44bsd" (4.4BSD) for an image created with "-o version=1" or the default.

    • Use "-o ufstype=ufs2" (FreeBSD UFS2) for an image created with "-o version=2".

  • ZFS support which exists in recent FreeBSD makefs(8) is unsupported.

Bugs

  • mtree(5) related options are currently unsupported.

    • -F option, -N option, and mtree file input will fail with an error message.
  • v7fs support compiles, but "-t v7fs" option is broken.

    • "-t v7fs" option is broken on NetBSD makefs(8) as well.

License

Resource

makefs's People

Contributors

kusumi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.