LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Does Linux write what happens at boot to a file ? I can't find anything in var/log . (https://www.linuxquestions.org/questions/linux-general-1/does-linux-write-what-happens-at-boot-to-a-file-i-cant-find-anything-in-var-log-58601/)

lostboy 05-07-2003 01:10 PM

Does Linux write what happens at boot to a file ? I can't find anything in var/log .
 
If this file does exist, where is it ? If it does not exist, how do you create it ?


JC

Crashed_Again 05-07-2003 01:11 PM

You can use the command:

dmesg

to find out what happened at boot. If you want to send the ouput to a file do:

dmesg > dmesg.txt

lostboy 05-07-2003 01:20 PM

Very handy. Thanks very much Crashed_Again .

JC

Crashed_Again 05-07-2003 01:27 PM

Oh yeah and there is a boot log file, or at least I have one, in /var/log/boot.log

fancypiper 05-07-2003 01:28 PM

If you're using the sysklogd daemon for logging, look in /var/log/messages for a total log.

lostboy 05-07-2003 01:48 PM

Ok, I found the ' messages ' file in /var/log . And with Crushed_Again's tip I also created my own in the same directory called ' boot.txt ' . After looking at it, I now know why I couldn't find what I was looking for. It only seems to write what successfully happened at boot up.

What I'm looking for now is a way to look at what didn't go right at boot up. On boot, a message flashes by, something about an "NLS module " not loading.

What I'm really trying to do is clean things up now. I want to investigate the things that are going wrong at boot up.

Is there a file that gets written upon boot that has the things that failed ?

Thanks alot.

JC

manthram 05-07-2003 01:50 PM

everything gets written in the log file. even the things that failed

lostboy 05-07-2003 02:16 PM

Alright then, something strange is going on then. What I see at boot up is three messages that say something about "nls module", yet it doesn't show up in my ' messages ' file.

I found on Google that "NLS" is support for other languages. When I see these messages about not being able to load NLS, the appear after each of my FAT disks upon bootup. What I think is happening is some type of character support is trying to be loaded for each of my FAT partitions.

Anyone got any ideas ? It happens real fast on my computer (1.7Ghz) so I can't see it real well. But I know for certain that this is not showing up in my ' var/log/messages ' file. I asked the file manager to find "nls" and it finds nothing. Manual inspection turns up nothing as well.

Anyone got any ideas ?

Thanks,

JC

petway56 05-07-2003 02:58 PM

Maybe try:

cat /var/log/message | grep nls
and
cat /var/log/message | grep NLS
as it's case sensitive.
Try the same with the other boot logs you spoke of.


All times are GMT -5. The time now is 05:30 PM.