Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 7th April 2009, 06:18 AM
sojan-john Offline
Registered User
 
Join Date: Oct 2008
Posts: 15
Exclamation system restore

i accidently deleted the files in /etc/init.d is it possible to restore the files by using the date or time

anybody please help

Thanks in advance
Reply With Quote
  #2  
Old 7th April 2009, 06:52 AM
aleph's Avatar
aleph Offline
Banned (for/from) behaving just like everybody else!
 
Join Date: Jul 2007
Location: Beijing, China
Posts: 1,307
You deleted *everything* under /etc/init.d? That may take quite a long time and a lot of hassle to recover... because each file is owned by a different RPM package.

The following procedure may work for you:

1) As root, run the command rpm --verify -a. Get a list of missing files. This takes quite a long time to finish.
2) From the output of the previous command, you can get a list of missing files, but possibly with false-positives. For now, just choose those under /etc/init.d
3) Query the RPM database: for each missing file, get the corresponding package name with the command
Code:
rpm -qf FILE
4) Download the packages using yumdownloader (yumdownloader[list of package names])
5) Reinstall the packages: rpm -ivh --replacepkgs[list of RPM package filenames]

I've been there done that, and the above is an outline of what I did. If you can write simple shell/python/perl programs some of the steps can be automated. Even without automation it is possible to recover by hand, too.

Good luck.

EDIT: Oh, here's my original post: http://forums.fedoraforum.org/showthread.php?t=196875
__________________
I believe in nerditarianism. I read FedoraForum for the Fedora-related posts.

Last edited by aleph; 7th April 2009 at 06:55 AM.
Reply With Quote
Reply

Tags
restore

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
i need to restore system.conf system wont start noobusinglinux Using Fedora 0 11th December 2008 12:33 PM
System Restore leenuxuser Servers & Networking 4 4th April 2008 07:44 PM
restore system frojd Using Fedora 2 18th February 2008 12:22 AM
System Restore HELP PLEASE!! dusenberg Installation and Live Media 8 9th March 2007 10:17 PM
system restore kunkumd Using Fedora 0 27th March 2006 06:35 PM


Current GMT-time: 22:45 (Tuesday, 18-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat