Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Hello,
I have recently been experimenting building my own kernel and have run into some trouble. I feel my first problem is reading the messages outputted during boot-up.
Why are some lines displayed during boot-up but are omitted in /var/log/dmesg?
During boot-up, I can see something about VFS:... and then many hundred lines quickly scroll by looking similar to the following: udev[349]: delete_path: rmdir(/dev/.udev/failed) failed: Read-only file system
When I check dmesg, there is no mention of any of the above errors.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
I don't know why log does differ than what is on the screen but if you wish to review you can try this. I don't know the distro or version you have but here is an example of a Redhat distro to review what is on the screen.
When the grub boot manager comes up hit the 'e' key then if it is a default grub then you move up or down with the arrow key to highlight the kernel you boot. Usually defaults it. Then hit ' e ' again and you have the boot kernel configuration. arrow down to the vmlinuz line and hit ' e' again. Arrow to the end of the line and if there is the words like rghb and quiet remove those and add the number ' 3 ' to it. Hit ' b ' to boot the kernel into runlevel 3. Once booted you are at a login prompt. Hold down the left shift key and then hit page up key to scroll back. Should see everything that went to the screen from start to finish.
After boot-up I can use right-shift+pgup to see some of the boot messages but since there are so many of the mentioned udev lines, the buffer fills up and I cannot see what happens at the beginning.
Try hitting the pause/break key on your keyboard during the boot process - it should pause the output as it's going by, so you can make a note of it.
...(apparently, Ctrl+NumLock has the same effect).
I tried both and neither paused the output. I also tried some combinations of CTRL+pause, ALT+pause... nothing. Am I missing something??
I guess what I am looking for is where do I find udevmonitor's output. This is not in /var/log/syslog or /var/log/messages no matter what udev_log level is set to.
Why are some lines displayed during boot-up but are omitted in /var/log/dmesg?
As for dmesg not matching what you see on screen: that's because
dmesg is a window into the kernel ring-buffer. Problems
with scripts are NOT on kernel level, hence won't show there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.