{"id":26638080,"url":"https://github.com/tpdenk/mkfs","last_synced_at":"2026-04-03T16:51:01.893Z","repository":{"id":173120853,"uuid":"650264397","full_name":"tsatke/mkfs","owner":"tsatke","description":"mkfs written in Rust. Compatible with no_std crates for reading and writing (via trait impls)","archived":false,"fork":false,"pushed_at":"2024-09-09T15:27:34.000Z","size":148,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T17:28:50.075Z","etag":null,"topics":["ext2","ext3","ext4","mkfs"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tsatke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-06T17:40:36.000Z","updated_at":"2024-11-14T09:58:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"7f9722a7-391e-45de-9db1-dd204733e8a2","html_url":"https://github.com/tsatke/mkfs","commit_stats":null,"previous_names":["tsatke/mkfs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsatke%2Fmkfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsatke%2Fmkfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsatke%2Fmkfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsatke%2Fmkfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsatke","download_url":"https://codeload.github.com/tsatke/mkfs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248283158,"owners_count":21077786,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ext2","ext3","ext4","mkfs"],"created_at":"2025-03-24T17:25:10.978Z","updated_at":"2026-04-03T16:51:01.848Z","avatar_url":"https://github.com/tsatke.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mkfs\n`mkfs` written in pure Rust.\n\n## Motivation\nI needed a library that could work with file systems in `no_std` environments for my kernel.\nAdditionally, for testing, I needed a library that I could use easily to create and edit\nnew file system images, and that I could use in my `build.rs` file. Those things can be done\nby `mke2fs`. However, `mke2fs` is not available out of the box on all platforms, so I opted for\nsomething that can be integrated in the `cargo` build process.\n\n## Supported file systems\n- [ ] ext2 (in progress)\n- [ ] ext3\n- [ ] ext4\n- [ ] and more...\n\n## Features\n- Command line tool to create and edit file system images\n- Usable as library (see below)\n- Compatibility with `no_std` crates (you need to implement the `BlockDevice` trait for your data source)\n\n# Usage\n\n## Command line\n(subject to change)\n```shell\n# create a 1MiB ext2 file system in fs.img with the structure of my_directory\nmkfs ext2 create --size 1MB --out fs.img --in-dir ./my_directory\n```\n\n## Library\n(not implemented yet)\n\n### Use `mkfs` directly\nWorks nicely in `build.rs` files.\n\n```rust\nmkfs::ext2::create(\n    Ext2CreateOption {\n        out: PathBuf::from(\"fs.img\"),\n        // all the other options\n    }\n);\n```\n\n### Use with a `no_std` crate\n```rust\n// something like the following, still trying to figure this out\nlet block_device: MyBlockDevice = todo!(\"implement the BlockDevice trait\");\n\nlet fs = Ext2Fs::new(block_device);\nlet file = fs.create_file(\"hello_world.txt\");\n...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpdenk%2Fmkfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpdenk%2Fmkfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpdenk%2Fmkfs/lists"}