Solved

How do I undelete a VMWare disk (.VMDK) ?

Posted on 2008-10-17
7
5,496 Views
Last Modified: 2012-05-05
I was multitasking this morning and accidentally deleted the wrong VMWare disk from the VM console.  The disk was located on a separate physical disk only used for this virtual machine, so nothing else has been written to the drive.

When I tried to use several undelete utilities I was able to find the server.VMDK file, but it was 0 bytes.  

Is there anything else I can do?  OnTrack isn't an option, since this data isn't that valuable to the company; however it has value to me.

Regards
0
Comment
Question by:scoco
  • 4
  • 2
7 Comments
 
LVL 4

Accepted Solution

by:
michote earned 500 total points
Comment Utility
If the undelete utilities give you 0 bytes, most likely it was overwritten by VMware. Most of them do the same thing, there is no one better than the other.

Because when something gets deleted, windows only erases the the link from the File Allocation table. Undelete utilities look for this and fix restore them. The problem is that if something overwrites it, or any piece of it, undelete utilities will mark it as gone. This is made worse by the fact that VMware partitions are big files ranging from 2gb to bigger. The bigger it is the bigger the chance it gets overwritten by something
0
 
LVL 4

Expert Comment

by:michote
Comment Utility
And you don't have to do it, there are a lot of background processes that are constantly writing to the hard drive. This is a lost cause, if undelete utilities don't find it. The data is gone.
0
 
LVL 18

Expert Comment

by:sk_raja_raja
Comment Utility
1. Sorry to say that you're out of luck. There is no 'undelete' functionality in the VMware tools, and I don't believe there are any undelete tools out there that understand the VMFS file system. You'll need to recover from a backup.
On the other hand, VMware support *may* have a tool. It's worth logging a call and asking the question.

2.Probably a good time to set up AD authentication on your ESX servers and turn off root login from ssh. A non-root user would not have been able to delete the vmdk file without using sudo or 'su -' first. Also make sure that rm is aliased to 'rm -i'.
http://www.vmware.com/pdf/esx3_esxcfg_auth_tn.pdf has more information
0
Why do Marketing keep bothering you?

Is your marketing department constantly asking for new email signature updates? Are they requesting a different design for every department? Do they need yet another banner added? Don’t let it get you down! There is an easy way to manage all of these requests...

 
LVL 4

Expert Comment

by:michote
Comment Utility
It is a normal server, not ESX.
0
 

Author Comment

by:scoco
Comment Utility
This is not ESX.  It's running on a Windows hosted formatted NTFS.  

Sounds like my drive may have gone to data heaven.
0
 
LVL 4

Expert Comment

by:michote
Comment Utility
Yep, I am sorry.
0
 

Author Closing Comment

by:scoco
Comment Utility
Thanks for the quick response.  I finally had to accept reality :(  Fortunately the loss of data was only an annoyance and not mission critical.
0

Featured Post

Free book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

Join & Write a Comment

Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now