LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 09-05-2010, 10:11 AM   #1
bin_asc
Member
 
Registered: Aug 2006
Distribution: CentOS
Posts: 35

Rep: Reputation: Disabled
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.
 
Old 09-05-2010, 12:36 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,310
Blog Entries: 54

Rep: Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860
Quote:
Originally Posted by bin_asc View Post
Well, the story is like this.
Nah, that doesn't matter. Because you made backups beforehand.


Quote:
Originally Posted by bin_asc View Post
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 View Post
This HAD data on it
...which was all the more reason to, ahhh, make a backup?


Quote:
Originally Posted by bin_asc View Post
Of course everything got screwed
That's cool! See, now you restore the backup you made. Easy peasy.


Quote:
Originally Posted by bin_asc View Post
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 View Post
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...
 
Old 09-05-2010, 03:34 PM   #3
bin_asc
Member
 
Registered: Aug 2006
Distribution: CentOS
Posts: 35

Original Poster
Rep: Reputation: Disabled
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.
 
Old 09-06-2010, 12:18 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,310
Blog Entries: 54

Rep: Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860
So are you going to reply to those four questions I asked or what?
 
Old 09-06-2010, 05:27 PM   #5
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 114Reputation: 114
You already know what the answer to those questions is. His response told you.
 
Old 09-07-2010, 10:42 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,310
Blog Entries: 54

Rep: Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860
I'm only interested in the last four.
 
Old 09-07-2010, 10:43 AM   #7
bin_asc
Member
 
Registered: Aug 2006
Distribution: CentOS
Posts: 35

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply

Tags
dd, disk, image, linux, xen


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Software required for recovering data from corrupted pen drive shakes82 Linux - Software 2 07-09-2010 06:11 AM
Recovering corrupted Partition marcusmercado Linux - Newbie 2 01-31-2009 07:56 PM
LXer: Setup Intrepid Server PV DomU via xen-image-create&debootstrap at Xen 3.3 Intre LXer Syndicated Linux News 0 01-05-2009 01:20 PM
LXer: Setup Intrepid Server PV DomU via xen-image-create&debootstrap at Xen 3.3 Intre LXer Syndicated Linux News 0 01-05-2009 09:40 AM
Recovering corrupted grub sunils1973 Debian 5 03-02-2008 10:31 PM


All times are GMT -5. The time now is 11:48 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration