2016-01-06 15:36:25 +01:00
|
|
|
# bmaptool
|
|
|
|
|
2020-02-11 14:53:43 -03:00
|
|
|
> Create or copy block maps intelligently (designed to be faster than `cp` or `dd`).
|
2025-03-28 05:26:23 +02:00
|
|
|
> More information: <https://manned.org/bmaptool>.
|
2016-01-06 15:36:25 +01:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
- Output a blockmap file from image file:
|
2016-01-06 15:36:25 +01:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`bmaptool create {{[-o|--output]}} {{blockmap.bmap}} {{source.img}}`
|
2016-01-06 15:36:25 +01:00
|
|
|
|
2016-01-13 12:04:46 +01:00
|
|
|
- Copy an image file into sdb:
|
2016-01-06 15:36:25 +01:00
|
|
|
|
|
|
|
`bmaptool copy --bmap {{blockmap.bmap}} {{source.img}} {{/dev/sdb}}`
|
|
|
|
|
2016-01-13 12:04:46 +01:00
|
|
|
- Copy a compressed image file into sdb:
|
2016-01-06 15:36:25 +01:00
|
|
|
|
|
|
|
`bmaptool copy --bmap {{blockmap.bmap}} {{source.img.gz}} {{/dev/sdb}}`
|
|
|
|
|
2016-01-13 12:04:46 +01:00
|
|
|
- Copy an image file into sdb without using a blockmap:
|
2016-01-06 15:36:25 +01:00
|
|
|
|
|
|
|
`bmaptool copy --nobmap {{source.img}} {{/dev/sdb}}`
|