2016-01-06 14:36:25 +00:00
|
|
|
# bmaptool
|
|
|
|
|
|
|
|
> Create or Copy blockmaps intelligently (and therefore faster than `cp` or `dd`).
|
|
|
|
|
2016-01-13 11:04:46 +00:00
|
|
|
- Create a blockmap from image file:
|
2016-01-06 14:36:25 +00:00
|
|
|
|
|
|
|
`bmaptool create -o {{blockmap.bmap}} {{source.img}}`
|
|
|
|
|
2016-01-13 11:04:46 +00:00
|
|
|
- Copy an image file into sdb:
|
2016-01-06 14:36:25 +00:00
|
|
|
|
|
|
|
`bmaptool copy --bmap {{blockmap.bmap}} {{source.img}} {{/dev/sdb}}`
|
|
|
|
|
2016-01-13 11:04:46 +00:00
|
|
|
- Copy a compressed image file into sdb:
|
2016-01-06 14:36:25 +00:00
|
|
|
|
|
|
|
`bmaptool copy --bmap {{blockmap.bmap}} {{source.img.gz}} {{/dev/sdb}}`
|
|
|
|
|
2016-01-13 11:04:46 +00:00
|
|
|
- Copy an image file into sdb without using a blockmap:
|
2016-01-06 14:36:25 +00:00
|
|
|
|
|
|
|
`bmaptool copy --nobmap {{source.img}} {{/dev/sdb}}`
|