Installing Windows 3.11 to a RAMDISK. |
I start with a bootdisk with necessary files on it. This will support a ZIP drive and a CDROM. |
io.sys | Boot file-DOS 5.0 to 7.0 |
msdos.sys | Boot file-DOS 5.0 to 7.0 |
command.com | Command Processor-DOS 5.0 to 7.0 or third party |
config.sys | Boot file-user created |
himem.sys | Memory Manager-included with Windows 3.x |
emm386.exe | Memory Manager-included with Windows 3.x |
aoatapi.sys | CDROM Driver-optional |
aspippm1.sys | IOMEGA ZIP drive file-optional |
nibble.ilm | IOMEGA ZIP drive file-optional |
autoexec.bat | Boot file-user created |
xmsdsk.exe | Ramdisk Driver-Preferred |
mouse.com | Mouse Driver-optional |
mscdex.exe | CDROM driver-optional |
guest.exe | Zip Drive Driver-optional |
You could add other files such as CHOICE.COM, EDIT.COM amd MEM.EXE. But these are what I needed to get it going.
Next I set up the CONFIG.SYS file. |
DEVICE=HIMEM.SYS /TESTMEM:OFF
DOS=HIGH,UMB
DEVICE=EMM386.EXE NOEMS
FILES=30
BUFFERS=20
STACKS=9,256
FCBS=1
LASTDRIVE=Z
DEVICEHIGH=AOATAPI.SYS /D:IDECD001
DEVICEHIGH=ASPIPPM1.SYS FILE=NIBBLE.ILM SPEED= 7 /INFO
DEVICEHIGH=ANSI.SYS
DEVICE=SMARTDRV.EXE /DOUBLE_BUFFER
DEVICEHIGH=IFSHLP.SYS |
The DEVICEHIGH=ANSI.SYS is optional. DEVICE=SMARTDRV.EXE and DEVICEHIGH=IFSHLP.SYS can wait if you don't have the files.
These are part of the Windows 3.11 installation.
Next, the AUTOEXEC.BAT file: |
ECHO OFF |
XMSDSK R: 20000 /Y | Creates a 20mb RAMDISK as Drive R |
SMARTDRV.EXE | Installed by Windows 3.11 |
LH GUEST LETTER=Y | Loads Iomega ZIP Drive as Letter Y. |
LH MSCDEX /D:IDECD001 /V /L:Z | Loads CDROM as Letter Z |
SET TEMP=R:\WINDOWS\TEMP | Added by Windows 3.11 |
Y:\PKUNZIP -D Y:\WIN31 R:\ | Unpacks the ZIP file on the ZIP Disk |
R:\ | Move to R drive so A drive won't be used. |
PATH=R:\;R:\WINDOWS | Sets the PATH to use the RAMDISK. |
SET COMSPEC=R:\COMMAND.COM | Sets the system to use the RAMDISK. |
CALL WIN | Starts Windows. |
CALL Y:\WINPACK.BAT | Calls the batch to update the ZIP file. |
Now we're ready to install Windows 3.11.
Reboot the computer with the new boot disk. You may get errors if the files aren't there yet. But that should not stop the installation. I turned off my hard drive for this installation, so only the A drive, ZIP drive, CDROM and RAMDISK were available. This protects all the files on the hard drive. If the partition is FAT32, DOS can't access it anyway.
After the boot, you should have a RAMDISK as R drive. I specified 20mb, as the computer I used only has 32mb of RAM. You can create a larger RAMDISk if you want. But Windows 3.11 only needs about
10mb. Any more would be for add on programs.
Next, install Windows 3.11 to drive R. Note: I did not have a DOS directory. Only the bootdisk.
When the installation finishes, DO NOT REBOOT THE COMPUTER. Exit to DOS.
Copy the COMMAND.COM file from A:\ to R:\
I have the PKWARE files PKZIP.EXE and PKUNZIP.EXE on the ZIP disk.
Move to Y:\ and type: |
pkzip -rP -whs win31 r:\*.* |
Note the CASE of the letters -rP and -whs. This is important.
Now you can reboot the computer. Windows should be operational. When any changes are made to Windows, you must ZIP the R drive again to save the updates. It is obviously important to do this before you reboot the computer. Once you have Windows set the way you want it, sound, Network, games, you could save it to a CDROM where it cannot be altered.
Once the system is booted, you can take the ZIP disk out. The A drive must have a disk in it, as the system recalls that it was booted from that drive.
You could make a simple batch file to ZIP the windows when you exit the program. |
echo off
choice /c:yn /n Update ZIP file? Yes or No!
if errorlevel 2 goto end
if errorlevel 1 goto packit
goto end
:packit
y:\pkzip -u -br:\ -rP -whs y:\win31a r:\*.*
:end
|
I saved this on the ZIP disk as winpack.bat. It is called from the AUTOEXEC.BAT right after WIN do it runs when you exit Windows.
Note: The CHOICE.EXE is required for the menu. Otherwise you could set the file to just ZIP when called.
In the PKZIP line, the -u options only adds files that have changed or aren't already in the ZIP file. This can speed things up a little when ZIPPING the Windows. The -br:\ option builds the temporary ZIP file on R drive (if there is room). Building on the ZIP disk can be slow. Also, if the disk doesn't have freespace more than the size of the file, there is no room to build the file. This is also true when specifying and alternate drive.
The speed of loading depends on how many files you have. I installed Windows with no options selected. Then I added a Netcard. The size of the ZIPPED file is about 5mb. Depending on what options you want and the functionality you need you can make it much smaller. See SlimWin for the bare minimum you need to run Windows 3.x. You can store and load this from Floppy disks as well. That way, the computer does not have to have either a ZIP drive or a CDROM. But, you can imagine how slow that can be.
You can store the ZIP file on a FAT16 partition and load it from there. This of course makes loading faster and more convenient. It will not harm your later Windows. But it does make the drive accessible so that you could damage long filename files if you accessed them with older DOS or Windows 3.x.
|