It's a sign of how little I need Windows for most things that today was the first time since October (when I installed Linux) that I tried to restart my dual-boot machine in DOS mode. It hung. So, I rebooted, pressed F8 and went for "Previous DOS...", which worked. _Then_ I found I couldn't get back to Windows - I'd get past the Lilo boot and it would hang on 'Starting Windows 95'. So I booted to Linux and had a look at the hda1 partition where Win95 squats. I found that, having renamed system files to allow the DOS 6.22 boot, those files hadn't been restored, so Win95 couldn't load. As a temporary fix, I wrote a simple script to put things back for Win95. Now, obviously Lilo is obstructing the Win95 Boot to Previous DOS and Restart in DOS mode options. It looks as if Windows puts some magic number in the MBR to signal its boot options. This doesn't worry me hugely but is there a way round it? I have Windows on /dev/hda1 and Linux on /dev/hdb1. Could I fix this by restoring the MBR, swapping the disks and then getting Lilo to map drive 80 onto 81 (and vice versa) when booting to windows? I enclose the script for anyone who makes the same mistake as I did.
Attachment:
UNDOS
Description: Binary data