LinuxQuestions.org
Review your favorite Linux distribution.
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-19-2002, 08:36 PM   #1
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
Exclamation rm -rf !!!!!!!!!


Ok, I've officially identified myself as a .

Like I said in my other post, I had sawfish "untarred" in /usr/local/sawfishfolder.

Somehow I got confused, and ended up typing:

rm -rf sawfishfolder

in my /root directory, deleting everything.

Hmm... Anyway, is there an easy way to restore this folder with the install CD's or do I need to reinstall Linux?

My first Linux adventure

-JMagi
 
Old 10-19-2002, 08:57 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
http://chandra.ph1.uni-koeln.de/linu...eletion-1.html

You are in for a bit of a time with this one. What filesystem are you using? If you don't know, check the file /etc/fstab and see the line for / it should specify a filesystem, which one is it?

Cool
 
Old 10-19-2002, 09:17 PM   #3
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
Did you delete everything? Or just the whole of your /root dir, or even just /root/sawfish, or what?
 
Old 10-19-2002, 09:18 PM   #4
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Original Poster
Rep: Reputation: 30
ext3

Of course, there's nothing on the Linux partition that Red Hat didn't put there, I'm just starting and playing around so its no problem to wipe it out and start over (well, other than the hour wait )

I read that page and it seems like too much work and too complicated if I can just reinstall. There are 3 different methods of recovering data there too, and I don't know which I'd use, since I'm really not sure what was in my /root directory to begin with.

What do you suggest I do?

-JMagi
 
Old 10-19-2002, 09:20 PM   #5
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Original Poster
Rep: Reputation: 30
Thymox,

I deleted everything in /root except:

anakonda-ks.cfg
dead-letter
Desktop
install.log
install.log.syslog

-JMagi
 
Old 10-19-2002, 09:33 PM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Well since you are just "figiting" with the system for now, and plan on doing a custom install, I wouldn't worry too much about this for now. But in the future, it'd be worth the work getting it back probably.

So it would appear that you didn't remove all the files, so the . files are probably still there. Type into a console:
ls -a
And see if you have more files than you thought. If so, you are probably going to be ok.

Cool
 
Old 10-19-2002, 09:38 PM   #7
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Original Poster
Rep: Reputation: 30
Yes, invis files are still there, but all the folders are gone.
 
Old 10-19-2002, 11:04 PM   #8
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
I am still not clear what the heck did you do?
rm -rf sawfishfolder *
or
rm -rf sawfishfolder
or
rm -rf * - whic is the same as the first one.
 
Old 10-19-2002, 11:16 PM   #9
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Original Poster
Rep: Reputation: 30
In '/root' I typed 'rm -rf sawfishfolder'

-JMagi
 
Old 10-20-2002, 12:11 AM   #10
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
You know what...

This should have just removed the sawfishfolder, nothing else.

Did you know what was in there before hand? If not, then you probably only did remove the sawfishfolder, which, really doesn't matter at all.

Nice catch Boris!

Cool
 
Old 10-20-2002, 12:14 AM   #11
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Original Poster
Rep: Reputation: 30
The problem was, the sawfishfolder was in /usr/local, not in /root.

I did a ls before, and all the various folders (etc, dir, i forget what else was in there) showed up. After I hit 'rm -rf sawfishfolder' (in the wrong directory), the ls showed only those few files.

Sorry if I didn't explain it well before.

-JMagi
 
  


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




All times are GMT -5. The time now is 02:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration