WTF?! Someone designed an experimental tool that can run a program or even a tiny operating system after a Windows crash. It has many limitations, but the ability to keep working on a PC even after a BSOD might come in handy in many situations.
When Windows experiences a critical, unrecoverable error state, the operating system crashes and displays the infamous Blue Screen of Death (BSOD). Typically, the only solution to a BSOD is to reboot the machine and hope no critical data is lost. It has been an annoying quirk of Windows for over 30 years since Microsoft introduced the error screen with Windows NT 3.1 in 1993.
However, a newly released open-source utility is turning the BSOD tradition upside down, promising users the ability to keep using their PC even after an unrecoverable Windows crash. First spotted by NTDEV, the developer of the Tiny11 Windows mod, the BugCheck2Linux tool can run a "real" Linux shell after a Windows BSOD occurrence.
App developer NSG650 explains that the BugCheck2Linux utility can do its magic by "simply" registering a BugCheck callback. According to Microsoft's official documentation, a driver can use the BugCheck callback function to add driver-specific data to the crash dump file or even reset the device to a known working state.
Windows crashed? Just switch to Linux!– NTDEV (@NTDEV_) May 15, 2023
A demonstration of the Windows bugcheck callback feature, which allows Windows to run programs AFTER it has a BSOD!
A step closer to the mythical Blue Screen of Doom.https://t.co/w10EOlJeEQ pic.twitter.com/coQQW6eKMr
The BugCheck callback function can also run an executable file or an entire, text-based, non-Windows operating system like in BugCheck2Linux's case. The utility exploits the bootvid.dll driver, a Windows video output driver in VGA mode during the bootstrap routine, for video output and a PS/2 keyboard driver to poll for keyboard input.
BugCheck2Linux runs as a driver within Windows standard environment. After the BSOD, the driver starts a tiny RISC V emulator utilizing a Linux textual shell. The developer credits other open source projects such as mini-rv32ima (the RISC V emulator), the ReactOS project (bootvid documentation), and the OSdev Wiki for the documentation regarding the PS/2 polling system.
Despite providing something unprecedented, like an entire working OS after a Windows crash, NSG650 acknowledges the tool's many limitations. The utility doesn't support ANSI escape sequences. It runs at just a 640x480 resolution in 16 colors. It only works in BIOS mode, so there is currently no support for UEFI systems. It is very sluggish and provides poor keyboard support.