LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-15-2009, 11:43 AM   #1
sendur
LQ Newbie
 
Registered: Nov 2009
Posts: 1

Rep: Reputation: 0
Unhappy Did i remove all my data?


Hi,

I'm using a Debian Lenny host for hosting of my website, and i've made a terrible mistake today... With su privileges I've killed my server with the following command: mv /* ../* (which had to be ./*)
I'm no expert whatsoever, so please don't break me down on my stupidity... Everything is gone, i cannot boot the host anymore. It is virtualized (Esxi4.0), the VMDK file is not empty(22GB used). Is there ANY way to recover my data? I'm downloading setting up a workstation with VMware Disk Mount, but i really don't know if i can get the data back?

Help is really appreciated!

Last edited by sendur; 11-15-2009 at 11:51 AM.
 
Old 11-15-2009, 12:27 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi,

welcome to LQ!

You should be able to boot the VM of a Rescue-CD ISO image, and
move everything back to where it belongs. And a move of /* would
have been stupid no matter where you're moving stuff to.
It would always break the box.



Cheers,
Tink
 
Old 11-15-2009, 12:28 PM   #3
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
Mount the file through the virtual machine using knoppix 5.x pre-adriane as you would do so for a real machine.
From there, you'll need to create a second virtual disk and mount the original through an entry in /etc/fstab.
Then you can move the information over.
Next time, make backups.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
remove no data rows from a text file lothario Linux - Newbie 1 08-30-2009 08:18 AM
tar file without remove existing data ust Linux - Newbie 3 06-10-2009 02:55 AM
How does one remove debconf data from ubuntu maskiepop Linux - Newbie 2 07-28-2008 04:48 AM
How to remove unwanted data rvsridhar Linux - General 2 05-15-2006 04:07 PM
[bash / sed] remove all data between < > Ljohan Programming 4 03-15-2006 06:20 AM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration