LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 03: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 03:11 PM.
 
Old 10-05-2013, 03:13 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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, 03:47 PM   #3
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Rep: Reputation: 174Reputation: 174
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, 07:38 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:06 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
Open Source Consulting | Domain Registration