Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-15-2003, 08:35 PM   #1
Under Fire
LQ Newbie
Registered: Nov 2003
Posts: 21

Rep: Reputation: 15
accidentally rm -fr in root (/) directory

I feel so stupid.

In the root directory (not the homedir of root but the / root) i accidentally typed rm -fr and forgot to type a directory name I wanted to remove. Next moment, before I Know it, important files and dirs where removed.

Now I can't log in anymore (its a miracle my Internet and samba still works). My login screen says this:

<name> login: oops() involked from gpm.c(164) /dev/tty0: No such file or directory

So i'm unable to login again.
Is there any (any!!!!) solution for me besides reinstalling Linux?
Old 11-15-2003, 08:56 PM   #2
Registered: Oct 2003
Location: Richmond, VA
Distribution: Depends on the week...
Posts: 64

Rep: Reputation: 15
If you have your files backed up somewhere else, can you still restore them if you boot up using a LiveCD. If you don't have a good snapshot of your system, you will most likely have to reinstall.

You can still boot up using a LiveCD (Gentoo has the best in my opinion) and move important personal files off of your system before you reinstall to be safe.
Old 11-15-2003, 10:03 PM   #3
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 246Reputation: 246Reputation: 246
Unless you have the resources to retrieve data from a hard drive, you just wiped your whole OS. That is one reason you don't login as root unless or until you need to. That one mistake you made is what we or why we warn others to never do daily routine's or tasks logged in as root.



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
I accidentally erased /tmp directory..xserver no longer works(FC2) blames Linux - General 3 01-12-2005 07:34 PM
accidentally renamed my root " / " directory rioguia Linux - Newbie 24 10-28-2004 02:47 PM
help, accidentally deleted /root directory ahimsel08 Linux - Software 6 07-01-2004 02:02 AM
Can't open root directory th3a7ch3m1st Linux - Newbie 6 06-22-2004 07:21 PM
looking up my root directory isaacais Linux - Newbie 3 12-19-2002 06:35 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration