LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Issues recovering corrupted XEN disk image (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/issues-recovering-corrupted-xen-disk-image-830464/)

bin_asc 09-05-2010 10:11 AM

Issues recovering corrupted XEN disk image
 
Well, the story is like this.
I tried to increase a XEN disk image, using dd and appending space to the end, then checking the filesystem and mk2fs.
This HAD data on it, some data that I`m desperately trying to recover.
Of course everything got screwed, and I`ve been trying for the past 4-5 days all sorts of recovery methods, but I think I`m doing something wrong.
Note this is a xen disk image, not a xen lv.

I tried using fdisk to find superblocks and recovering data off of it, but the boot partition is fine. The second partition is screwed and even though fsck shows :

[
Code:

root@blue one]# fsck /dev/loop0
fsck 1.39 (29-May-2006)
e2fsck 1.39 (29-May-2006)
/dev/loop0: clean, 11/2611200 files, 93201/5216774 blocks

When mounting this, it only shows lost+found.
No files.

unSpawn 09-05-2010 12:36 PM

Quote:

Originally Posted by bin_asc (Post 4088647)
Well, the story is like this.

Nah, that doesn't matter. Because you made backups beforehand.


Quote:

Originally Posted by bin_asc (Post 4088647)
I tried to increase a XEN disk image

...nonetheless all is well that ends well, because you made a backup before you started this, right?


Quote:

Originally Posted by bin_asc (Post 4088647)
This HAD data on it

...which was all the more reason to, ahhh, make a backup?


Quote:

Originally Posted by bin_asc (Post 4088647)
Of course everything got screwed

That's cool! See, now you restore the backup you made. Easy peasy.


Quote:

Originally Posted by bin_asc (Post 4088647)
I`ve been trying for the past 4-5 days all sorts of recovery methods

OK, what have you exactly tried? And whatever you did you tried on a copy of that disk and not the original, right? Because unless you're good there's a chance you have "repaired" things irreversibly wrong.


Quote:

Originally Posted by bin_asc (Post 4088647)
I tried using fdisk to find superblocks and recovering data off of it, but the boot partition is fine. The second partition is screwed

So what was the original disk layout? What did testdisk show?

// BTW WB after nearly two years...

bin_asc 09-05-2010 03:34 PM

And your role is here to help or make fun of people's issues ?
Because if it`s the latter, find another thread to play on.

unSpawn 09-06-2010 12:18 PM

So are you going to reply to those four questions I asked or what?

jiml8 09-06-2010 05:27 PM

You already know what the answer to those questions is. His response told you.

unSpawn 09-07-2010 10:42 AM

I'm only interested in the last four.

bin_asc 09-07-2010 10:43 AM

I`ve went and recreated the image using LVM this time. I guess you learn more from trial & error.
unSpawn, yes, backups are important, but helping as well. The way you replied just made me sick of posting here again.


All times are GMT -5. The time now is 11:38 AM.