LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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
 
Thread Tools
Old 11-15-2009, 11:43 AM   #1
sendur
LQ Newbie
 
Registered: Nov 2009
Posts: 1
Thanked: 0
Unhappy Did i remove all my data?


[Log in to get rid of this advertisement]
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..
windows_98_nt_2000 sendur is offline     Reply With Quote
Old 11-15-2009, 12:27 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :}
Posts: 18,850
Blog Entries: 1
Thanked: 161
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
linux Tinkster is offline     Reply With Quote


Old 11-15-2009, 12:28 PM   #3
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, NetBSD, Debian
Posts: 218
Blog Entries: 5
Thanked: 17
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.
freebsd Mr-Bisquit is offline     Reply With Quote



Reply

Bookmarks


Thread Tools

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 11:47 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration