Created
November 8, 2013 10:47
-
-
Save nl5887/7369357 to your computer and use it in GitHub Desktop.
Try to restore all btrfs there is
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export DISK=/dev/loop3 | |
export DEST=/data/recov | |
btrfs-find-root /dev/loop3 2>&1|grep seems|awk '{print $3}' > blocks | |
for i in $(cat blocks); do mkdir -p $DEST/$i; btrfs restore -o -v -t $line $DISK $DEST/$i; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment