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

From: bruce (bedouglas_at_earthlink.net)
Date: 04/22/05

  • Next message: bruce: "RE: i just did a rm -rf /*r as root!!!"
    To: "'Brian Whitehead'" <Brian.Whitehead@LABONE.com>, "'General Red Hat Linux discussion list'" <redhat-list@redhat.com>, "'General Red Hat Linux discussion list'" <redhat-list@redhat.com>
    Date: Thu, 21 Apr 2005 17:58:07 -0700
    
    
    

    brian...
     
    the only thing that appears to be missing is the '/usr/bin' dir... i still
    have the rest of the '/usr' dirs.. i also still have the '/var' dir...
     

    -----Original Message-----
    From: Brian Whitehead [mailto:Brian.Whitehead@LABONE.com]
    Sent: Thursday, April 21, 2005 5:44 PM
    To: bedouglas@earthlink.net; General Red Hat Linux discussion list; General
    Red Hat Linux discussion list
    Subject: RE: i just did a rm -rf /*r as root!!!

    Well, there are a couple of things that you could do. As far as getting
    back any files that are not part of the OS installation you're probably out
    of luck unless you have a tape backup.
     
    First, boot from your redhat disk 1 in rescue mode.
    Second, mount your hard drive partitions to another directory like
    /mnt/root, /mnt/var, etc or something.
     
    Unfortunately /var and /usr are probably gone, so you might be able to use
    rpm to reinstall the rpm by redirecting to install with the '--relocate'
    switch. if you can get rpm working again you should be able to chroot to
    your mounted partitions and run 'rpm --rebuilddb' and get the rpm database
    back. Once rpm is working you can run 'rpm -Va' to see what files are
    missing. With this list of files you can force reinstallation of the
    packages that have missing files.
     
    This can be messy and if you're not that experienced, it may be difficult.
    In this case you may be better of rebuilding.
     

    --
    Brian
      _____  
    From: redhat-list-bounces@redhat.com on behalf of bruce
    Sent: Thu 4/21/2005 6:14 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
    --
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    <mailto:redhat-list-request@redhat.com?subject=unsubscribe> 
    https://www.redhat.com/mailman/listinfo/redhat-list
    <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: bruce: "RE: i just did a rm -rf /*r as root!!!"

    Relevant Pages

    • Re: losing .so files
      ... Chris Torske wrote: ... knowing where all the shared librarys that is installed is. ... > still complains I am missing that same file. ... where the system has even lost the a main rpm library. ...
      (Fedora)
    • Re: IBM TSM-client under Fedora Core 1?
      ... I'm using TSM. ... First of all, try to know in what rpm comes this missing lib, for example, ... FC1 I tried with the client that worked under RH8 and RH9. ...
      (Fedora)
    • Re: losing .so files
      ... Chris Torske wrote: ... As like this time around for me, yum is saying ... > still complains I am missing that same file. ... where the system has even lost the a main rpm library. ...
      (Fedora)
    • Re: Install Firefox questions
      ... followed the link and downloaded the i586 version of the rpm. ... highlighted the package and told it to install, and a list of missing ... the package did not appear to install. ...
      (alt.os.linux.suse)
    • Re: Windows Explorer and related processes use 100% of CPU
      ... Am I missing something? ... > If you DO decide to reinstall WinXP again, ... > How to Perform an In-Place Upgrade of Windows XP ... > open Task Manager and use it or shut down the computer. ...
      (microsoft.public.windowsxp.basics)