LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Undeleting Files in a VM (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/undeleting-files-in-a-vm-4175485055/)

jc1 11-18-2013 04:27 PM

Undeleting Files in a VM
 
I accidentally deleted some files from my VM. I want to run this tool: http://extundelete.sourceforge.net/ 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 05: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 09: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 04: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:33 AM.