On Sun, Feb 21, 2021 at 2:34 PM Chris Murphy <lists(a)colorremedies.com> wrote:
On Sun, Feb 21, 2021 at 2:16 PM George R Goffe via test
<test(a)lists.fedoraproject.org> wrote:
>
> fc35-bash 5.1 ~# mount -t ext4 -o loop,ro /ext2_saved/image /ext4
> mount: /ext4: can't read superblock on /dev/loop0.
Hmm. That's unexpected though. I'm going to try it in a VM. It should work.
Works for me. But I'm confused by your paths, i.e. are you really
creating /ext2_saved and /ext4 in the root directory?
Assume root user:
mount /dev/vdb /mnt/btrfs
mount -t ext4 -o ro,loop /mnt/btrfs/ext2_saved/image /mnt/ext4
That works for me. But you could alternatively try:
mount /dev/vdb /mnt/btrfs
losetup -r /dev/loop0 /mnt/btrfs/ext2_saved/image
blkid /dev/loop0
What file system does libblkid think it is? Could be ext2, ext3, or
ext4, in which case mount -t ext4 exclusively mounts ext4 and will
otherwise fail.
--
Chris Murphy