Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
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.


  Search this Thread
Old 11-18-2013, 04:27 PM   #1
LQ Newbie
Registered: Nov 2013
Posts: 2

Rep: Reputation: Disabled
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?
Old 11-18-2013, 05:06 PM   #2
LQ Newbie
Registered: Mar 2012
Posts: 3

Rep: Reputation: Disabled
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
Old 11-19-2013, 09:19 AM   #3
LQ Newbie
Registered: Nov 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
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.
Old 11-19-2013, 04:17 PM   #4
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,219

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Undeleting files from a USB stick, FAT32 Josh000 Linux - Software 5 05-01-2010 03:16 PM
Undeleting Files WolfCub Linux - Software 3 04-12-2006 06:21 AM
undeleting ext3 files cccc Linux - General 2 07-31-2005 06:23 AM
Undeleting ReiserFS Files KingofBLASH Linux - General 1 12-29-2003 04:10 PM
undeleting accidentally deleted files darksarin Linux - Newbie 3 11-21-2003 08:08 AM

All times are GMT -5. The time now is 10:45 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration