Mounting as loop device fails with "wrong fs type, bad option, bad superblock, ..."

0

I tried

$ mount -o loop ./live-cd.iso /mnt

on a Live-OS image, which failed:

mount: /mnt: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.

The image file is not corrupt.

Kapichu

Posted 2020-01-18T03:05:25.327

Reputation: 111

Answers

0

In my case it helped to use kpartx (install with sudo apt-get install kpartx or sudo pacman -S multipath-tools or ...):

$ sudo kpartx -av live-cd.iso

which created a loopback device at /dev/mapper/loop0p1 (might also be at /dev/loop0p1) and then I mounted that instead:

$ sudo mount -o loop /dev/mapper/loop0p1 /mnt, which worked.

Kapichu

Posted 2020-01-18T03:05:25.327

Reputation: 111