<br>
<div class="gmail_quote">On Wed, Feb 18, 2015 at 4:51 AM, Pino Toscano <span dir="ltr"><<a href="mailto:ptoscano@redhat.com" target="_blank">ptoscano@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">In data martedì 17 febbraio 2015 13:37:55, Leonard Basuino ha scritto:<br>> On Mon, Feb 16, 2015 at 6:10 PM, Richard W.M. Jones <<a href="mailto:rjones@redhat.com">rjones@redhat.com</a>><br>> wrote:<br>><br>> > On Mon, Feb 16, 2015 at 06:00:06PM -0500, Leonard Basuino wrote:<br>> > > Hope someone can point me in the right direction.  I don't know if what I<br>> > > am trying to do should work or not.<br>> > ><br>> > > I have 2 disk images.  One is a VM with an ext2 boot filesystem and ext4<br>> > > filesystems with the OS loaded.  I am amble to guestmount this with no<br>> > > issue and am able to see the files that are on the ext2 file system.<br>> > ><br>> > > I can also run guestfish on the image, mount the ext2 filesystem, and<br>> > list<br>> > > the files.<br>> > ><br>> > > However, the second image I have is only a boot disk image with just an<br>> > > ext2 filesystem.<br>> > ><br>> > > guestmount complains that there is no OS and won't mount.<br>> ><br>> > What you really need to do is run:<br>> ><br>> >   virt-filesystems -a second-disk.img --all --long -h<br>> ><br>> > which will tell you what filesystems (etc) are available in the second<br>> > image.<br>> ><br>><br>><br>> > The only filesystem is /dev/sda1 of type ext2<br>><br>><br>><br>> > > guestfish complains "...wrong fs type, bad option, bad superblock...".<br>> ><br>> > Try using guestfish -v -x flags to provide extra information about<br>> > this error.  See:<br>> ><br>> > <a href="http://libguestfs.org/guestfs-faq.1.html#debug" target="_blank">http://libguestfs.org/guestfs-faq.1.html#debug</a><br>> ><br>><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 of<br>> device (103408 blocks)<br>> mount: wrong fs type, bad option, bad superblock on /dev/sda1<br>> ....<br><br>This might mean that the partition has been resized to a smaller size,<br>but without updating the partition table. Is that the case?<br><br>Can you please post the output of the guestfish command<br>`sfdisk-l /dev/sda`?<br></blockquote>
<div> </div>
<div>(ok, I have to type it so pardon any typos) </div>
<div> </div>
<div>Disk /dev/sda: 101 cylinders, 64 heads, 32 sectors/track</div>
<div>Units: cylinders of 1048576 bytes, blocks of 1024 bytes, counting from 0</div>
<div> </div>
<div>   Device  Boot  Start          End     #cyls       #blocks    Id  System</div>
<div>/dev/sda1     *         0+       100         101-      103408    83  Linux</div>
<div>/dev/sda2               0             -             0                0     0  Empty</div>
<div>
<div>/dev/sda3               0             -             0                0     0  Empty</div>
<div>
<div>/dev/sda3               0             -             0                0     0  Empty</div>
<div> </div></div></div>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote"><br>> also, trying to mount the image with:<br>> mount -t ext2 <image> <mount point><br>> returns:<br>> mount: wrong fs type, bad option, bad superblock on /dev/loop0<br>> ...<br>> the end of dmesg has:<br>> [<time>] EXT4-fs (loop0): VFS: Can't find ext4 filesystem<br>><br>> This has me wondering because the debug messages from guestfish -v -x<br>> indicate it is mouting ext2 with ext4.<br>> EXT4-fs (sdb): mounting ext2 filesystem using the ext4 subsystem<br><br>In recent (well, few years...) Linux versions the ext4 filesystems<br>takes care of ext2 and ext3 versions as well, so the above message<br>is correct.<br><br>> So is the problem that there is no ext4 filesystem in the image and RHEL 7<br>> is having issues with it?<br><br>I'm not sure what you mean here, can you please rephrase?<br></blockquote>
<div> </div>
<div>I was wondering if the message indicated it was looking for ext4 in the image which doesn't exist?</div>
<div>I verified that the same image mounts without issue on a RHEL 6 box but not on a RHEL 7 box.</div>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote"><br>Thanks,<br><span class="HOEnZb"><font color="#888888">--<br>Pino Toscano<br><br>_______________________________________________<br>Libguestfs mailing list<br><a href="mailto:Libguestfs@redhat.com">Libguestfs@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/libguestfs" target="_blank">https://www.redhat.com/mailman/listinfo/libguestfs</a><br></font></span></blockquote></div><br>