#block-devices #file-copy #copying #image #flash #bmap #dd

bmap-parser

bmap-parser is a library for Rust that allows you to copy files or flash block devices safely

2 unstable releases

0.2.0 Feb 24, 2024
0.1.0 Dec 16, 2022

#587 in Filesystem

Download history 84/week @ 2024-06-20 109/week @ 2024-06-27 59/week @ 2024-07-04 32/week @ 2024-07-11 14/week @ 2024-07-18 29/week @ 2024-07-25 162/week @ 2024-08-01 61/week @ 2024-08-08 16/week @ 2024-08-15 42/week @ 2024-08-22 85/week @ 2024-08-29 307/week @ 2024-09-05 137/week @ 2024-09-12 205/week @ 2024-09-19 143/week @ 2024-09-26 268/week @ 2024-10-03

842 downloads per month
Used in 3 crates

MIT AND Apache-2.0

4MB
523 lines

bmap-rs

The bmap-rs project aims to implement tools related to bmap. The project is written in rust. The inspiration for it is an existing project that is written in python called bmap-tools.

Right now the implemented function is copying system images files using bmap, which is safer and faster than regular cp ro dd. That can be used to flash images into block devices.

Usage

bmap-rs supports 1 subcommand:

  • "copy" - copy a file to another file using a bmap file.
bmap-rs copy <SOURCE_PATH> <TARGET_PATH>

The bmap file is automatically searched in the source directory. The recommendation is to name it as the source but with bmap extension.

License

bmap-rs is licensed under dual Apache-2.0 and MIT licenses.

Dependencies

~3–4.5MB
~81K SLoC