39
9
I want to find place to where Linux writes all boot messages. You know:
facility one [STARTED]
facility two [STARTED]
facility three [FAILED]
I searched with
find . -print0 | xargs -0 grep -i "words from boot messages"
in /var/log/, but found nothing.
I have CentOS 5.5.
For example at boot time I had: "Determining IP information for eth0... failed; no link present. Check cable?"
I don't care about error specificaly, but I can't find any log that holds this error.
dmesg | grep "no link present"
returns nothing too.
1did you run the
find
command with root permissions?find
will print all files you can list, butgrep
can only check the files you can read & some log files might be owned by root withput read permissions for other users. Also, at least GNU grep supports th-l
option to print the names of files with matches instead of matched lines. This can be very usefule looking for files that contain certain text. So trysu -c 'find /var/log -print0 | xargs -0 grep -l -i "words from boot messages"'
orsudo find /varlog -print0 | xargs -0 sudo grep -l -i "words from boot messages"
– mschilli – 2015-02-15T08:33:06.040Nowadays with systemd here is the answer.
– Pablo A – 2018-12-24T02:22:36.133