Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
From my inittab:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
Ppl who want console enter 3, for graphical login enter 5.
1 is what u would use as when u boot "linux single".
Dont use 0 or 6.
It doesn't sound like a kernel issue to me - if you haven't changed anything in the kernel then it definately won't be. I recon that its either a damaged filesystem or some files have been erase (possible /etc/inittab) from your system.
Find yourself a boot disk (a 'rescue' disk would be good) boot from that and run 'fsck' on all your paritions and see what that brings up. ('fsck /dev/hda1' then 'fsck /dev/hda2' etc [or 'fsck /dev/sda1' for that matter])
What was the last thing you did before it stop playing nicely?
It was used for a webserver with JRun.
Worked fine until last Sat.
I could not find the boot disk.
Any suggestion what to do next?
Could I download it from somewhere like http://www.ibiblio.org?
At runlevel prompt, I typed s (Single user).
Then I realized the whole
/etc directory has gone!
How did this happen?
What to do next?
Please help me!!!
Sincerely,
cjc
I would have thought you would be able to download boot disks from the www site for the distro you are using, then use the dos version of rawrite to write them...
As for what to do. There are lot of files in /etc so unless you have a backup I don't see whatelse you can do but reinstall... Naturally you'll have a backup won't you
As for how it happened
Code:
rm -rf /etc
or commands to that effect. If your filesystem was corrupt it is conceivable that the inode that stored the details for the /etc directory has been lost, reasonably unlikely though.
If I reinstall, is there a way to
save/reuse information under "/home" where my
programs are and "/var" where my db is?
Thank you so much,
cjc
Sure, I will backup!!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.