RE: undo rm deleteing /etc very urgent

From: issa rabba' (irabba_at_p-ol.com)
Date: 05/08/04

  • Next message: issa rabba': "RE: undo rm deleteing /etc very urgent"
    To: "'For users of Fedora Core releases'" <fedora-list@redhat.com>
    Date: Sat, 8 May 2004 11:57:41 +0200
    
    

    Dear:

    Thanks for you replay, I want to ask if I can copy /etc directory from
    another server has the same FC configuration and applications?

    Regards

    -----Original Message-----
    From: fedora-list-bounces@redhat.com [mailto:fedora-list-bounces@redhat.com]
    On Behalf Of Jeremy Brown
    Sent: Saturday, May 08, 2004 10:31 AM
    To: For users of Fedora Core releases
    Subject: Re: undo rm deleteing /etc very urgent

    issa rabba' wrote:

    >Dear all:
    >
    >Please I need help, by mistake I delete /etc directory and I don't how can
    I
    >undo deleting /etc, I still has connection to the server, please if any one
    >can help me....
    >
    >Note: I don't have backup 4 /etc direcoty
    >
    >
    I'll go ahead and respond to your post with my very generic and
    unhelpful response, since you're probably on a time constraint and no
    one else seems to be answering (probably most are asleep).

    My understanding is that when you delete files on most Linux
    filesystems, they aren't actually deleted, just unlinked. It's possible
    to restore some or all of these files by restoring only the links (a
    semi-trivial process, maybe). But once you start writing data back to
    the drive, there's probably little or no guarantee that you won't
    overwrite some or all of the space that /etc occupied. So my first
    suggestion would be to try to find an undelete utility for whatever
    filesystem /etc was stored on. After a quick google I found this one
    for ext2:

    http://twerner.debian.net/

    I make no claims as to whether or not this utility will work. I've
    never used it before.

    If you use reiserfs or some other filesystem, you'd need to google and
    find a different utility (assuming one exists for your FS of choice).

    My other suggestion is to do what I did in the sole situation where I
    clobbered the /etc directory of a major production machine (by
    accidentally running "etc-update" on a Gentoo box I was supposed to help
    administer). And that is to grab the FC install CDs, and install and
    configure as quickly as possible as you can on an alternative machine.
    Most processes only read configuration files in /etc on startup, so your
    machine with trashed /etc might even be able to stay alive while you get
    another one together. It's not a pretty solution, but it'll hopefully
    minimize the damage done.

    Hope this helps.

    Jeremy

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: issa rabba': "RE: undo rm deleteing /etc very urgent"

    Relevant Pages

    • Re: best pactice - apache, rewrite, ssl, virtualhost or .htaccess
      ... but do not have root access on the server system. ... configuration changes, it might be desirable to permit individual users ... to make these changes in .htaccess files for themselves. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Apache:mod_ssl:Error: Private key not found.
      ... I just finished the installation of libapache-mod-ssl and everything ... documentation says to do at the end of the configuration, ... Starting web server: apacheApache/1.3.26 mod_ssl/2.8.9 (Pass Phrase ... To UNSUBSCRIBE, email to debian-user-request@lists.debian.org with a subject of "unsubscribe". ...
      (Debian-User)
    • Re: Email receiving problems
      ... I am running 'Postfix' SMTP ... I am running the 'Courier IMAP' server. ... Without seeing your configuration I can only guess but, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • RE: x server configuration problems
      ... >discover) then try and reconfigure the server again with low priority. ... Subject: x server configuration problems ... > My problem is that i cannot change the resolution of my screen.it ... To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". ...
      (Debian-User)
    • RE: Free space wierdness
      ... which was occupyng space and which got deleted when the server got a reboot. ... >I have a system running FreeBSD 4.9-RELEASE. ... >Filesystem Size Used Avail Capacity Mounted on ... To unsubscribe, ...
      (freebsd-questions)