Is there anywhere in the ubuntu (or linux in general) logs which can record a computer booting up and the OS failing to load, due to a problem encountered during the boot stage?


you can check it into


This directory has all types of logs


Record of all logins and logouts by normal users and system processes.


Log of all attempted bad logins to the system. Accessed via the lastb command.


Debugging output from various packages.


Kernel ring buffer. The content of this file is referred to by the dmesg command.


GDM log files. Normally a subset of the last X log file. See /var/log/xdm.log for mode details.


KDM log file. Normally a subset of the last X log file. See /var/log/xdm.log for more details.


System logs.


Process accounting is the bookkeeping of process activity. The raw data of process activity is maintained here. Three commands can be used to access the contents of this file dump-acct, sa (summary of process accounting) and lastcomm (list the commands executed on the system).


Active user sessions. This is a data file and as such it can not be viewed normally. A human-readable form can be created via the dump-utmp command or through the w, who or users commands.


Log of all users who have logged into and out of the system. The last command can be used to access a human readable form of this file. It also lists every connection and run-level change.


XDM log file. Normally subset of the last X startup log and pretty much useless in light of the details the X logs is able to provide us with. Only consult this file if you have XDM specific issues otherwise just use the X logfile.

/var/log/XFree86.0.log, /var/log/XFree86.?.log

X startup logfile. An excellent resource for uncovering problems with X configuration. Log files are numbered according to when they were last used. For example, the last log file would be stored in /var/log/XFree86.0.log, the next /var/log/XFree86.9.log, so on and so forth.


The 'system' log file. The contents of this file is managed via the syslogd daemon which more often than not takes care of all log manipulation on most systems.
  • Can you just confirm if i turned on my box and the OS didn't load up because, say a hardware fault, this would be captured in one of the logs above? Is messages.log the one which would record this? – David Jun 2 '12 at 16:02
  • @davide not every time... if it is grub or the hdd or somethign with a cable that is the problem you will get an on-screen message. This will not be recorded into a log file. – Rinzwind Jun 2 '12 at 17:14
  • @Rinzwind, would something be captured to show that the startup did not succeed? – David Jun 2 '12 at 18:20
  • @david nope. Unless you get a digital camera and make a pixs yourself. But those errors are very rare. – Rinzwind Jun 2 '12 at 18:40

While I'll find Shekhar Raut answer correct, I think the list could be a bit shorther.

Since OP is asking about booting and nothing else - kernel logs in Linux (in general) can be found at:


So, if you have a boot failure due to some hardware problem, this should be the first place to look at.


Looks like Ubuntu removed this log file since 12.04 (not confirmed), and now the right place to look for the system logs is:

  • there is no such file in ubuntu 13.10 – rubo77 Mar 31 '14 at 12:05

Starting with Ubuntu 12.04 (AFAIK), there is /var/log/boot.log, which logs the output from early boot.

  • That doesen't contain all the information that was written during boot – rubo77 Mar 31 '14 at 12:06

contains the logs produced by the kernel during boot. after boot there is nearly no event added but you will see the uptime on each entry

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.