public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Michael Orlitzky <michael@orlitzky.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] OT: shot an XFS-filesystem, oh my
Date: Wed, 26 Sep 2012 20:32:54 -0400	[thread overview]
Message-ID: <50639EB6.3060906@orlitzky.com> (raw)
In-Reply-To: <506361E4.3040402@xunil.at>

On 09/26/2012 04:13 PM, Stefan G. Weichinger wrote:
> 
> I had an XFS-filesystem within a KVM-VM (32 bit Gentoo, so it isn't that
> off-topic, btw ;-) )
> 
> ... and I did a lot of work within that filesystem over the last 2 days.
> 
> Unfortunately it ran full so I decided to shutdown the VM, use qemu-img
> to resize that image-file (raw format), reboot the VM  ... and deleted
> the partition /dev/vdb1 (virtio ...) and recreated vdb1 with the full
> size of the underlying image-file.
> 
> XFS doesn't like that.

That won't work with any filesystem. I think instead of that last step,
you should have booted to a livecd and used GParted to resize the
partition. I went through this once:

> http://michael.orlitzky.com/articles/resizing_a_kvm_or_qemu_disk_image.php

That won't help you get your stuff back but it might help out the next time.

There's proprietary software that can scan the disk for the deleted
partition. They used to be included on Hiren's Boot CD circa 9.0, but
you could easily waste a few hours screwing around with it. If there was
nothing critical and nobody else has any clever ideas, you're probably
better off reinstalling. You should cherish the times you trash
something non-critical.


  reply	other threads:[~2012-09-27  0:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-26 20:13 [gentoo-user] OT: shot an XFS-filesystem, oh my Stefan G. Weichinger
2012-09-27  0:32 ` Michael Orlitzky [this message]
2012-09-27  8:40   ` Stefan G. Weichinger
2012-09-28 16:52     ` geez
2012-09-29 11:31       ` Stefan G. Weichinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50639EB6.3060906@orlitzky.com \
    --to=michael@orlitzky.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox