Sir my subordinate used rm -rf command in root directory by name direcectory as 123.
Sir my sub-ordinate used rm -rf command in /root derectory duly deleting 123 directory which is in /root which has 5years periodicals data lost. Duly undelete command unable to rectify because gcc was not installed in that client. Tell me the correct way to recover
-SRR MOHAN |
Try PhotoRec. I've used it to recover files which were deleted using an rm -rf command.
|
Sir, my usual response to a first time poster is to say "Welcome to LQ!', but here I am constrained by my troll detection meter being hard on the peg in the red zone.
Your post says nothing about the file system in use. There is no undelete command in Linux. Recovery procedures should include: 1. Firing the incompetent who allowed a subordinate access to such a powerful command. 2. Firing the incompetent who allowed 5 years of data to be lost without a backup strategy. 3. Firing the incompetent who needs to ask a question like this on this forum. If this is serious, first isolate and image the disk. You may be able to recover using a tool like extundelete or similiar. http://extundelete.sourceforge.net/ |
Ouch. So you've had a backup plan for 5 years you say?
|
NEXT time
DO NOT GIVE THAT PERSON THE ROOT PASSWORD!!!!!!!!!! if that person STILL has a job and if YOU STILL have you for allowing someone to do that reinstall and learn a valuable lesson also NEXT TIME do not use the root $HOME folder to store files "/root" is not a good place to STORE things |
Quote:
|
ok i think the OP is getting the point
WE ALL have done things like this in the past ...... |
Yeah, yeah. OP, go add your experience to the following thread I'm an idiot moments.
Like others have said, do not store stuff in the /root tree. Be more cautious about backing up critical data, and how you disseminate control/access to the system. You're not much of a mentor if you've let a subordinate cause this much mayhem. In the meantime, try Photorec, as it really does work. |
Quote:
You say you 'duly' ran the undelete command...which wont' do anything, especially since Linux doesn't HAVE an 'undelete' command. You don't tell us what version/distro of Linux you're using, what the message(s) were that you got when you tried this (only something vague about gcc), or what (if anything) your backup strategy consisted of. If you are an administrator, and you have been:
YOU and your subordinate get the hard copies of the five years of periodicals, and start typing them back in.It will be a hard job, and take many, MANY hours. It will also be a lesson you and your subordinate never, EVER forget. You MAY be able to dodge a bullet by using photorec, but at this point, I'd say your chances are slim. Take your medicine, no matter how bitter it is, and learn from it. And the next time, this won't happen to start with, and if it DOES, you'll be totally prepared. |
By myself I am using /root only for back up of system settings when I testing or removing some of system files folders. User backups I use to make in the /opt folder, usually user settings for people to whom I install Linux too in case if they will play with installed programs or will remove files, they will be able to run a script that will restore them, e.g. by writing restore in the command line or in run window.
It takes a lot of time to restore deleted file so I recommend to make an compressed image of the whole disk or partition where files were deleted from that you will be able to mount. Then mount it and run photorec. |
it was already mentioned: noone can be admin without executing rm -rf / at least once in his/her life....
The solution should be to restore files from backup - that is a serious issue if there was no backup (but actually it was mentioned too: important data always saved, if your files were not saved they were not important at all). There is a tool named testdisk, you can try to use that to recover lost files, but first you need to lock that drive or make a full image (using dd) of it, otherwise you will lost even the possibility to find anything on that drive). |
All times are GMT -5. The time now is 09:34 AM. |