Every now and then when you boot up your Ubuntu machine (and this probably applies to most distros) fsck will be run to check your filesystem. Depending how fast you machine is and how large the filesystem is, this may take a while.
A script called AutoFsck allows this test to be done when you shutdown your system, this way you don't have to wait for it looking at a black screen.


