Advertisement
Telegram ads for your business · TCA Media
Advertisement
Telegram ads for your business · TCA Media
IT

Grub4DOS patch for Windows NT 3.1 support

Using the free DeepSeek tool, the author prepared changes to enable direct booting of Windows NT 3.1 in Grub4DOS and fixed compatibility with older NTFS versions. The patch has been submitted in Pull Request #461.

03 Dec, 15:07Read in Russian
habr.com

Previously, the bootloader could not directly work with the original NTFS 1.0 from Windows NT 3.1: the system had to be launched by replacing NTLDR and using a special wrapper. Meanwhile, in the Grub4DOS 0.4.6a branch, strict boot sector checks caused issues with connecting other older NTFS versions as well.

To address this, the author set up virtual test environments with Windows NT 3.1 and NT 3.50, captured sector-by-sector images of the partitions, and moved the build to Debian 7 after an unsuccessful attempt to use MSYS/MinGW. Initially, they relaxed the checks for older volumes, restoring NTFS 1.1 boot capability.

Subsequently, comparing the images helped identify differences in NTFS 1.0. In this version, the master file table starts at cluster zero, the array of corrective values in the FILE record is located at a different offset, and the root directory uses only a resident index. Separate handlers for reading records and directories were added to the driver for these cases.

The file system version is now determined by the $Volume record rather than indirect boot sector indicators. The work, which the author expected to complete in two evenings, ultimately took four evenings with verification on real images.

Advertisement
Telegram ads for your business · TCA Media