Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2008-10-17
7
Medium Priority
?
5,579 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 2000 total points
ID: 22745417
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
ID: 22745430
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
ID: 22745712
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
Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

 
LVL 4

Expert Comment

by:michote
ID: 22745829
It is a normal server, not ESX.
0
 

Author Comment

by:scoco
ID: 22746090
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
ID: 22746144
Yep, I am sorry.
0
 

Author Closing Comment

by:scoco
ID: 31507298
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this modest contribution, I want to share with the IT community (especially system administrators, IT Support Engineers and IT Help Desks) about Windows crashes/hangs and how to deal with these particular problems.
Mailbox Corruption is a nightmare every Exchange DBA wishes he never has. Recovering from it can be super-hectic if not entirely futile. And though techniques like the New-MailboxRepairRequest cmdlet have been designed to help with fixing minor corr…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

885 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