LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 01-18-2011, 12:29 AM   #1
starriol
LQ Newbie
 
Registered: Jan 2011
Posts: 11

Rep: Reputation: 0
Need help desperately: deleted a virtual machine with critical data under linux.


Hi all,

I'm in a pretty messed-up situation, hope you can give me a hand.
I deleted by accident a folder containing a VMware server virtual machine, that contains most critical information. The host OS is CentOS 5.5, which I believe by default uses Ext3.

I shut down the PC intermediately after noticing this.
Is there any chance of recovering the files? Would they be able to mount to the same or another virtual machine?

I need to get this information somehow, there are no backups.

Which software can I use?

If anyone can help me recover this, you'll get a free book by amazon, you have my word.
I'm THAT desperate.
 
Old 01-18-2011, 01:47 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello and Welcome to LinuxQuestions,

I understand you're desperate but posting in multiple forums will not get you a solution faster but instead you (and we) might loose focus on the conversation, not knowing where answers are being posted. Please stick with one thread per problem/question. Reporting as duplicate.

Kind regards,

Eric
 
Old 01-18-2011, 03:12 AM   #3
m_kane
Member
 
Registered: Jan 2009
Posts: 31

Rep: Reputation: 2
If your data is really important, you should do backup at first, before you try to recover anything.

Don't start your os, use livecd instead.

- If you have free hard disk same size or bigger, you can use dd to clone disk.
- Otherwise you should dd your disk to image file.


It is important to use sector to sector copy as dd, so you can backup deleted files also.

After backup, there is several tools to try. Ext3 is difficult to recover i know.

for example:
http://extundelete.sourceforge.net/
<moderator edit: URL removed/>

-Kane

Last edited by GrapefruiTgirl; 01-18-2011 at 05:23 PM.
 
Old 01-18-2011, 05:20 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
First, make a backup copy, as already suggested. After that, you can use photorec from the testdisk package to try to get your files back, of course from a live-medium. It would at least help to get the disk-image of the VM back, so that you can use it in another VM to recover your data.

In future I would recommend to get a good backup plan for important data.
 
Old 01-18-2011, 05:35 PM   #5
silvyus_06
Member
 
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 390

Rep: Reputation: 50
if you deleted your data from the folder then boot into RIPLinux and use photorec software.

if it can't restore it then you lost all data. if it restores correctly you will get your VM back and running fast. i think you first need to release it from the vm before using it again...
 
  


Reply



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
Need help desperately: deleted a virtual machine with critical data under linux. starriol Linux - General 2 01-19-2011 01:39 AM
Need help desperately: deleted a virtual machine with critical data under linux. starriol Linux - Software 2 01-18-2011 02:42 AM
Deleted critical system folder zpr Gentoo 3 06-13-2009 12:42 AM
Running virtual pc files in a virtual machine in linux ... preferably virtual box biharibong Linux - Software 4 01-21-2009 01:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 04:45 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration