Container showing scenarios and demos - darrenldl/blockyarchive GitHub Wiki
Basic show
See what SBX containers disk or disk image contains, if any
You can simply do
blkar show --show-all disk.img
The demo uses a disk image, but the operations are the same for an actual disk (replace disk.img
with /dev/sda
etc).
Note that show mode is restricted to metadata blocks, if you created your SBX container using without metadat blocks (i.e. via --no-meta
flag), then your container will not be displayed here.
Only want to index all SBX containers by scanning all metadata blocks
blkar show mode can be configured to show all metadata blocks instead of stopping after one by supplying --show-all
flag
blkar show /dev/sdb --show-all > show.log
Only want to index all SBX containers by scanning all metadata blocks, but in JSON
All modes in blkar support JSON output mode, including show mode
So we can just add the flag to the command used above
blkar show /dev/sdb --show-all --json > show.json