Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

Container showing scenarios and demos

Darren Ldl edited this page Apr 13, 2019 · 4 revisions

Basic show

Demo

See what SBX containers disk or disk image contains, if any

Demo

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