View previous topic :: View next topic |
Author |
Message |
chennes n00b
Joined: 28 May 2004 Posts: 5
|
Posted: Fri May 28, 2004 8:18 pm Post subject: Startup sequence broken: need help fixing |
|
|
I'm new to Gentoo and didn't read the instructions carefully enough when using emerge to update my system. Doh! I have consequently borked a large number of system configuration files. I am in the process of rebuilding and am having some trouble figuring out what's going wrong with my boot-sequence. At first, startup appears to be going normally. At some point, however, as it executes scripts in init.d, it begins to spew numerous ": command not found" messages (note that it is NOT printing out said unfound command). It prints them out between various "Starting blah..." statements, but I'm not sure it they are ocurring before, after or during the scripts. My real confusion starts when I manually run /etc/init.d/some_service start: I get no errors. Where are these errors coming from!?
Is there any easy (or sort-of easy) way to blow away the system configuration files in etc and replace them with the default ones? I have not made many modifications to them, and nothing that I can't recreate in 20 minutes if I can just get the system to start normally! |
|
Back to top |
|
|
kallamej Administrator
Joined: 27 Jun 2003 Posts: 4975 Location: Gothenburg, Sweden
|
Posted: Fri May 28, 2004 10:13 pm Post subject: |
|
|
Without seeing the errors you get I can only guess that you may have a line in e.g. /etc/rc.conf uncommented that shouldn't be. _________________ Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat |
|
Back to top |
|
|
chennes n00b
Joined: 28 May 2004 Posts: 5
|
Posted: Fri May 28, 2004 11:44 pm Post subject: |
|
|
You see what I see: 8 lines scroll by between each "Starting..." item, each of which reads ": command not found". Not much info there. |
|
Back to top |
|
|
robmoss Retired Dev
Joined: 27 May 2003 Posts: 2634 Location: Jesus College, Oxford
|
Posted: Sat May 29, 2004 12:11 am Post subject: |
|
|
Boot from a Livecd, do the chroot stuff to get into your Gentoo installation, and re-emerge baselayout (i.e.: "emerge --oneshot baselayout" to ensure it doesn't get incorrectly recorded into your world file). _________________ Reality is for those who can't face Science Fiction.
emerge -U will kill your Gentoo
ecatmur, Lord of Portage Bash Scripts |
|
Back to top |
|
|
chennes n00b
Joined: 28 May 2004 Posts: 5
|
Posted: Sat May 29, 2004 7:43 pm Post subject: |
|
|
Unfortunately, that had no effect on the errors. Now I'm even more confused. I think that at this point the easiest way to recover the system is to reinstall it. Oh, well. |
|
Back to top |
|
|
pianosaurus l33t
Joined: 19 Apr 2004 Posts: 944 Location: Bash$
|
Posted: Sun May 30, 2004 12:34 am Post subject: |
|
|
Check your "rc-update show" and make sure it's not trying to start something that isn't there. _________________ PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post |
|
Back to top |
|
|
curtis119 Bodhisattva
Joined: 10 Mar 2003 Posts: 2160 Location: Toledo, Ohio,USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.
|
Posted: Sun May 30, 2004 1:22 am Post subject: |
|
|
Don't start over yet! Try an rc-update -s to list what services are being started. delete the ones you don't need: rc-update del <insert> boot/default Any that you want that aren't starting correctly just re-emerge.
Or you could just do an: emerge -e world. This will rebuild the entire system and all your optional packages from scratch.
Either way remember to update all config files after every emerge. Use etc-update or dispatch-conf. dispatch-conf works best for me (it has a rollback feature). If you use it remeber to emerge rcs and edit the /etc/dispatch-conf.conf file. _________________ Gentoo: it's like wiping your ass with silk. |
|
Back to top |
|
|
curtis119 Bodhisattva
Joined: 10 Mar 2003 Posts: 2160 Location: Toledo, Ohio,USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.
|
Posted: Sun May 30, 2004 1:23 am Post subject: |
|
|
Just thought of something. Are these errors related to kernel-modules not being loaded? If so add them to your /etc/modules.autoload.d/2.x file. _________________ Gentoo: it's like wiping your ass with silk. |
|
Back to top |
|
|
chennes n00b
Joined: 28 May 2004 Posts: 5
|
Posted: Sun May 30, 2004 8:22 pm Post subject: |
|
|
curtis119 wrote: | Just thought of something. Are these errors related to kernel-modules not being loaded? If so add them to your /etc/modules.autoload.d/2.x file. |
I wish I knew - the error message is completely non-descriptive. I decided to go ahead and re-install from scratch - I've been wanting to do a stage 1 anyway (the first was a stage 2), so all is not lost. I just need this server back up by Tuesday. |
|
Back to top |
|
|
curtis119 Bodhisattva
Joined: 10 Mar 2003 Posts: 2160 Location: Toledo, Ohio,USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.
|
Posted: Mon May 31, 2004 1:25 am Post subject: |
|
|
oh, OK. Sorry I couldn't help more. _________________ Gentoo: it's like wiping your ass with silk. |
|
Back to top |
|
|
ecatmur Advocate
Joined: 20 Oct 2003 Posts: 3595 Location: Edinburgh
|
|
Back to top |
|
|
chennes n00b
Joined: 28 May 2004 Posts: 5
|
Posted: Mon May 31, 2004 2:47 pm Post subject: |
|
|
Thanks for all the help -- I just finished the re-install and everything is back to normal. Note to self: next time, RTFM. |
|
Back to top |
|
|
|