This article describes the issue of a JUNOS device being stuck in the boot process and failing to load Junos.
A JUNOS device is stuck in loading JUNOS after an upgrade.
If you see the Debug Prompt ( db> ), refer to KB20635 - While booting up, switch stuck in db> mode [juniper.net] . If you receive a Can't load kernel error message, power cycle the MX device, if the console bootup process does not return to a prompt and stops, when the following error messages are displayed:
can't load '/kernel' can't load '/kernel.old'
2020-10-23: Modified the article to reflect multiple models using JUNOS as this is not related to only MX or EX.