RE: i just did a rm -rf /*r as root!!!

From: Smith, Albert (Albert.Smith_at_genexservices.com)
Date: 04/22/05

  • Next message: Lam, Eric: "RE: i just did a rm -rf /*r as root!!!"
    Date: Thu, 21 Apr 2005 20:30:32 -0400
    To: bedouglas@earthlink.net, "General Red Hat Linux discussion list" <redhat-list@redhat.com>
    
    

    ***** THE FOLLOWING WOULD WORK IN THEORY I HAVE NOT TESTED THIS ****

    Boot from the install CD and go into Recovery mode.

    In recovery mode it will attempt to search for an existing install. If
    it see's it you will see it as /mnt/sysimage when you do a df.

    Then try the following:

    mkdir /mnt/sysimage/usr
    mkdir /mnt/sysimage/var
    cp -pR /usr/* /mnt/sysimage/usr/

    Then reboot and it should get you up to some point. At that point I
    would use RPM to rebuild the rpm database then update your packages as
    some will most likely have to be reinstalled.

    Albert Smith
    Sr. Unix Systems Administrator
    HPCSA, RHCT
    Genex Services
    440 E. Swedesford Rd.
    Wayne, PA 19087
    albert.smith@genexservices.com
    (610) 964-5154
     

    > -----Original Message-----
    > From: redhat-list-bounces@redhat.com
    > [mailto:redhat-list-bounces@redhat.com] On Behalf Of bruce
    > Sent: Thursday, April 21, 2005 8:24 PM
    > To: 'General Red Hat Linux discussion list'; 'Lam, Eric'
    > Subject: RE: i just did a rm -rf /*r as root!!!
    >
    > eric...
    >
    > not to be down, but just how would i copy anything to the
    > screwed up server, when the ssh/rcp/etc.. apps all appear to
    > have resided in the /usr/bin dir....
    >
    > i was hopeful that using the recover cd might provide a solution....
    >
    > but it seems that no one has a solution, other than
    > reinstall... which really screws me up!
    >
    > -bruce
    >
    >
    > -----Original Message-----
    > From: redhat-list-bounces@redhat.com
    > [mailto:redhat-list-bounces@redhat.com]On Behalf Of Lam, Eric
    > Sent: Thursday, April 21, 2005 5:11 PM
    > To: bedouglas@earthlink.net
    > Cc: General Red Hat Linux discussion list
    > Subject: RE: i just did a rm -rf /*r as root!!!
    >
    >
    > If I were you, I would copy (by tar or cpio) the files from
    > another system that has same kernel level. What else you got
    > to loss now ?
    >
    > -----Original Message-----
    > From: Otto Haliburton [mailto:ottohaliburton@comcast.net]
    > Sent: Thursday, April 21, 2005 7:48 PM
    > To: bedouglas@earthlink.net; 'General Red Hat Linux discussion list'
    > Subject: RE: i just did a rm -rf /*r as root!!!
    >
    >
    >
    >
    > > -----Original Message-----
    > > From: redhat-list-bounces@redhat.com [mailto:redhat-list-
    > > bounces@redhat.com] On Behalf Of bruce
    > > Sent: Thursday, April 21, 2005 6:15 PM
    > > To: 'General Red Hat Linux discussion list'
    > > Subject: i just did a rm -rf /*r as root!!!
    > >
    > > hi...
    > >
    > > i stupidly just did a 'rm -rf /*r' and i understand that there's no
    > way to
    > > redo/undo this command.. it seems to have blown away my
    > /usr/bin dir..
    > > although, for all i know, i may have screwed up a lot more...
    > >
    > > my question, is there someway that i can reinstall the '/usr/bin'
    > dir.. or
    > > am i pretty much f*ed up. i have fedora core 2. (i've asked th
    > question on
    > > the FC2 list, and they leep telling me that i need to do a complete
    > > reinstall) i thought there was a way to more or less recreate the
    > indoe,
    > > or
    > > that there was some way that you can recover if you haven't done
    > anything
    > > with the drive since the 'rm -rf'... i've seen some
    > postings/information
    > > on
    > > google that kind of discuss this. but i need more understanding...
    > >
    > > this is a critical system that i was putting alot of things on.. i
    > haven't
    > > done anything else to the box after my mistake..
    > >
    > > -bruce
    > > bedouglas@earthlink.net
    > >
    > >
    > There are some very expensive disk recover companies out
    > there so if it
    > is
    > very important to you I would suggest you get in touch with them they
    > will
    > do a track by track recover of data from the disk. I don't know what
    > filesystem they support but you can probably google for disk recovery
    > and
    > get the info. But I can tell you they are very very expensive.
    >
    >
    > --
    > redhat-list mailing list
    > unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    > https://www.redhat.com/mailman/listinfo/redhat-list
    >
    > --
    > redhat-list mailing list
    > unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    > https://www.redhat.com/mailman/listinfo/redhat-list
    >

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Lam, Eric: "RE: i just did a rm -rf /*r as root!!!"

    Relevant Pages

    • Re: I think my hardrive has died, seeking a second opinion
      ... Drive Savers, but they said it would cost $1000 to recover the data. ... Windows 98, Windows XP, whatever - is going to work. ... in with the SATA drivers during the XP install. ...
      (microsoft.public.windowsxp.hardware)
    • Re: Home Premium to Ultimate - Upgrade is Disabled
      ... assuming you have a system that came with Vista Home Premium pre-installed ... Office may not run because with the upgrade, all the internal links in the ... step 1 and recover what you can. ... insert the install DVD you got for $160, ...
      (microsoft.public.windows.vista.installation_setup)
    • Re: Recovery
      ... I would like to recover things like software registration codes from applications on the old HDs, ... new drive and put the old drives into the computer in the same ... install to reinstall windows on the old drive. ...
      (microsoft.public.windowsxp.general)
    • Re: Sys IPLs in mid of 2005 upd/loops
      ... > instaling devices section and then the system IPLs! ... > setup is recovering) It goes back to setup and starts at 39 minutes> remaining, goes onto install devices and then IPLs again. ... > Also is there any way to bring up just a shell to copy and recover what I> can? ...
      (microsoft.public.windows.mediacenter)
    • Re: Fixed one problem, now another -- current user notification
      ... way around that is to either recover the registry or re-install. ... Login as Administrator and see if Word works then. ... It should start and install itself this time. ...
      (microsoft.public.word.docmanagement)