|
Free Open Book
PC Hacks 100 Industrial-Strength Tips and Tools |
Hack 91 Hack the Windows 95/98/Me DOS Startup
Gain more control and boot faster by customizing this DOS configuration file. In this hack, you'll learn ways to customize how DOS boots and to make booting up faster. 9.8.1 A Typical MSDOS.SYS FileWindows 95, 98, and Me use a file called MSDOS.SYS to configure the initial boot process. MSDOS.SYS resides in the root folder of the boot drive with Read-Only, System, and Hidden file attributes. The MSDOS.SYS file contains sections of information pertaining to the Windows installation and boot options. The [Paths] section of the file lists information about Windows' files (the Windows folder and location of the Registry), and the [Options] section holds information about customizing bootup.
To view and edit the contents of the C:\MSDOS.SYS file, you must first remove the Read Only and Hidden file attributes. To do this, get to a DOS prompt (in Windows, open MS-DOS Prompt or go to StartRun, type in COMMAND.COM, and then click OK) and issue the following commands: X:\>C: C:\FOO>CD \ C:\>attrib -r -h
Note that there are spaces between the -r, -h, and -s in the previous command. The file is now ready to be viewed or edited with a plain text editor like DOS Edit, Windows Notepad, or similar. The contents of the file may look like this: ;FORMAT [Paths] WinDir=C:\WINDOWS WinBootDir=C:\WINDOWS HostWinBootDrv=C [Options] BootMulti=1 BootGUI=1 DoubleBuffer=1 AutoScan=1 WinVer=4.10.1998 ; ;The following lines are required for compatibility with other programs. ;Do not remove them (MSDOS.SYS needs to be >1024 bytes). ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxa ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxb ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxc ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxd ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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x-Me installation. It says that Windows is installed in and runs from the C:\WINDOWS folder on drive C:, it is possible to interrupt the boot process to stop at a DOS prompt rather than load Windows without interruption, the Windows GUI is loaded, the Double Buffer setting is asserted if the disk drive interface needs it, and Scandisk is run with prompts if the system was not shut down properly before. A variety of other parameters is set by default but not shown under the [Options] section of the file. These are: BootDelay=2 BootKeys=0 BootMenu=0 BootMenuDefault=1 BootMenuDelay=30 BootSafe=0 DblSpace=1 DrvSpace=1 LoadTop=1 Logo=1 Network=0 These parameters mean that:
To give you more control over the optimization of the boot process, the following settings can be changed or added under the [Options] section of the file: BootDelay=5 BootKeys=1 BootMenu=1 BootMenuDelay=5 DblSpace=0 DrvSpace=0 Logo=0 Network=1 Adding BootDelay=5 gives you more time to respond with any boot key selections. BootKeys=1 shows you the F-key options for bootup at the bottom of the screen. BootMenu=1 turns on the boot menu. BootMenuDelay=5 lets the menu stay on the screen for only 5 seconds instead of 30. DblSpace=0 and DrvSpace=0 specify that these drivers will not be loaded. Logo=0 mandates that the Windows startup logo will not be displayed. Finally, if you have a network setup you can have support for it if you start Windows in Safe mode by adding Network=1. The advantages to these changes are that you can exercise more control over bootup, the menu doesn't hang around forever, and you do not tie up resources loading and displaying the Windows logo. 9.8.2 The Details of MSDOS.SYSThe [Paths] section of MSDOS.SYS may contain the following information (default values for each parameter follow the parameter's name in parentheses):
The [Options] section of MSDOS.SYS may contain the following information:
To disable the disk compression driver from being loaded, set both DBLSPACE=0 and DRVSPACE=0. One way to tell if a drive has been compressed is to boot to DOS without loading the compression drivers, then get a directory listing of the hard drive with DOS's DIR. You will see a large file named either DBLSPACE.000 or DRVSPACE.000, which contains the contents of the compressed drive. You cannot format or partition a compressed drive because it is merely a large file containing the data that was on the previously uncompressed drive.
9.8.3 The "Junk" at the End of the MSDOS.SYS FileThe MSDOS.SYS file also contains a large section of filler characters that are necessary to keep the file large enough for programs that expect the MSDOS.SYS file to be at 1,024 bytes or larger. Leave this block of characters as is to ensure proper operation of your applications.
|
Main Menu |
| 500 Juegos Gratis | 500 Giochi Gratis | 500 Jeux Gratuits | 500 Jogos Gratis | 500 Kostenlose Spiele |