tomasz86 Posted September 27, 2012 Posted September 27, 2012 (edited) The above INF won't work The whole thing is that you need to add the changes to SETUPREG.HIV in order to make it work in the text setup. You still need the above setting later but the HDD must be properly detected in the text setup first. The SETUPREG.HIV files for each edition of Win2k which are included in USP5.1 have this setting already added. Edited September 27, 2012 by tomasz86
fdv Posted September 28, 2012 Posted September 28, 2012 (edited) To expand on my advice and clear something up, ALL of the HIVE* INF files execute during text setup. They all build the registry which is assembled prior to GUI. You do not need to add to SETUPREG.HIV. (Editing that file is a mess anyway).Look at the HIVE files in my fileset... look at all of the system tweaks I add (use Winmerge to compare). You can make a LOT of changes to the OS by editing these filesedit: this is not 100% correct, see my post below about using SYSSETUP.INF for LBA, I misremembered what was in my own file Edited September 30, 2012 by fdv
tomasz86 Posted September 29, 2012 Posted September 29, 2012 (edited) You still need to edit the SETUPREG.HIV though. The HIVE*.INF files are indeed executed during text setup but it's done at the very end of it while you need to select your disk / partition much earlier. It's that moment when the 48-bit LBA support must be enabled and SETUPREG.HIV is responsible for it.You should also remember that SETUPREG.HIV is different for every edition of Win2k (Professional, Server, etc.) and different for every language version too so don't try to switch them. Edited September 29, 2012 by tomasz86
bphlpt Posted September 29, 2012 Posted September 29, 2012 I'm surprised that fdv says that you do not need to add to SETUPREG.HIV, while tomasz86 feels so strongly that you do. Hopefully fdv will continue to interact on this thread, because I believe that with his experience he will be able to shed light on what can and cannot be done in this area.Cheers and Regards
jaclaz Posted September 29, 2012 Posted September 29, 2012 (edited) Since there is WAY too little confusion on this , I will throw something on the table :http://reboot.pro/11212/http://reboot.pro/11312/Would the erwan.l thingy work on SETUPREG.HIV?(it should if you are running XP or later cannot say from within a 2k)jaclaz Edited September 29, 2012 by jaclaz
fdv Posted September 30, 2012 Posted September 30, 2012 In truth I always stuck the LBA in SYSSETUP.INF. From my version in my fileset:[infs.Always]syssetup.inf,SpecialInstall[specialInstall]AddReg = Special.Addreg[special.Addreg]HKLM,"SYSTEM\CurrentControlSet\Services\Atapi\Parameters","EnableBigLba",0x10001,01,00,00,00 ; enable large block addressingThis way the LBA is accomplished neatly and immediately. I posted otherwise because I'd forgotten and this forced me to check!! Sorry about my misleading post above
os2fan2 Posted November 6, 2012 Posted November 6, 2012 (edited) Hivefix.inf is activated through txtsetup.sif. This is SI.TXT, the instructions for adding files to win2k, and how to activate additional INF files.You really do need to edit SETUPREG.HIV. This is the registry for the boot system. It won't see your fixed disk correctly elsewise. This batch file does that. You edit the second line of this batch file to where your win2k source lives, including the cd file. You run the batch file, and it corrects the setupreg.hive, without modifying anything else.setlocalset winsource=c:\win2kcd\i386attrib -r -a -s -h %winsource%\setupreg.hivreg load HKLM\Setup %winsource%\setupreg.hivset regkey=ControlSet001\Services\atapi\Parametersreg add HKLM\Setup\%regkey% /v EnableBigLba /t reg_dword /d 00000001 /freg unload HKLM\Setupset winsource=set regkey=endlocalThis is a sample text file, used to modify both dosnet.inf and txtsetup.sif. The items are in order, so all you have to search for is the beginnings of each section. All the bits go to the end of the current section (ie before the next square bracket), unless you're modifying the default directory. We add a number of files here. You should delete matching entries from both dosnet.inf and txtsetup.inf if these are not included.All of the stuff is from the resource kit, except themes.cpl, which you can download from microsoft as an NT4 fix. It allows you to access the win98 style themse from the control panel.The first two entries in txtsetup.sif create extra 'hidden' controls for hotplug and console.We add a number of rk files to the default install, wie WINXP et al.The Windows bitmaps live in webvw.dll, so we add the Win9x stuff there.Setup.bmp lives in the system32 directory, installs from setup_w.bm_------ dosnet.inf ---------------------------------------------d1,hivefix.infd1,directx.cpld1,diskpart.exed1,fsutil.exed1,kill.exed1,linkd.exed1,list.exed1,msvcp60.dlld1,oeminfo.inid1,oemlogo.bmpd1,reg.exed1,runext.dlld1,sc.exed1,schtasks.exed1,setx.exed1,shortcut.exed1,takeown.exed1,themes.cpld1,tlist.exed1,tweakui.cntd1,tweakui.cpld1,tweakui.hlpd1,where.exe------ txtsetup.sif --------------------------------------------[SourceDisksFiles]console.dll = 1,,,,,,,2,0,0,console.cplhotplug.dll = 1,,,,,,,2,0,0,hotplug.cplhivefix.inf = 1,,,,,,,20,3,3directx.cpl = 2,,,,,,,2,0,0diskpart.exe = 2,,,,,,,2,0,0fsutil.exe = 2,,,,,,,2,0,0kill.exe = 2,,,,,,,2,0,0linkd.exe = 2,,,,,,,2,0,0list.exe = 2,,,,,,,2,0,0msvcp60.dll = 2,,,,,,,2,0,0oeminfo.ini = 2,,,,,,,2,0,0oemlogo.bmp = 2,,,,,,,2,0,0reg.exe = 2,,,,,,,2,0,0runext.dll = 2,,,,,,,2,0,0schtasks.exe = 2,,,,,,,2,0,0sc.exe = 2,,,,,,,2,0,0setx.exe = 2,,,,,,,2,0,0shortcut.exe = 2,,,,,,,2,0,0takeown.exe = 2,,,,,,,2,0,0themes.cpl = 2,,,,,,,2,0,0tlist.exe = 2,,,,,,,2,0,0tweakui.cnt = 2,,,,,,,21,0,0tweakui.cpl = 2,,,,,,,2,0,0tweakui.hlp = 2,,,,,,,21,0,0where.exe = 2,,,,,,,2,0,0; setup_w.bmp = 2,,,,,,,1,0,0,setup50.bmp; add these to the end to make hivefix.inf work.[HiveInfs.Fresh]DelReg = hivefix.inf,AddRegAddReg = hivefix.inf,AddReg[HiveInfs.Upgrade]DelReg = hivefix.inf,AddRegAddReg = hivefix.inf,AddReg; These have not really changed, so...[SetupData]SetupSourcePath = "\"DefaultPath=\FENSTER---------------------------------------------------------------------WEBVW.DLL Add bitmaps to resource table, using reshack.exeThis is a working version of HIVEFIX.INF. It is placed after the other INF files in txtsetup.sif[Version]Signature = "$Windows NT$"ClassGUID={00000000-0000-0000-0000-000000000000}DriverVer=11/14/1999,5.00.2183.1; vers 2195/1[AddReg]; homegrown; flags: see 'windows registry guide', p276HKCU,"Console","InsertMode",0x00010001,1HKCU,"Console","QuickEdit", 0x00010001,0HKLM,"Software\Microsoft\Command Processor","CompletionChar",0x00010001,9HKLM,"Software\Microsoft\Command Processor","PathCompletionChar",0x00010001,9HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","ParseAutoexec",0x00000000,"0"HKCU,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","ParseAutoexec",0x00000000,"0"; HiveCLS.infHKCR,"batfile","",0x00000002,"%MS_DOS_BATCH_FILE%"HKCR,"comfile","",0x00000002,"%MS_DOS_APPLICATION%"; Hivesft.infHKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList","ProfilesDirectory",0x00020002,"%DEFAULT_PROFILES_DIR%"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList","AllUsersProfile",0x00000002,"%ALL_USERS%"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList","DefaultUserProfile",0x00000002,"%DEFAULT_USER%"; fix for ejecting removable disksHKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","allocatedasd",0x00000002,"2"; HiveSys.infHKLM,"SYSTEM\CurrentControlSet\Control\Nls\Language","InstallLanguage",,"%INSTALL_LANGUAGE%"HKLM,"SYSTEM\CurrentControlSet\Control\Nls\Locale","(Default)",,%INSTALL_LOCALE%; UKINT keybdHKLM,"SYSTEM\CurrentControlSet\Control\Keyboard Layout\DosKeybCodes","0001089",0x00000002,"uk"HKLM,"SYSTEM\CurrentControlSet\Control\Keyboard Layouts\00010809","Layout File",0x00000002,"KBDUKINT.DLL"HKLM,"SYSTEM\CurrentControlSet\Control\Keyboard Layouts\00010809","Layout Id",0x00000002,"0087"HKLM,"SYSTEM\CurrentControlSet\Control\Keyboard Layouts\00010809","Layout Text",0x00000002,"%UK_INTERNATIONAL%"; Hivedef.inf; International SettingsHKLM,"SYSTEM\CurrentControlSet\Control\Nls\Locale","(Default)",0x00000002,"00000C09"HKCU,"Control Panel\International","iCalendarType",0x00000000,"%INTL_ICALENDAR%"HKCU,"Control Panel\International","iCountry",0x00000000,"%INTL_ICOUNTRY%"HKCU,"Control Panel\International","iCurrDigits",0x00000000,"%INTL_ICURRDIGITS%"HKCU,"Control Panel\International","iCurrency",0x00000000,"%INTL_ICURRENCY%"HKCU,"Control Panel\International","iDate",0x00000000,"%INTL_IDATE%"HKCU,"Control Panel\International","iDigits",0x00000000,"%INTL_IDIGITS%"HKCU,"Control Panel\International","iFirstDayOfWeek",0x00000000,"%INTL_IFIRSTWEEKDAY%"HKCU,"Control Panel\International","iLZero",0x00000000,"%INTL_ILZERO%"HKCU,"Control Panel\International","iMeasure",0x00000000,"%INTL_IMEASURE%"HKCU,"Control Panel\International","iNegCurr",0x00000000,"%INTL_INEGCURR%"HKCU,"Control Panel\International","iTime",0x00000000,"%INTL_ITIME%"HKCU,"Control Panel\International","iTLZero",0x00000000,"%INTL_ITLZERO%"HKCU,"Control Panel\International","Locale",0x00000000,"%INTL_LOCALE%"HKCU,"Control Panel\International","s1159",0x00000000,"%INTL_S1159%"HKCU,"Control Panel\International","s2359",0x00000000,"%INTL_S2359%"HKCU,"Control Panel\International","sCountry",0x00000000,"%INTL_SCOUNTRY%"HKCU,"Control Panel\International","sCurrency",0x00000000,"%INTL_SCURRENCY%"HKCU,"Control Panel\International","sDate",0x00000000,"%INTL_SDATE%"HKCU,"Control Panel\International","sDecimal",0x00000000,"%INTL_SDECIMAL%"HKCU,"Control Panel\International","sLanguage",0x00000000,"%INTL_SLANGUAGE%"HKCU,"Control Panel\International","sList",0x00000000,"%INTL_SLIST%"HKCU,"Control Panel\International","sLongDate",0x00000000,"%INTL_SLONGDATE%"HKCU,"Control Panel\International","sShortDate",0x00000000,"%INTL_SSHORTDATE%"HKCU,"Control Panel\International","sThousand",0x00000000,"%INTL_STHOUSAND%"HKCU,"Control Panel\International","sTime",0x00000000,"%INTL_STIME%"HKCU,"Control Panel\International","sTimeFormat",0x00000000,"%INTL_STFORMAT%"; Marquee SettingsHKCU,"Control Panel\Screen Saver.Marquee","Font",0x00000000,"%SCREEN_SAVER_MARQUEE_FONT%"HKCU,"Control Panel\Screen Saver.Marquee","Text",0x00000002,"%SCREEN_SAVER_MARQUEE_TEXT%"; TempDirHKCU,"Environment","TEMP",0x00020000,"%TEMP_DIR%"HKCU,"Environment","TMP",0x00020000,"%TEMP_DIR%"; Shell FoldersHKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","AppData",0x00020002,"%U_SHELL_FOLDERS_APPDATA%"HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Desktop",0x00020002,"%U_SHELL_FOLDERS_DESKTOP%"HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Favorites",0x00020002,"%U_SHELL_FOLDERS_FAVORITES%"HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","NetHood",0x00020002,"%U_SHELL_FOLDERS_NETHOOD%"HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Personal",0x00020000,"%U_SHELL_FOLDERS_PERSONAL%"HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","PrintHood",0x00020002,"%U_SHELL_FOLDERS_PRINTHOOD%"HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Programs",0x00020002,"%U_SHELL_FOLDERS_PROGRAMS%"HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Recent",0x00020002,"%U_SHELL_FOLDERS_RECENT%"HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","SendTo",0x00020002,"%U_SHELL_FOLDERS_SENDTO%"HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Start Menu",0x00020002,"%U_SHELL_FOLDERS_START_MENU%"HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Startup",0x00020002,"%U_SHELL_FOLDERS_STARTUP%"HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Templates",0x00020002,"%U_SHELL_FOLDERS_TEMPLATES%"HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Cookies",0x00020000,"%U_SHELL_FOLDERS_COOKIES%"HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","My Pictures",0x00020000,"%U_SHELL_FOLDERS_MYPICTURES%"HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Local Settings",0x00020000,"%U_SHELL_FOLDERS_LOCAL_SETTINGS%"HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Local AppData",0x00020000,"%U_SHELL_FOLDERS_LOCAL_APPDATA%"HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Cache",0x00020000,"%U_SHELL_FOLDERS_CACHE%"HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","History",0x00020000,"%U_SHELL_FOLDERS_HISTORY%"; runext.dllHKCR,CLSID\{%CSID00%},,,"%NAME%"HKCR,CLSID\{%CSID00%}\InProcServer32,,,"runext.dll"HKCR,CLSID\{%CSID00%}\InProcServer32,"ThreadingModel",,"Apartment"HKCR,*\%SHEX%,,,"%RUNEXTKEY%"HKCR,*\%SHEX%\%RUNEXTKEY%,,,"{%CSID00%}"HKCR,Folder\%SHEX%,,,"%RUNEXTKEY%"HKCR,Folder\%SHEX%\%RUNEXTKEY%,,,"{%CSID00%}"; TweakUIHKLM,"Software\Microsoft\Windows\CurrentVersion\Run",,,"RUNDLL32.EXE TWEAKUI.CPL,TweakMeUp"[Strings]; Hivecls.infMS_DOS_APPLICATION="PC-DOS Application"MS_DOS_BATCH_FILE="PC-DOS Batch File"; Hivesys.infINSTALL_LANGUAGE="0C09"; InternationalINTL_ICALENDAR="1"INTL_ICOUNTRY="61"INTL_ICURRDIGITS="2"INTL_ICURRENCY="0"INTL_IDATE="2"INTL_IDIGITS="2"INTL_IFIRSTWEEKDAY="6"INTL_ILZERO="1"INTL_IMEASURE="1"INTL_INEGCURR="1"INTL_ITIME="1"INTL_ITLZERO="1"INTL_LOCALE="00000C09"INTL_S1159="AM"INTL_S2359="PM"INTL_SCOUNTRY="Australia"INTL_SCURRENCY="$"INTL_SDATE="/"INTL_SDECIMAL="."INTL_SLANGUAGE="ENA"INTL_SLIST=","INTL_SLONGDATE="dddd, d MMMM, yyyy"INTL_SSHORTDATE="yyyy/MM/dd"INTL_STHOUSAND=","INTL_STIME=":"INTL_STFORMAT="HH:mm:ss"; MarqueeSCREEN_SAVER_MARQUEE_FONT="Georgia"SCREEN_SAVER_MARQUEE_TEXT="Windows 2000 Professional"; Shell FoldersDEFAULT_PROFILES_DIR="%SystemDrive%\USERS"DEFAULT_USER="Default"ALL_USERS="Public"TEMP_DIR="%USERPROFILE%\Temp"U_SHELL_FOLDERS_APPDATA="%USERPROFILE%\AppData"U_SHELL_FOLDERS_DESKTOP="%USERPROFILE%\W\Desktop"U_SHELL_FOLDERS_FAVORITES="%USERPROFILE%\Favorites"U_SHELL_FOLDERS_NETHOOD="%USERPROFILE%\NetHood"U_SHELL_FOLDERS_PERSONAL="%USERPROFILE%\Personal"U_SHELL_FOLDERS_PRINTHOOD="%USERPROFILE%\PrintHood"U_SHELL_FOLDERS_PROGRAMS="%USERPROFILE%\Start Menu\Programs"U_SHELL_FOLDERS_RECENT="%USERPROFILE%\Recent"U_SHELL_FOLDERS_SENDTO="%USERPROFILE%\SendTo"U_SHELL_FOLDERS_START_MENU="%USERPROFILE%\Start Menu"U_SHELL_FOLDERS_STARTUP="%USERPROFILE%\Start Menu\Programs\Startup"U_SHELL_FOLDERS_TEMPLATES="%USERPROFILE%\Templates"U_SHELL_FOLDERS_COOKIES="%USERPROFILE%\Cookies"U_SHELL_FOLDERS_MYPICTURES="%USERPROFILE%\Personal\Pictures"U_SHELL_FOLDERS_LOCAL_SETTINGS="%USERPROFILE%\Local"U_SHELL_FOLDERS_LOCAL_APPDATA="%USERPROFILE%\AppData"U_SHELL_FOLDERS_CACHE="%USERPROFILE%\Temporary Internet Files"U_SHELL_FOLDERS_HISTORY="%USERPROFILE%\History"; runext.dllNAME="Run shell extension"RUNEXTKEY="RunExt"SHEX="shellex\ContextMenuHandlers"CSID00=2AD91900-A873-11cf-9A80-00AA00C16E65 Edited November 6, 2012 by os2fan2
caps_buster Posted March 24, 2013 Posted March 24, 2013 Dear red2k - to keep things simple, with my W2k SP4 czech install I just replaced the SETUREG.HIV and hooray! It works and now I can install on 320G HDD, witch was impossible to see/format before this change.Many people in the thread claim, that it can be done "after" or use install just on small OS partition to make it work. WRONG!I use 320G HDD and only 2G OS FAT32 partition (rest NTFS data) and Win2k SP4 refuse to install on the 2G partition, because they claim it is "damaged" and they have to format it. However the format run VERY slow and at the end it just say that it cannot do the job, because HDD is damaged!Now, after your fix, it all run just PURRRRRRFECTLY! Thanks a lot!
LeakHunter Posted October 9, 2014 Posted October 9, 2014 So guys, how and what would be the solution to add EnableBigLba support into the installation disc? I really having hard times here, because after windows 2000 installation it is too late to add... I think I've 20 times reinstalled windows 2000 on 500GB HDD...
os2fan2 Posted April 11, 2016 Posted April 11, 2016 You really need to modify setup.hiv as through my batch file. This is because the full disk needs to be seen by setup, and setup.hiv is the registry here. setup.hiv is the first half of the system hive. Because this represents an inactive windows setup, CurrentControlSet does not exist, and you have to modify ControlSet000 instead. This is what my batch file does. If ye plan to install other drivers, you should use the same controlset000. You don't need to insert any LBA fix into the hive*.inf files, as it is done already in the setup.hiv
submix8c Posted April 12, 2016 Posted April 12, 2016 Hi, Wendy! Long time no see! @LeakHunter - The very first box in said post alters SETUPREG.HIV off-line. You need to "dump" the CD to the HDD on another NT-type system and run that "script" to add that entry then completely Reburn the CD (bootable, of course). If you have an ISO-editing program (e.g UltraIso) then just extract the ISO Image from the CD, copy the SETUPREG.HIV "somewhere", fix it using the Script, replace it in the Image, and Reburn. Then just boot to it in YOU computer and it just works! HTH
rloew Posted May 4, 2017 Posted May 4, 2017 I took a different approach to this problem. I Patched the Disk Driver so that 48-Bit LBA was enabled regardless of the Registry setting. This allowed me to Install and run 2000 SP4 from the high end of a 1TiB Hard Drive.
rloew Posted July 20, 2018 Posted July 20, 2018 I haven't published it on my Website. I don't know how much interest there would be.
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