I'm having a really strange issue.
I have backups of my machine in a local RAID array. They were created by Clonezilla, so I've created an actual filesystem image like so:
cat 2013-11-29/sda3.btrfs-ptcl-img.gz.* | gzip -d -c | \
partclone.restore -C -s - -O 2013-11-29.sda3.img
This has created a nice big image file in the current directory.
However, when I go to mount it, I've noticed that it doesn't actually mount the image file; it simply creates a loop to /:
$ sudo mount 2013-11-29.sda3.img /mnt
To test this, I've created a simple file that shouldn't exist in the backup.
$ ls /home/naftuli | grep "newfile"
$ ls /mnt/home/naftuli | grep "newfile"
$ touch ~/newfile
I would expect that now, /home/naftuli/newfile exists, but /mnt/home/naftuli/newfile does not exist. However, it is apparent that the mount is looping to /, as the newfile exists in both places:
$ ls /home/naftuli | grep "newfile"
newfile
$ ls /mnt/home/naftuli | grep "newfile"
newfile
How can I force mount to mount the image file and specifically not loop to /?