[SOLVED] LFS6.8 startup problem on kernel log daemon
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
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.
... Did you check the /etc/rc.d/init.d/sysklogd file ...
Thank you again for your prompt hint, druuna. I did not check because I am forced to power off/on. What I did do was to start in recovery mode, and the system starts all right. So I shall do that again, and then try to activate the log daemons manually and try to see what comes out of that. I shall keep you posted on the results.
UPDATE:
I tried but failed to activate the daemons manually. Next best thing, I tried to do a normal boot again, and when the system stopped, I powered off/on, restarted Ubuntu, mounted the lfs partition and inspected var/log/wtmp and var/run/utmp for possible erros, but files were empty.
This looks bad.
Last edited by vmsda; 04-02-2011 at 04:24 AM.
Reason: Updating
Why did you look at /var/log/wtmp and /var/run/utmp? You need to look at the /etc/rc.d/init.d/sysklogd file.
You can try the following to determine if klogd is the actual culprit: move the sysklogd startup file (I assume you booted into ubuntu and mounted LFS at some place):
Code:
cd <mountpoint>/etc/rc.d/rc3.d/
mv S10sysklogd _S10sysklogd
Reboot into LFS and see if the boot process continues. If it does, then something is indeed wrong with the /etc/rc.d/init.d/sysklogd file and you can do the following steps:
After editing /etc/rc.d/init.d/sysklogd you can check if it starts correctly by doing:
Code:
cd /etc/rc.d/init.d
./sysklogd start
If it hangs you can kill it (ctrl-c) and try again from the edit step.
If the problem is fixed, restore the file you moved earlier:
Code:
cd /etc/rc.d/rc3.d
mv _S10sysklogd S10sysklogd
Hope this helps.
BTW: Don't edit a previous post when updating, just post a follow up message, that way I get notified (I do check my previous posts, but not all the time).
Why did you look at /var/log/wtmp and /var/run/utmp? You need to look at the /etc/rc.d/init.d/sysklogd file.
Hello, druuna:
I looked at the sysklogd file, which is a script, and it did not display any messages. So, from looking at other questions and answers in this forum I was led to have a look at those logs which, by the way, were empty.
So I took a more radical approach. Since I had followed your proverbial wisdom and had saved the "sources" and "tools" contents as per the end of chapter 5 in the Book, I decided to rebuild the system from there. And now I am happy to say that at the end of the saga the system did boot properly - except that the eth0 net interface did not come up because I tried to use dhcp (I do not have a static setup) and, strangely, when I log in as root and change the directory, the prompt never shows me the working directory, althought it obviously takes it into account for subsequent commands. But anyway, these are small glitches in an overall pleasant experience.
About the dhcp problem: Probably a configuration issue. Check the files in /etc/sysconfig/network-devices/ to start with.
About the root prompt: LFS does only do minimal configuring. Have a look at BLFS, especially chapter 3. The setting of the prompt (among a lot of other things) is done in The Bash Shell Startup Files
Before I close this thread, I should like to make a couple of points:
1. To thank everyone who took the trouble to answer my queries. In this respect, I must in all fairness single out druuna, who not only contributed most to the conclusion of my labours, but also answered sometimes within minutes of my posting.
2. Since my lack of knowledge and other resource types precludes me from contributing in a more meaningful way, I was left with the option of a standard cash donation, which I have done with pleasure.
I had the same issue on my LFS system.
My system is based on LFS 7.5.
One thing can also try is to check the permissions of the /sbin/klogd binary.
On my system, it was set to -r-x------.
Do a chmod 755 /sbin/klogd and see if that helps. It worked on my system.
Hope this helps.
Mike.
I had the same issue on my LFS system.
My system is based on LFS 7.5.
One thing can also try is to check the permissions of the /sbin/klogd binary.
On my system, it was set to -r-x------.
Do a chmod 755 /sbin/klogd and see if that helps. It worked on my system.
Hope this helps.
Mike.
after rebooting I still have the same issue.
I thought I fixed it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.