From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C9527138010 for ; Thu, 27 Sep 2012 00:35:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 58F4821C16B; Thu, 27 Sep 2012 00:35:15 +0000 (UTC) Received: from mail2.viabit.com (mail2.viabit.com [65.246.80.16]) by pigeon.gentoo.org (Postfix) with ESMTP id A33B421C02F for ; Thu, 27 Sep 2012 00:33:21 +0000 (UTC) Received: from [172.17.29.6] (vpn1.metro-data.com [65.213.236.242]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail2.viabit.com (Postfix) with ESMTPSA id 3XRxnr66jjz1hfw for ; Wed, 26 Sep 2012 20:33:20 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=orlitzky.com; s=mail2; t=1348706001; bh=K4BngawCA3tQKf/alAgRZM5wXlAifW7LMRSujwRFelE=; h=Date:From:To:Subject:References:In-Reply-To; b=Bs93lmFz6Qg693MzCg8oH+MRDupYewvSH3uUoZqUaUI0cTIzDvJstLSbzYnZoZ+MY QylFDG9eQScAxbU+ywIEzY7/ifvEhjnJ5zW0Rsb3Nq7o41ffUS0+4HqzLo0wtaveOg Q6cCuuyXBwvG7cBg6AIWEZgDLj/2+/UMEzIK/oY4= Message-ID: <50639EB6.3060906@orlitzky.com> Date: Wed, 26 Sep 2012 20:32:54 -0400 From: Michael Orlitzky User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6esrpre) Gecko/20120823 Thunderbird/10.0.6 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] OT: shot an XFS-filesystem, oh my References: <506361E4.3040402@xunil.at> In-Reply-To: <506361E4.3040402@xunil.at> X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 01513e6d-d9ea-4cfc-b907-c03acbbe468f X-Archives-Hash: 6385dc4e78acdfec2f1dfc0cffdc1847 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.