Confirmation of recovery

Once completed, we can run a file system called fsck on the image to make sure that it has been recovered correctly. In this case, the RBD was formatted with ext4, so we can use the e2fsck tool to check the image:

sudo e2fsck test.raw

The following screenshot is the output for the preceding command:

Excellent, the image file is clean, which means that there is now a very high chance that all our data has been recovered successfully.

Now we can finally mount the image as a loopback device to access our data. If the command returns no output, we have successfully mounted it:

sudo mount -o loop test.raw /mnt

You can see that the image is successfully mounted as a loop device: