I currently have a NAS (Ubuntu 10.04) on my network without an access to a monitor due to a lack of a graphics card. I noticed that every time I restart the NAS, it's been taking longer to fully restart. I suspect that something might be wrong, and the warning or error messages are being displayed during startup.
Is there a log file that Ubuntu prints to for everything that is displayed from the moment the system starts up until the login screen? I have email set up on the system via .mailrc and .mstmprc where I could email out with the mail command. I would like to email myself the log file every time the system starts up so I can monitor the system's health. Please let me know how I could do this.