Such situation. I need to make a working system image to deploy this image to a VPS.

What was done:

  • The distribution kit necessary to me in VirtualBox is installed.
  • So the system image was made: dd if=/dev/sda1 of=/media/disk/my.iso .
  • The created image was successfully vps to vps .

Now I need to mount this image in order to deploy to the disk using the same dd command. When trying to mount, it shows the following error:

mount -o loop -t ext2 /srv/work/zentyal-vps_1.iso> / srv / work / mnt />
mount: wrong fs type, bad option, bad superblock on / dev / loop0,>
In some cases, syslog - try> dmesg | tail or so>> dmesg | tail> EXT3-fs: mounted filesystem with writeback data mode.> Adding 370680k swap on / dev / xvda2. Priority: -1 extents: 1 across: 370680k> SS> NET: Registered protocol family 10> JBD: barrier-based sync failed on xvda1-8 - disabling barriers> loop: module loaded> ISOFS: Unable to identify CD-ROM format. > VFS: Can't find an ext2 filesystem on dev loop0.> VFS: Can't find an ext2 filesystem on dev loop0.> ISOFS: Unable to identify CD-ROM format.> VFS: Can't find an ext2 filesystem on dev loop0

How to mount such an image?

    3 answers 3

    Well, in principle, you need to mount it so that later it is not necessary to pour dd back onto the disk, you can immediately upload it to the disk from the same dd image. And why it is not mounted, the first thing that caught my eye is that you did not specify the mount point, that is,

    mount -o loop -t ext2 /srv/work/zentyal-vps_1.iso / mnt / loop /

       mount -o loop -t iso9660 /srv/work/zentyal-vps_1.iso /mnt/loop 
         sudo losetup -fv img.iso sudo kpartx -av /dev/loop0 

        https://ru.stackoverflow.com/a/632351/11102