I am trying to perform a recovery operation on a btrfs image file that I have extracted using
# dd if=/dev/sda1 of=/mnt/sda1.img
The file seems to be properly extracted:
$ file sda1.img sda1.img: DOS/MBR boot sector
Reading it with parted is a bit opaque though
$ sudo parted sda1.img GNU Parted 3.2 Using /run/media/robert/exthdd2/sda1.img Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) p Model: (file) Disk /run/media/robert/exthdd2/sda1.img: 240GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags
Trying to mount it results in an errors
$ sudo mount -o loop -t btrfs sda1.img /mnt/ mount: mount /dev/loop0 on /mnt failed: Operation not supported
However, I can run a
btrfs check on the image file, so it's not broken ...
What can I do to mount such an image file?