-   Linux - Virtualization and Cloud (
-   -   Undeleting Files in a VM (

jc1 11-18-2013 05:27 PM

Undeleting Files in a VM
I accidentally deleted some files from my VM. I want to run this tool: and also testdisk to try to undelete the files.

The first tool says to execute "dd bs=4M if=/dev/partition of=partition.backup"

Does this create a backup outside or inside the VM? How exactly do I mount the backup once it's created? I'm using VMWare Player.

Any other ideas for data recovery?

Dizcarl 11-18-2013 06:06 PM

Undeleting Files in a VM
inside, the command dd is to copy the disk partition on the running unit, so you could not execute this command outside the vm , but i still not check the link yet

jc1 11-19-2013 10:19 AM

Ok. So I log into my VM, execute this command, then what? Does this store a separate file on the host machine? How do I use that in my VM to run the undelete utility? If you have specific commands I would need to run that would be great.

I also made a copy of the vdmk file itself.

smallpond 11-19-2013 05:17 PM

The dd is just to make a backup in case the recovery screws something up. You can copy the data back by doing dd the other way.

All times are GMT -5. The time now is 10:14 PM.