LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-18-2013, 04:27 PM   #1
jc1
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: 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?
 
Old 11-18-2013, 05:06 PM   #2
Dizcarl
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
jc1
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
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 1,531

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


Reply


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 04:50 PM.

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