I know I can run
dmesg to look at boot errors. However, my system is failing to boot right now. It hangs indefinitely while trying to initialize hard drives. However, I can boot up into safe mode.
When I boot up in safe mode and look at
dmesg it does not contain old boot messages. It just contains the boot messages from the current boot-up into safe mode.
How do I save the
dmesg log (or any log for that matter) during the failed boot process so that I can view it when I log in to diagnose via save mode?