How to create an Msdos.sys file larger than 1024 bytes

This article has been archived. It is offered "as is" and will no longer be updated.
Summary
Some programs expect the Msdos.sys file to be at least 1024 bytes inlength. If it is not, these programs may not work correctly. For example,if an anti-virus program detects that the Msdos.sys file is less than1024 bytes in length, the program may assume that the Msdos.sys file isinfected with a virus.

If you use the SYS command to transfer system files from your WindowsStartup disk to the hard disk, the Msdos.sys file that is copied to thehard disk is less than 1024 bytes in length. This article describes howto create an Msdos.sys file that is at least 1024 bytes in length.
More information
To create an Msdos.sys file that is at least 1024 bytes in length, followthese steps:
  1. At a command prompt, type the following lines, pressing ENTER after each line:
    attrib -s -h -r c:\msdos.sys
    edit c:\msdos.sys
  2. Add the following lines to the Msdos.sys file, where <Windows> is the folder containing Windows (for example, C:\Windows). If you are using disk compression software (such as DriveSpace), change the letter in the "HostWinBootDrv=" line to the letter of the host drive.
       [Paths]   WinDir=<Windows>   WinBootDir=<Windows>   HostWinBootDrv=C   [Options]   BootGUI=1   ;   ;Some programs on this system expect the Msdos.sys file to be at least   ;1024 bytes in length; hence, the following lines create an Msdos.sys   ;file that is greater than 1024 bytes in length. These lines are not   ;needed for Windows to boot or run.   ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxa   ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxb   ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxc   ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxd   ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxe   ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxf   ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxg   ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxh   ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxi   ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxj   ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxk   ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxl   ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxm   ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxn   ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxo   ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxp   ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxq   ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxr   ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxs	
    You must add the lines with all the Xs to make the Msdos.sys file at least 1024 bytes in length.
  3. Save the Msdos.sys file, and then exit Edit.com.
  4. Type the following line, and then press ENTER:
    attrib +s +h +r c:\msdos.sys
  5. Restart your computer.
For additional information about how to determine which folder Windows is installed in, click the following article number to view the article in the Microsoft Knowledge Base:
305792 How to determine which folder Windows is installed in
msdos
Properties

Article ID: 129998 - Last Review: 01/12/2015 15:49:57 - Revision: 2.0

  • Microsoft Windows 95
  • kbnosurvey kbarchive kbenv kbhowto KB129998
Feedback