LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-15-2003, 09: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, 09:56 PM   #2
Sometimes
Member
 
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, 11:03 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
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.

Regards.
 
  


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


All times are GMT -5. The time now is 02:45 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