Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to watch Linux boot as though it was a program compiled with GCC on a Linux environment using the -g switch so, say, I can step through the entire boot sequence from GRUB onwards, choosing to step through at C source level or assembly when necessary/desirable, by using GDB or a GDB-like tool?

I suspect it would require a virtual machine at least, to watch the boot on a host environment. Any elaboration on this topic of observing a boot would be appreciated!

share|improve this question
up vote 1 down vote accepted

bootchart contains an init(8) replacement that logs how long (and how much disk IO) processes take at boot time. While getting a single-step style boot out of init(8) (whether it is upstart, systemd, or the old-and-trusty SysV-style init) might be very difficult, at least you can take a look after the fact of what happens when.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .