[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Error Resize Xen File Based


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Dominggo Smith <dominggosmith@xxxxxxxxx>
  • Date: Mon, 10 Jan 2011 01:13:58 +0700
  • Delivery-date: Sun, 09 Jan 2011 10:14:57 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Q8tHGGi2oxfMf0DcfinccXTnO8QEFKoMPSg+O9oKQu/2NsClhkiDZ+hzNeECYDhMT5 pjPMKvCLenKdWv3PlCwUbmsDcGlV74EQVuogxSdSAntLjD3Hw7HpPO6V+vJERahfzFGe YTHBbwqhYIH4be8PMLtZnE1WOBpPtbrvHKwZY=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

I follow http://mediakey.dk/~cc/howto-resize-xen-loop-disk-image/ to
expand Xen Guest as shown below:

1. # dd if=/dev/zero bs=1024k count=1024 >> test.img
2. # e2fsck -f test.img
3. # resize2fs test.img

But when running:

# e2fsck -f test.img
e2fsck 1.39 (29-May-2006)
Couldn't find ext2 superblock, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open test.img

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>

Any idea?

I'm using CentOS 5.5 and built-in xen-3.0-x86_64.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.