[Libguestfs] Mounting disk images with ext2 filesystems on RHEL7

Richard W.M. Jones rjones at redhat.com
Wed Feb 18 11:52:29 UTC 2015


On Tue, Feb 17, 2015 at 01:37:55PM -0500, Leonard Basuino wrote:
> I get the following debug info:
> 
> mount -o /dev/sda1 /
> [ <time> ] EXT4-fs (sda1): mounting ext2 file system using the ext4
> subsystem
> [ <time> ] EXT4-fs (sda1): bad geometry: block count 104388 exceeds size of
> device (103408 blocks)
> mount: wrong fs type, bad option, bad superblock on /dev/sda1

It looks as if the image is properly corrupt.  My suggestion
is to try 'virt-rescue' on it.

> This has me wondering because the debug messages from guestfish -v -x
> indicate it is mouting ext2 with ext4.
> EXT4-fs (sdb): mounting ext2 filesystem using the ext4 subsystem

This is just the way that RHEL 7 works. ie. CONFIG_EXT4_USE_FOR_EXT23=y
is now always used.  http://lwn.net/Articles/378913/

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top




More information about the Libguestfs mailing list