<br>
<div class="gmail_quote">On Wed, Feb 18, 2015 at 9:47 AM, Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com" target="_blank">rjones@redhat.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">On Wed, Feb 18, 2015 at 09:41:52AM -0500, Leonard Basuino wrote:<br>> On Wed, Feb 18, 2015 at 6:52 AM, Richard W.M. Jones <<a href="mailto:rjones@redhat.com">rjones@redhat.com</a>><br>> wrote:<br>><br>> > On Tue, Feb 17, 2015 at 01:37:55PM -0500, Leonard Basuino wrote:<br>> > > I get the following debug info:<br>> > ><br>> > > mount -o /dev/sda1 /<br>> > > [ <time> ] EXT4-fs (sda1): mounting ext2 file system using the ext4<br>> > > subsystem<br>> > > [ <time> ] EXT4-fs (sda1): bad geometry: block count 104388 exceeds size<br>> > of<br>> > > device (103408 blocks)<br>> > > mount: wrong fs type, bad option, bad superblock on /dev/sda1<br>> ><br>> > It looks as if the image is properly corrupt.  My suggestion<br>> > is to try 'virt-rescue' on it.<br>> ><br>> > virt-rescue --suggest -a <image><br>><br>> Inspecting the virtual machine or disk image ...<br>><br>> This disk contains one or more filesystems, but we don't recognize any<br>> operating system.  You can use these mount commands in virt-rescue (at the<br>> ><rescue> prompt) to mount these filesystems.<br>><br>> # /dev/sda1 has type 'ext2'<br>> mount /dev/sda1 /sysroot<br>><br>> So I tried ...<br>><br>> ><rescue> mount /dev/sda1 /sysroot<br>> [<time>] EXT4-fs (sda1): mounting ext2 filesystem using the ext4 subsystem<br>> [<time>] EXT4-fs (sda1): bad geometry: block count 104388 exceeds size of<br>> device (103408 blocks)<br>> mount: wrong fs type, bad option, bad superblock on /dev/sda1,<br>>            missing codepage or helper program, or other error<br>><br>>           In some cases useful info is found in syslog - try<br>>           dmesg | tail<br>><br>> I don't think the image is corrupt because a colleague is able to mount it<br>> with guestfish on a RHEL 6 box.<br><br>This is pretty strange, and may, I suppose, indicate a kernel bug of<br>some kind.  I imagine it's possible that (a) the ext4 driver doesn't<br>understand some very obscure ext2 feature, and (b) since hardly anyone<br>uses ext2, this bug has never been discovered before.  Or it may be as<br>Pino says that the filesystem is really truncated and ext4.ko is<br>correctly moaning about that, but ext2.ko in RHEL 6 ignored it.<br><br>Does running `e2fsck -n /dev/sda1' under virt-rescue show up any<br>errors?<br><br></blockquote>
<div>><rescue> e2fsck -n /dev/sda1</div>
<div>e2fsck 1.42.9 (28-Dec-2013)</div>
<div>The filesystem size (according to the superblock) is 104388 blocks</div>
<div>The physical size of the device is 103408 blocks</div>
<div>Either the superblock or the partition table is likely to be corrupt!</div>
<div>Abort? no</div>
<div> </div>
<div>/boot contains a file system with errors, check forced.</div>
<div>Pass 1: Checking inodes, blocks, and sizes</div>
<div>Pass 2: Checking directory structure</div>
<div>Pass 3: Checking directory connectivity</div>
<div>Pass 4: Checking reference counts</div>
<div>Pass 5: Checking group summary information</div>
<div>/boot: 36/26104 files (2.8% non contiguous), 12201/104388 blocks</div>
<div> </div>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Anything interesting in the output of `tune2fs -l /dev/sda1'?<br></blockquote>
<div> </div>
<div>I'm not retyping all of the output ... interesting?</div>
<div>Filesystem state: not clean</div>
<div>Block count: 104388</div>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote"><br>Rich.<br><span class="HOEnZb"><font color="#888888"><br>--<br>Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" target="_blank">http://people.redhat.com/~rjones</a><br>Read my programming and virtualization blog: <a href="http://rwmj.wordpress.com/" target="_blank">http://rwmj.wordpress.com</a><br>virt-builder quickly builds VMs from scratch<br><a href="http://libguestfs.org/virt-builder.1.html" target="_blank">http://libguestfs.org/virt-builder.1.html</a><br></font></span></blockquote></div><br>