LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-18-2006, 11:21 AM   #1
bboy-mass
Member
 
Registered: Aug 2006
Location: England
Posts: 39

Rep: Reputation: 15
My /etc dir has been deleted.DOH!


Hello,

In an excercise today, I decided to show my team what happens if you nuke the /etc dir with rm -rf /etc/* (do not try this at home).

So yes, the system whent DOWN,DOWN,DOWN and I said:

Its ok guys, I will know show you how to use LINUX RESCUE.

GUESS WHAT? It said that there was NO sign of a LINUX partition, and gave me a shell with no sign of /mnt/sysimage.

Is there a way out of this?

Is it failing to recognise my /mnt/sysimage because it can't find /etc ????

Please help, or I'll have to take the guys through another session of ANACONDA.
 
Old 09-18-2006, 12:12 PM   #2
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Wink

<humor>
Quote:
GUESS WHAT? It said that there was NO sign of a LINUX partition
Who would have guessed? Seeing as how Linux finds what partitions to mount in a file named "/etc/fstab"

Quote:
Its ok guys, I will know show you how to use LINUX RESCUE.
Unfortunately, the final words many people utter on their dieing breath just happen to be "Hey yall, watch this!!!"

This reminds me of one of the "Darwin Award" candidates a few years back. Some corporate lawyer/executive type who wanted to demonstrate how strong their window glass used in skyscrapers was. Went to the far side of the room, got up a full running head of steam, and launched himself into the glass. You can guess what happened next.

</humor>

I'm not yanking your chain - well, ok, maybe just a little! We've all done things that appear in retrospect, ahem, not quite so well thought out. Unfortunately, /etc pretty much holds all files that define your system identity. i.e., what makes your Linux installation any different than somebody elses. So it's pretty hard to recover your unique identity from some generic rescue disk. A recently made backup would be the most useful path to recovery.
 
Old 09-18-2006, 12:12 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Rescue mode automatically mounts the / partition at /mnt/sysimage. You should be able to manually mount any partition. If you do not know what partition is your / then you will have to look at the output of fdisk or cfdisk and guess. i.e.
fdisk -l
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
chmod -R username / ? (Doh!) dbc001 Slackware 6 07-13-2006 10:53 PM
Accidentally deleted (rm -rf) /tmp DIR tuesdays-child Fedora 3 03-22-2006 08:26 AM
Doh! Accidently killed su jeffChuck Linux - Newbie 1 07-29-2004 01:53 PM
Help - Deleted home dir, can i restore? phlyersphan Linux - Newbie 7 07-05-2004 09:15 PM
DOH! Noob mistake.. Deleted Kerberos tfdml37 Linux - Software 1 03-19-2004 04:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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