diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-10-25 23:54:33 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-10-25 23:54:33 -0600 |
commit | 7315c38414b3a6840d71f254b7c8192640b41d7c (patch) | |
tree | 2bc46f02f06158c37c6dadac99a544082c32b4a3 /scripts | |
parent | 8f9e0dbfc44a523f68688e13591e40b1e2812cf1 (diff) |
add mount.sh
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mount.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/mount.sh b/scripts/mount.sh new file mode 100755 index 0000000..f75f403 --- /dev/null +++ b/scripts/mount.sh @@ -0,0 +1,14 @@ +#!/bin/bash +set -e +set -x + +go build ./cmd/btrfs-rec + +mkdir -p ../scratch/dump-zero.mnt + +sudo ./btrfs-rec \ + --pv ../scratch/dump-zero.img \ + --mappings=../scratch/dump-zero.gen/2.mappings.json \ + inspect mount \ + --skip-filesums \ + ../scratch/dump-zero.mnt |