Re: undo rm deleteing /etc very urgent

From: Wade Chandler (wchandler_at_redesetgrow.com)
Date: 05/09/04

  • Next message: Eitan Bonderover: "Re: Malfunctioning system"
    Date: Sat, 08 May 2004 21:32:16 -0400
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    issa rabba' wrote:

    > 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
    >
    >
    Do you have access to the physical drives and or system?

    If so then put in the RH cds and start a recover session. Then you can
    mount the physical drive into a partition and start copying and what
    ever you want to do. If you don't have physical access to the machine
    then all I can say is get it. You'll have to do that if it restarted
    anyways.

    If you really want to save the deleted files you want to get off the
    machine ASAP. Don't touch the drive with any applications .... period.
      Find a utility that you think will do the trick. Start up the system
    in recovery mode and get your utility some where you can run it....not
    onto the disk you are trying to repair. Once you are set to go then
    mount the drive and try out a plan of action you have prepared before
    mounting. Just don't write to the drive or you may very well say bye
    bye to the data in there (more than likely).

    You can use those options or hire someone.

    Hope that helps.

    Wade

    -- 
    Wade Chandler
    Red-e Set Grow, LLC
    Phone: 336-777-0075 x1705
    Email: wchandler@redesetgrow.com
    www.redesetgrow.com
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Eitan Bonderover: "Re: Malfunctioning system"

    Relevant Pages

    • Re: clearing Vinum configurations
      ... the configuration currently read into memory, and NOT clear the Vinum ... On another box, again 4.8-RELEASE only with IDE instead of SCSI drives, ... plexes on an uninitialized drive and as such, ...
      (freebsd-questions)
    • Re: new dell, dumb operator needs help!
      ... hard disks that are not in a raid configuration. ... listed under 'hard disk'. ... drives in 'my computer' then it is pretty clear that you do not have raid ...
      (alt.sys.pc-clone.dell)
    • Re: SQL Configuration
      ... Because this is what is gonna shape your disk configuration. ... and the new servers have two drives, one for programs and one for data. ... our databases on the data drive. ...
      (microsoft.public.sqlserver.setup)
    • Re: Newbie: Fedora Core 4 Dual hard drive boot problems
      ... First is configured on IDE! ... i/f as primary and has three partitions; ... Ok so this is what your configuration should look like if you have 3 ... It if is at all possible, you should reconfigure your drives on the IDE ...
      (linux.redhat.install)
    • Re: Dual boot? or not?
      ... "master/slave configuration" really only has to do with the way ... the drives are technically 'hooked' together in the system. ... if you want/need install an os on each hd. ... that would certainly allow you keep certain settings for certain programs. ...
      (microsoft.public.windowsxp.basics)