• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
gosh

Forgotten Setup Secrets Revealed

36 posts in this topic

Changed some things again...

@ECHO OFF

IF NOT DEFINED HFSVER (
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
IF NOT EXIST HFTOOLS CD..
IF NOT EXIST HFTOOLS\HFSPEEDUP.INI GOTO :EOF
IF NOT EXIST HFTOOLS\MUNGE.EXE GOTO :EOF
IF NOT EXIST SOURCESS\I386\TXTSETUP.SIF GOTO :EOF
IF EXIST SOURCESS\I386\TXTSETUP.BAK (
DEL /F/Q SOURCESS\I386\TXTSETUP.BAK
)
)
IF NOT DEFINED HFSVER CLS

ECHO.&ECHO Expanding compressed setup files to speed up boot process...
PUSHD SOURCESS\I386
FOR /F %%I IN ('DIR/B/A-D *_') DO (
EXPAND -R %%I>NUL 2>&1&&DEL /F/Q %%I)
POPD

ECHO.&ECHO Do not load unnessary setup files during boot process...
MUNGE HFTOOLS\HFSPEEDUP.INI -i -a SOURCESS\I386\TXTSETUP.SIF
GOTO :EOF
:EOF

And the input file for the MUNGE command...

"cpqarray = cpqarray.sys,4" "cpqarray = cpqarray.sys,4,noload"
"aha154x = aha154x.sys,4" "aha154x = aha154x.sys,4,noload"
"sparrow = sparrow.sys,4" "sparrow = sparrow.sys,4,noload"
"symc810 = symc810.sys,4" "symc810 = symc810.sys,4,noload"
"aic78xx = aic78xx.sys,4" "aic78xx = aic78xx.sys,4,noload"
"i2omp = i2omp.sys,4" "i2omp = i2omp.sys,4,noload"
"dac960nt = dac960nt.sys,4" "dac960nt = dac960nt.sys,4,noload"
"ql10wnt = ql10wnt.sys,4" "ql10wnt = ql10wnt.sys,4,noload"
"amsint = amsint.sys,4" "amsint = amsint.sys,4,noload"
"asc = asc.sys,4" "asc = asc.sys,4,noload"
"asc3550 = asc3550.sys,4" "asc3550 = asc3550.sys,4,noload"
"mraid35x = mraid35x.sys,4" "mraid35x = mraid35x.sys,4,noload"
"ini910u = ini910u.sys,4" "ini910u = ini910u.sys,4,noload"
"ql1240 = ql1240.sys,4" "ql1240 = ql1240.sys,4,noload"
"aic78u2 = aic78u2.sys,4" "aic78u2 = aic78u2.sys,4,noload"
"symc8xx = symc8xx.sys,4" "symc8xx = symc8xx.sys,4,noload"
"sym_hi = sym_hi.sys,4" "sym_hi = sym_hi.sys,4,noload"
"sym_u3 = sym_u3.sys,4" "sym_u3 = sym_u3.sys,4,noload"
"asc3350p = asc3350p.sys,4" "asc3350p = asc3350p.sys,4,noload"
"abp480n5 = abp480n5.sys,4" "abp480n5 = abp480n5.sys,4,noload"
"cd20xrnt = cd20xrnt.sys,4" "cd20xrnt = cd20xrnt.sys,4,noload"
"ultra = ultra.sys,4" "ultra = ultra.sys,4,noload"
"adpu160m = adpu160m.sys,4" "adpu160m = adpu160m.sys,4,noload"
"dpti2o = dpti2o.sys,4" "dpti2o = dpti2o.sys,4,noload"
"ql1080 = ql1080.sys,4" "ql1080 = ql1080.sys,4,noload"
"ql1280 = ql1280.sys,4" "ql1280 = ql1280.sys,4,noload"
"ql12160 = ql12160.sys,4" "ql12160 = ql12160.sys,4,noload"
"perc2 = perc2.sys,4" "perc2 = perc2.sys,4,noload"
"hpn = hpn.sys,4" "hpn = hpn.sys,4,noload"
"cbidf2k = cbidf2k.sys,4" "cbidf2k = cbidf2k.sys,4,noload"
"dac2w2k = dac2w2k.sys,4" "dac2w2k = dac2w2k.sys,4,noload"
"4,noload,noload" "4,noload"
"toside = toside.sys" "toside = toside.sys,,noload"
"lbrtfdc = lbrtfdc.sys" "lbrtfdc = lbrtfdc.sys,,noload"
"floppy = sfloppy.sys" "floppy = sfloppy.sys,,noload"
",,noload,,noload" ",,noload"

Haven't tested the above yet. Need to get some sleep now, so will give it a try tomorrow. Hope it'll work, but I still need to add the following to the above script somehow...

"fat	  = fastfat.sys" "fat	  = fastfat.sys,,noload"
"mps_up = halapic.dll" "mps_up = halapic.dll,,noload"
"mps_mp = halapic.dll" "mps_mp = halapic.dll,,noload"
"syspro_mp = hal.dll" "syspro_mp = hal.dll,,noload"

0

Share this post


Link to post
Share on other sites

Just a quick rant, because it's one of those things which really does get me riled.

I gave the correct switches for the DEL command in my example! There is no /Q switch needed or required in any case throughout your script.

As for the munge stuff, I really don't know anything about this tool . If all you wanted was a method of replacing lines in a file there are many tools available to do this which look better than the one you chose.

0

Share this post


Link to post
Share on other sites
As for the munge stuff, I really don't know anything about this tool . If all you wanted was a method of replacing lines in a file there are many tools available to do this which look better than the one you chose.

I'm looking for a simple, free of charge command line tool which can do this for me. Munge belongs to the Windows NT 4.0 Resource Kit and does exactly this... but as I've found out now it can't handle files as large as TXTSETUP.SIF, so I need to look for a different tool. If you know of any command line tool which could do this, please let me know.

0

Share this post


Link to post
Share on other sites

Seems like I've got it all working now :w00t:

@ECHO OFF

IF NOT DEFINED HFSVER (
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
IF NOT EXIST HFTOOLS CD..
IF NOT EXIST HFTOOLS\SED.EXE GOTO :EXPAND
IF NOT EXIST HFTOOLS\HFSPEEDUP.SED GOTO :EXPAND
IF NOT EXIST SOURCESS\I386\TXTSETUP.SIF GOTO :EXPAND
)
IF NOT DEFINED HFSVER CLS

:NOLOAD
ECHO.&ECHO Do not load unnessary setup files during boot process...
PUSHD SOURCESS\I386
IF EXIST TXTSETUP.BAK DEL /F TXTSETUP.BAK
COPY /Y TXTSETUP.SIF TXTSETUP.BAK
POPD
PUSHD HFTOOLS
SED -f HFSPEEDUP.SED ..\SOURCESS\I386\TXTSETUP.BAK > ..\SOURCESS\I386\TXTSETUP.SIF
POPD
GOTO :EXPAND

:EXPAND
ECHO.&ECHO Expanding compressed setup files to speed up boot process...
PUSHD SOURCESS\I386
FOR /F %%I IN ('DIR/B/A-D *_') DO (
EXPAND -R %%I>NUL 2>&1&&DEL /F %%I)
POPD
GOTO :EOF

:EOF

I'm using SED now for replacing the lines I would like to have changed. The following is my input file.

# [FileSystems.Load]
s/fat = fastfat.sys/fat = fastfat.sys,,noload/g

# [Hal.Load]
/,2,hal.dll/!s/mps_up = halapic.dll/mps_up = halapic.dll,,noload/g
s/mps_mp = halapic.dll/mps_mp = halapic.dll,,noload/g
s/syspro_mp = hal.dll/syspro_mp = hal.dll,,noload/g

# [SCSI.Load]
s/cpqarray = cpqarray.sys,4/cpqarray = cpqarray.sys,4,noload/g
s/aha154x = aha154x.sys,4/aha154x = aha154x.sys,4,noload/g
s/sparrow = sparrow.sys,4/sparrow = sparrow.sys,4,noload/g
s/symc810 = symc810.sys,4/symc810 = symc810.sys,4,noload/g
s/aic78xx = aic78xx.sys,4/aic78xx = aic78xx.sys,4,noload/g
s/i2omp = i2omp.sys,4/i2omp = i2omp.sys,4,noload/g
s/dac960nt = dac960nt.sys,4/dac960nt = dac960nt.sys,4,noload/g
s/ql10wnt = ql10wnt.sys,4/ql10wnt = ql10wnt.sys,4,noload/g
s/amsint = amsint.sys,4/amsint = amsint.sys,4,noload/g
s/asc = asc.sys,4/asc = asc.sys,4,noload/g
s/asc3550 = asc3550.sys,4/asc3550 = asc3550.sys,4,noload/g
s/mraid35x = mraid35x.sys,4/mraid35x = mraid35x.sys,4,noload/g
s/ini910u = ini910u.sys,4/ini910u = ini910u.sys,4,noload/g
s/ql1240 = ql1240.sys,4/ql1240 = ql1240.sys,4,noload/g
s/aic78u2 = aic78u2.sys,4/aic78u2 = aic78u2.sys,4,noload/g
s/symc8xx = symc8xx.sys,4/symc8xx = symc8xx.sys,4,noload/g
s/sym_hi = sym_hi.sys,4/sym_hi = sym_hi.sys,4,noload/g
s/sym_u3 = sym_u3.sys,4/sym_u3 = sym_u3.sys,4,noload/g
s/asc3350p = asc3350p.sys,4/asc3350p = asc3350p.sys,4,noload/g
s/abp480n5 = abp480n5.sys,4/abp480n5 = abp480n5.sys,4,noload/g
s/cd20xrnt = cd20xrnt.sys,4/cd20xrnt = cd20xrnt.sys,4,noload/g
s/ultra = ultra.sys,4/ultra = ultra.sys,4,noload/g
s/adpu160m = adpu160m.sys,4/adpu160m = adpu160m.sys,4,noload/g
s/dpti2o = dpti2o.sys,4/dpti2o = dpti2o.sys,4,noload/g
s/ql1080 = ql1080.sys,4/ql1080 = ql1080.sys,4,noload/g
s/ql1280 = ql1280.sys,4/ql1280 = ql1280.sys,4,noload/g
s/ql12160 = ql12160.sys,4/ql12160 = ql12160.sys,4,noload/g
s/perc2 = perc2.sys,4/perc2 = perc2.sys,4,noload/g
s/hpn = hpn.sys,4/hpn = hpn.sys,4,noload/g
s/cbidf2k = cbidf2k.sys,4/cbidf2k = cbidf2k.sys,4,noload/g
s/dac2w2k = dac2w2k.sys,4/dac2w2k = dac2w2k.sys,4,noload/g

# [BusExtenders.Load]
s/toside = toside.sys/toside = toside.sys,,noload/g
s/lbrtfdc = lbrtfdc.sys/lbrtfdc = lbrtfdc.sys,,noload/g

# [ScsiClass.Load]
s/floppy = sfloppy.sys/floppy = sfloppy.sys,,noload/g

# FIX ANY ERRORS WHICH MAY OCCUR
s/4,noload,noload/4,noload/g
s/,,noload,,noload/,,noload/g

I doubt that I need the "fix" entries above, but this was a problem which could occur when using MUNGE.EXE. I need to test all this somewhat further, see if I can clean up my code some more, et cetera. Any input is welcome! And Yzöwl, thank you for your advice! :)

0

Share this post


Link to post
Share on other sites

I've finished the initial release of my post-HFSLIP scripts based on this topic.

Click here for the dedicated thread for this little project.

:D

0

Share this post


Link to post
Share on other sites

hi newbie here, what do you do with the Entries_BootDriv's_.ini file?

The .bat file i just double click but .ini?

Thanks

I'm using nlite

0

Share this post


Link to post
Share on other sites
Now if only I could adapt this setupldr.bin to change the hal on a syspreped machine!

You can script the HAL change using RunOnce...

edit: I posted how to do it before, but can't remember the tool I used, and the search here sucks. I'll look around though if you're interested.

edit2: You can hot swap the HAL with devcon: http://msdn2.microsoft.com/en-us/library/m...60-aaeb017e5fc7

Edited by fly
0

Share this post


Link to post
Share on other sites

Hi there

I've tried part 2 and it doesn't work at all, it just says file missing e.g. rr174xp.sys missing, when i take a look in my backup folder i find rr174xp.sy_ and when I expand the file the new file is named rr174x.sys... I've removed rr174xp.sy_ frem my I386 folder as the guide says but it cant figure out that I've already expanded the files for it :S

Kalle

0

Share this post


Link to post
Share on other sites

Whoa! Editing the TXTSETUP.SIF file looks like it can get the install go on way faster, because one can really disable the many unnecessary stuff there. I have few questions, tough. First at all - then the TXTSETUP.SIF file are excessive number of empty lines. Must they have been preserved? I dubt that, but I better ask first :)

Second, there is could of things that I want to know what they are and if I can ",noload" them. The SCSI stuff is self-explainatory (tough I have still one minor question, will the Deamon tools work then to emulate CDroms? Because it work as emulating them as being the SCSI ones...) but how about this?

[busExtenders.Load]

pcmcia = pcmcia.sys

If I did not have any PCMCIA slot on my machine and on most PCs, I should ",noload" it, right?

[files.i8042]

i8042prt.sys,4

What is this?

[files.sermouse]

sermouse.sys,4

Is that a support for serial mouse, eg. mouse connected to COM port?

[scsiClass.Load]

cdrom = cdrom.sys

disk = disk.sys

floppy = sfloppy.sys,,noload

ramdisk = ramdisk.sys

SCSI floppy is already disabled, disabling the disk if not having any SCSI card will be good too, right? And disabling the cdrom only when I never need the Deamon tools to emulate one, right? And the ramdisk is what? SCSI ramdisk? Is that really necessary to have?

[inputDevicesSupport.Load]

serial = serial.sys

serenum = serenum.sys

Is not that again the serial mouse?

[files.ohci1394]

ohci1394.sys,4

1394bus.sys,4

The 1394 bus is already disabled above (ohci1394 = ohci1394.sys,,noload) - but will it be good to disable loading this files also?

[files.sbp2port]

sbp2port.sys,4

What is this? Soundblater port or what the...?!

[files.lbrtfdc]

lbrtfdc.sys,4

I have no idea what is this either.

[files.vga]

vga.sys,4

framebuf.dll,2

vga.dll,2

vga256.dll,2

vga64k.dll,2

Do are all those VGA files really necessary? Aren't the vga.dll, vga256.dll and vga64.dll just same versions of the file for different VGa capable cards and witch one is used on normal modern hardware? Then the rest could be discarded?

Anyone can help me out?

Edited by caps_buster
0

Share this post


Link to post
Share on other sites

Well, this is not "question time". ;)

Empty lines in txtsetup.sif can be removed allright.

i8042 is the "right " name for PS/2 keyboard and mouse bus:

http://www.file.net/process/i8042prt.sys.html

More generally, try searching in Google for the driver name alone or together with TXTSETUP.SIF and you'll probably find all the info you need.

Don't assume that anything is "properly" named.

IDE and ATA/SATA devices use disk.sys or cdrom.sys as well

serial.sys/serenum.sys are about the serial PORT(s) not mouse.

1394 (read "firewire") is NOT i8042.

You must read a lot of things besides this thread in order to be able to identify properly system files, their use, the need or lack of need for them.

The SMALLEST possible TXTSETUP.SIF you will ever find (used in a MicroPE project) is here:

http://www.911cd.net/forums//index.php?showtopic=17807

your mileage may vary.

jaclaz

0

Share this post


Link to post
Share on other sites

FWIW, the fastest install that can take place will be achieved by:

installing Unknown Device Identifier

running it to get ALL of your hardware device strings

opening TXTSETUP.INF

scrolling to [HardwareIdsDatabase]

put in all of your device strings, edit the driver files accordingly

Open SYSSETUP.INF

scroll to [DeviceInfsToInstall]

remove INFs for devices you don't have. for example:

mchgr.inf (media changer -- trust me, you don't have one)

1394.inf -- Firewire

tape.inf -- tape drivers

netirsir.inf -- Infrared devices

pcmcia.inf -- laptops only

battery.inf -- laptops only

etc etc etc etc etc etc

here are the devices from win2k's TXTSETUP that the WinXP TXTSETUP does not have. in other words, support for these was removed from xp... this probably means that it would be very rare for you to encounter any of these:

cpqfws2e = cpqfws2e.sys,4 ; XP doesn't have

cpqarray = cpqarray.sys,4 ; XP doesn't have

cpqarry2 = cpqarry2.sys,4 ; XP doesn't have

ncrc710 = ncrc710.sys,4 ; XP doesn't have

buslogic = buslogic.sys,4 ; XP doesn't have

flashpnt = flashpnt.sys,4 ; XP doesn't have

lp6nds35 = lp6nds35.sys,4 ; XP doesn't have

ql2100 = ql2100.sys,4 ; XP doesn't have

cpqfcalm = cpqfcalm.sys,4 ; XP doesn't have

fireport = fireport.sys,4 ; XP doesn't have

fd16_700 = fd16_700.sys,4 ; XP doesn't have

tffsport = tffsport.sys,4 ; XP doesn't have

so you could comment them all out.

editing empty lines will not gain you any speed.

much may be learned by analyzing my files.

0

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.