Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Forgotten Setup Secrets Revealed

- - - - -

  • Please log in to reply
35 replies to this topic

#26
Arie

Arie

    One Man Army

  • Member
  • PipPipPipPipPip
  • 835 posts
  • Joined 27-August 07
Changed some things again...
@ECHO OFFIF 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 CLSECHO.&ECHO Expanding compressed setup files to speed up boot process...PUSHD SOURCESS\I386FOR /F %%I IN ('DIR/B/A-D *_') DO (  EXPAND -R %%I>NUL 2>&1&&DEL /F/Q %%I)POPDECHO.&ECHO Do not load unnessary setup files during boot process...MUNGE HFTOOLS\HFSPEEDUP.INI -i -a SOURCESS\I386\TXTSETUP.SIFGOTO :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"

Not trying to pretend the enemy that I am.


How to remove advertisement from MSFN

#27
Yzöwl

Yzöwl

    Wise Owl

  • Super Moderator
  • 4,557 posts
  • Joined 13-October 04
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

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.

#28
Arie

Arie

    One Man Army

  • Member
  • PipPipPipPipPip
  • 835 posts
  • Joined 27-August 07

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.
Not trying to pretend the enemy that I am.

#29
Arie

Arie

    One Man Army

  • Member
  • PipPipPipPipPip
  • 835 posts
  • Joined 27-August 07
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! :)
Not trying to pretend the enemy that I am.

#30
Arie

Arie

    One Man Army

  • Member
  • PipPipPipPipPip
  • 835 posts
  • Joined 27-August 07
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
Not trying to pretend the enemy that I am.

#31
Sherwin

Sherwin
  • Member
  • 9 posts
  • Joined 12-March 05
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

#32
fly

fly

    Member

  • Member
  • PipPip
  • 177 posts
  • Joined 21-December 04

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.microso...60-aaeb017e5fc7

Edited by fly, 17 March 2008 - 09:13 AM.


#33
kalle_mod

kalle_mod

    Newbie

  • Member
  • 18 posts
  • Joined 25-September 07
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

#34
caps_buster

caps_buster

    Member

  • Member
  • PipPip
  • 117 posts
  • Joined 20-February 09
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, 01 March 2009 - 04:59 AM.

Disclaimer: Any errors in spelling, tact, or fact are transmission errors.

#35
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,677 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag
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/...042prt.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...showtopic=17807
your mileage may vary.

jaclaz

#36
fdv

fdv

    MSFN Expert

  • Developer
  • 1,111 posts
  • Joined 16-July 04
  • OS:Windows 7 x64
  • Country: Country Flag
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 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users