LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-02-2004, 01:33 AM   #1
waste
LQ Newbie
 
Registered: Sep 2003
Posts: 12

Rep: Reputation: 0
Accidentally deleted /etc/init.d .. what do i do? :|


hey i was wantint to delete a file in /etc/init.d however i accidentally deleted /etc/init.d itself :|:|

what can i do? is there a place where i can download all the files again? or is there another way of recovering them?

thanks in advance

bryan
 
Old 03-02-2004, 05:22 AM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
right.. well what distro you got (as distros usualy have custom files), you can make them yourself tho
/etc/inittab
has links to tell what and were certain files are, its just easyer to go put in your install cd and see if you can grab the files from there, if not then i sugest you learn shell scripting
 
Old 03-02-2004, 05:30 AM   #3
waste
LQ Newbie
 
Registered: Sep 2003
Posts: 12

Original Poster
Rep: Reputation: 0
hey buddy.. im using gentoo

ive got some of the files out of the stage 3 tarball.. ill list the files that i've recovered and the ones i have.. if you could give me some idea of where i can get them from :|

files i got:
bootmisc
checkfs
checkroot
clock
consolefont
crypto-loop
depscan.sh
domainname
functions.sh
gpm
halt.sh
hdparm
hostname
keymaps
local
localmount
modules
net.eth0
net.lo
netmount
nscd
numlock
reboot.sh
rmnologin
rsyncd
runscript.sh
serial
shutdown.sh
sshd
switch
urandom

-----------------------
and the ones i had:
xdm
xfs
famd
aumix
dcron
cupsd
mysql
mythbackend
consolefont
esound
sysklogd
rmnologin
hotplug
bootsplash
 
Old 03-03-2004, 05:27 AM   #4
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
right, those files very a big deal
the ones u said u dont ahve:
xfree86
syslogd
cron
CUPS
mysql
(i dono, alsa?)

and thats all i know off the top of my head
 
Old 03-03-2004, 08:07 AM   #5
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
oh dear!

Let us know what you did.
Has you distro got some form of update or repair?


When you recover
Make a tarball of your /etc directory!

remember,
if you have something safely backed up you will never need it!



billy
 
Old 03-04-2004, 03:39 AM   #6
waste
LQ Newbie
 
Registered: Sep 2003
Posts: 12

Original Poster
Rep: Reputation: 0
ye cheers... i will make a tarball of my entire etc folder

i just backed up what i needed and reinstalled gentoo.. was a day-long lesson
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Accidentally Deleted Everything In /var/log Joe Heng Slackware 3 12-23-2004 07:20 PM
Accidentally deleted files rwalkerphl Linux - Newbie 3 06-24-2004 06:11 PM
7.2 Redhat - accidentally deleted /lib gedi1 Linux - Software 2 02-27-2004 01:49 PM
accidentally deleted /etc/profile tanbetien Fedora 2 11-21-2003 09:42 PM
accidentally deleted /etc/rc.d/init.d/smb!! heathpitts Linux - Newbie 2 03-07-2003 12:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration