LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 10-05-2013, 04:08 PM   #1
hardrock12
LQ Newbie
 
Registered: Aug 2013
Posts: 4

Rep: Reputation: Disabled
Unhappy Help please deleted directory


Hi everyone

I stupidly rm /* on my bash and deleted root directory now i cant view do anything! like if i want to open up a terminal i get no such file or directory ! i really need help to restore and get my files back I use linux backtrack r5 for my college assignments

Last edited by hardrock12; 10-05-2013 at 04:11 PM.
 
Old 10-05-2013, 04:13 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,827

Rep: Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409
Well you will not do that again

reinstall the operating system

if you stopped using that computer and are using a DIFFERENT machine using different hard drives
you might be able to partly recover the photos, videos, office files and such

but only a slight chance

have a look at using "photorec"
 
Old 10-05-2013, 04:47 PM   #3
Z038
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 835

Rep: Reputation: 165Reputation: 165
Consider this a learning experience. Avoid using the root account unless truly necessary, and when you do, go slowly and double check each command before entering it.

You need to reinstall the operating system, as John said. But if you want to try to recover other data from your hard drive, be sure to re-install on a different hard drive, and do not write anything to the old disk until you've exhausted all recovery attempts.

To get an idea of what you'll be up against with a utility like photorec, see my post in this thread: https://www.linuxquestions.org/quest...er-4175478081/

Unless the data you've lost is of critical importance, it may not be worth the effort of attempting to recover it.
 
Old 10-05-2013, 08:38 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,827

Rep: Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409
I would also stress this point
Quote:
and when you do, go slowly and double check each command before entering it.


it is VERY easy to make a normal everyday typo
like this for example
Code:
rm -rf / usr/opt/qt3/????
notice the blank space !!!!!

while it is theoretically possible to recover data
in practice , it is not so easy

the things you see on TV like in CSI and NCIS and such are VERY FAR from the truth .
 
  


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
deleted /etc directory slackman Linux - Server 5 08-14-2008 03:09 PM
The directory that cannot be deleted mickeyboa Fedora 1 03-04-2006 10:28 AM
tmp directory being deleted jpokrzyk Linux - General 3 10-30-2004 07:42 PM
Deleted directory error gfem Linux - Newbie 2 08-25-2004 01:06 PM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 04:04 AM


All times are GMT -5. The time now is 05:46 PM.

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