hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : HELP! I deleted some files on a linux server... Is there a way to get them back?
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

HELP! I deleted some files on a linux server... Is there a way to get them back?

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 11-08-2003, 03:13 PM
invasionmix invasionmix is offline
Newbie
 
Join Date: Mar 2003
Posts: 11

HELP! I deleted some files on a linux server... Is there a way to get them back?


Hi, I accidentally deleted a couple folders & files via FTP. Is there a way I can get them back? It's very urgent, thanks you.

The machine is on redhat 9.0. When I type #mount, it displays:

/dev/hda2 on / type ext3 (rw,usrquota,grpquota)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)

I hope the above information helps..if any

Thank you


Last edited by invasionmix; 11-08-2003 at 04:34 PM.
Reply With Quote


Sponsored Links
  #2  
Old 11-08-2003, 03:26 PM
eddy2099 eddy2099 is offline
Web Hosting Master
 
Join Date: May 2001
Posts: 8,070
Do you have a backup which you can restore from ?

Reply With Quote
  #3  
Old 11-08-2003, 03:31 PM
RSanders RSanders is offline
Web Hosting Master
 
Join Date: Feb 2003
Location: Detroit
Posts: 795
grep can acually be used to pull some files off the HDD. But, its like trying to unscramble an egg.

I've seen other utilitys, but IIRC not for ext3. You have a backup right?

Reply With Quote
Sponsored Links
  #4  
Old 11-08-2003, 04:23 PM
invasionmix invasionmix is offline
Newbie
 
Join Date: Mar 2003
Posts: 11
no backup

Reply With Quote
  #5  
Old 11-08-2003, 05:46 PM
XLHost XLHost is offline
Web Hosting Evangelist
 
Join Date: Nov 2003
Posts: 472
Did you rm -rf / or what did you actually delete? Once a junior admin at my 9-5 did a rm -rf /sbin (he was fired) on our primary mail server, and I had to copy the tar/gzip the /sbin dir off of another box and copy it over. I didnt expect it to work but it did, after some Chmodding.

What did you actually delete? posting the mount isnt helping much.

-Drew

Reply With Quote
  #6  
Old 11-08-2003, 06:05 PM
RSanders RSanders is offline
Web Hosting Master
 
Join Date: Feb 2003
Location: Detroit
Posts: 795
Being that you did it with FTP, I would assume they are user files.

After you stop beating your head against the wall, contact your host or a offsite company and get a backup routine in place.

Reply With Quote
  #7  
Old 11-08-2003, 06:47 PM
sprintserve sprintserve is offline
Retired Moderator
 
Join Date: Jan 2003
Posts: 9,000
When CPanel first came out with their jail shell beta, I "smartly" deleted the virtfs directory as I thought it was just a normal directory. Luckily I was testing it on a new unused server In any case, a full restore did the trick.

As in your case, well, unfortunately restoring files is not linux strong point for a reason. Windows ability to restore files is actually a weak link security wise if you are not aware of how they handle deletion.

__________________
••• 100% Customer Satisfaction!!! •••
••• http://www.sprintserve.net •••
••• Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | •••
••• Services: | Managed Multiple Cores 64bit Servers | Server Management | •••

Reply With Quote
  #8  
Old 11-08-2003, 08:22 PM
RH Robert RH Robert is offline
Web Hosting Master
 
Join Date: Oct 2001
Location: The Ozarks
Posts: 886
From what I understand about ext3, if a file is deleted, the inode data is removed as well. This means the list of data blocks is lost, so it would be virtually impossible to recover any deleted file. However, you may want to email the admin at http://www.sleuthkit.org as they have had some success recovering ext3 files. I guess it all depends on how important these files are, and if it would be easier to copy them from another system.
If it was ext2, Midnight Commander would do the trick: http://www.ibiblio.org/mc/

__________________
Need Control Panel help? Tutorials, FAQS, user guides. and more
Don't have the control panel you use listed? Let us know.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Host MochaHost Adds New Features to Linux VPS Hosting Plans Web Hosting News 2012-08-01 15:52:14
Cloud City Hosting Integrates Backup with Cloud Hosting Plans Web Hosting News 2012-05-11 16:21:19
Web Host Earthnet Launches Xpert.net Linux Web Hosting Services Web Hosting News 2012-03-23 16:09:07
Linux OS CloudLinux Releases Virtualized File System for Shared Web Hosts Web Hosting News 2012-02-16 14:22:51
Data Center Firm Colocation America Donates Dedicated Server to Mepis.org Web Hosting News 2011-07-26 15:12:24


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?