HardDriv'n Posted October 9, 2010 Share Posted October 9, 2010 (edited) Hi.I've attempted to modify some files from a boot image I've extracted from my Windows install disc.Everything runs as to be expected, except for the 'setup from cd' option.Here are the setup files. Could someone tell me what I did wrong?AUTOEXEC.BAT@ECHO OFFset EXPAND=YESSET DIRCMD=/O:Nset LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 Cclscall setramd.bat %LglDrv%set temp=c:\set tmp=c:\path=%RAMD%:\;a:\;%CDROM%:\copy command.com %RAMD%:\ > NULset comspec=%RAMD%:\command.comcopy extract.exe %RAMD%:\ > NULcopy readme.txt %RAMD%:\ > NUL:ERRORIF EXIST ebd.cab GOTO EXTecho Please insert Windows 98 Startup Disk 2echo.pauseGOTO ERROR:EXT%RAMD%:\extract /y /e /l %RAMD%: ebd.cab > NULecho The diagnostic tools were successfully loaded to drive %RAMD%.echo.IF "%config%"=="SETUP_CD" goto AUTOSETUPIF "%config%"=="HELP" GOTO HELPIF "%config%"=="NOCD" GOTO QUITLH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%echo.GOTO QUIT:HELPclscall help.batecho Your computer will now restart and the startup menu will appear.echo.echo.echo.echo.echo.echo.echo.echo.echo.echo.restart.comGOTO QUIT:AUTOSETUPset CDROM=FOO23FINDCD.EXEif "%CDROM%"=="FOO23" goto NOCDROMpath=a:\;%CDROM%\%CDROM%cd \WIN98echo.OEMSETUP.EXE /K "/IE /NF"goto QUIT:NOCDROMecho.echo The Windows 98 Setup files were not found.echo.goto QUIT:QUITecho To get help, type HELP and press ENTER.echo.rem clean up environment variablesset CDROM=set LglDrv=SETRAMD.BAT@echo offset RAMD=set CDROM=echo.echo Preparing to start your computer.echo This may take a few minutes. Please wait...echo.a:\findramdif errorlevel 255 goto no_ramdriveif not errorlevel 3 goto no_ramdrivegoto do_shift:loopif errorlevel %1 goto no_shift:do_shiftset cdrom=%2shiftshiftif not %1*==* goto loopgoto no_ramdrive:no_shiftset ramd=%2if "%RAMD%"=="C" goto c_drivegoto success:c_driveecho Windows 98 has detected that drive C does not contain a valid FAT orecho FAT32 partition. There are several possible causes.echo.echo 1. The drive may need to be partitioned. To create a partition on the drive, echo run FDISK from the MS-DOS command prompt. echo.echo 2. You may be using third-party disk-partitioning software. If you are using echo this type of software, remove the Emergency Boot Disk and restart your echo computer. Then, follow the on-screen instructions to start your computer from echo a floppy disk.echo .echo 3. Some viruses also cause your drive C to not register. You can use a virus echo scanning program to check your computer for viruses.echo.goto success:no_ramdriveecho The Windows 98 startup disk could not create a temporary drive for the echo diagnostic tools. This may be because this computer has less than the echo minimum required extended memory. echo.:successCONFIG.SYS[menu]menuitem=SETUP_CD, Start Windows 98 Setup from CD-ROM. (Auto)menuitem=CD, Start PC with CD-ROM support. (Manual)menuitem=USB, Start PC with CD-ROM and USB support.menuitem=NOCD, Start PC without CD-ROM or USB support.menuitem=HELP, View the Help file.menudefault=CD,30menucolor=7,0[SETUP_CD]device=himem.sys /testmem:offdevice=oakcdrom.sys /D:oemcd001 device=btdosm.sys device=flashpt.sysdevice=btcdrom.sys /D:oemcd001device=aspi2dos.sysdevice=aspi8dos.sysdevice=aspi4dos.sysdevice=aspi8u2.sysdevice=aspicd.sys /D:oemcd001[CD]device=himem.sys /testmem:offdevice=oakcdrom.sys /D:mscd001 device=btdosm.sys device=flashpt.sysdevice=btcdrom.sys /D:mscd001device=aspi2dos.sysdevice=aspi8dos.sysdevice=aspi4dos.sysdevice=aspi8u2.sysdevice=aspicd.sys /D:mscd001devicehigh=ramdrive.sys /E 2048[USB]device=himem.sys /testmem:offdevice=oakcdrom.sys /D:mscd001 device=btdosm.sys device=flashpt.sysdevice=btcdrom.sys /D:mscd001device=aspi2dos.sysdevice=aspi8dos.sysdevice=aspi4dos.sysdevice=aspi8u2.sysdevice=aspicd.sys /D:mscd001device=USBASPI.SYS /W /Rdevice=DI1000DD.SYSdevicehigh=ramdrive.sys /E 2048[NOCD]device=himem.sys /testmem:offdevicehigh=ramdrive.sys /E 2048[HELP]device=himem.sys /testmem:off[COMMON]files=10buffers=10dos=high,umbstacks=9,256lastdrive=zMy main attempts here were to add a ram-drive option, and also include USB drivers support.-EDIT-All of this code is a 'copy & paste' hack from multiple sources, so I actually don't understand some of it.I just want an easy way to reinstall quickly, with everything in one place in case I have to restart...... again.Also, not having a floppy drive on my other PCs is a motivator to include the floppy tools ram-drive, so I can run everything from the cd. Edited October 9, 2010 by HardDriv'n Link to comment Share on other sites More sharing options...
HardDriv'n Posted October 10, 2010 Author Share Posted October 10, 2010 (edited) Nevermind. I figured something out.1. Extracted the boot image from my orginal Windows 98 SE install disc, using the final 'ISObuster' freeware edition.2. Used the trial version of 'WinImage' to resize the 1440kb floppy image to a 2880kb floppy image.3. Used 'WinImage' to add the files extracted from 'EBD.CAB' into the floppy image, and then deleted the cab.4. I used the command line tool 'MKBT' to extract a bootsector from my Windows 98 emergency boot floppy.5. I used the same 'MKBT' to add that bootsector into the resized floppy image.6. Rebuilt the untouched Windows disc structure with the freeware 'IMGBurn', after selecting the floppy boot image in emulation settings. (Added UDF support while at it)Done. Edited October 12, 2010 by HardDriv'n Link to comment Share on other sites More sharing options...
hottext Posted October 19, 2010 Share Posted October 19, 2010 (edited) "a ram-drive option, and also include USB drivers support."Windows 98 SE come with USB drivers support!we need to know the make of your Computer so we can tell you how to get to your Setup Utility on your Computer BIOS!for you need to go to Computer Setup UtilityAnd Enable the USB controllerAnd windows 98SE will see the usb ram-drive afterwords!Remainder Windows 98FE don't come with USB drivers support! Edited October 19, 2010 by hottext Link to comment Share on other sites More sharing options...
submix8c Posted December 16, 2010 Share Posted December 16, 2010 A wee bit late for posting, but...@HardDriv'n - It's possible (provided you understand the BAT files) to combine the EBD method with the CD Boot method for RamDrive. Search MSFN for more alternatives to Ramdrive.sys as well (better freeware methods). One place to look is the "more than 1gb memory"(?) thread. Also, the EBD.CAB can be "re-cabbed" with only the programs you actually want and then extracted to the created RamDrive thus saving space in the IMG file.@hottext - re-read the first post. The Boot is Pure DOS-mode and not Win32-98SE, so DOS-mode USB drivers are necessary (as has already been incorporated). :; Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now