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

48-bit LBA on Win2k setup


  • Please log in to reply
52 replies to this topic

#51
fdv

fdv

    MSFN Expert

  • Developer
  • 1,111 posts
  • OS:Windows 7 x64
  • Country: Country Flag
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 addressing

This 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 :wacko:


How to remove advertisement from MSFN

#52
os2fan2

os2fan2

    Advanced Member

  • Member
  • PipPipPip
  • 421 posts
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.

setlocal
set winsource=c:\win2kcd\i386
attrib -r -a -s -h %winsource%\setupreg.hiv
reg load HKLM\Setup %winsource%\setupreg.hiv
set regkey=ControlSet001\Services\atapi\Parameters
reg add HKLM\Setup\%regkey% /v EnableBigLba /t reg_dword /d 00000001 /f
reg unload HKLM\Setup
set winsource=
set regkey=
endlocal

This 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.inf
d1,directx.cpl
d1,diskpart.exe
d1,fsutil.exe
d1,kill.exe
d1,linkd.exe
d1,list.exe
d1,msvcp60.dll
d1,oeminfo.ini
d1,oemlogo.bmp
d1,reg.exe
d1,runext.dll
d1,sc.exe
d1,schtasks.exe
d1,setx.exe
d1,shortcut.exe
d1,takeown.exe
d1,themes.cpl
d1,tlist.exe
d1,tweakui.cnt
d1,tweakui.cpl
d1,tweakui.hlp
d1,where.exe

------ txtsetup.sif --------------------------------------------

[SourceDisksFiles]
console.dll  = 1,,,,,,,2,0,0,console.cpl
hotplug.dll  = 1,,,,,,,2,0,0,hotplug.cpl
hivefix.inf  = 1,,,,,,,20,3,3
directx.cpl  = 2,,,,,,,2,0,0
diskpart.exe = 2,,,,,,,2,0,0
fsutil.exe   = 2,,,,,,,2,0,0
kill.exe     = 2,,,,,,,2,0,0
linkd.exe    = 2,,,,,,,2,0,0
list.exe     = 2,,,,,,,2,0,0
msvcp60.dll  = 2,,,,,,,2,0,0
oeminfo.ini  = 2,,,,,,,2,0,0
oemlogo.bmp  = 2,,,,,,,2,0,0
reg.exe      = 2,,,,,,,2,0,0
runext.dll   = 2,,,,,,,2,0,0
schtasks.exe = 2,,,,,,,2,0,0
sc.exe       = 2,,,,,,,2,0,0
setx.exe     = 2,,,,,,,2,0,0
shortcut.exe = 2,,,,,,,2,0,0
takeown.exe  = 2,,,,,,,2,0,0
themes.cpl   = 2,,,,,,,2,0,0
tlist.exe    = 2,,,,,,,2,0,0
tweakui.cnt  = 2,,,,,,,21,0,0
tweakui.cpl  = 2,,,,,,,2,0,0
tweakui.hlp  = 2,,,,,,,21,0,0
where.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,AddReg
AddReg = hivefix.inf,AddReg

[HiveInfs.Upgrade]
DelReg = hivefix.inf,AddReg
AddReg = hivefix.inf,AddReg

; These have not really changed, so...
[SetupData]
SetupSourcePath = "\"
DefaultPath=\FENSTER

---------------------------------------------------------------------

WEBVW.DLL
  Add bitmaps to resource table, using reshack.exe



This 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', p276
HKCU,"Console","InsertMode",0x00010001,1
HKCU,"Console","QuickEdit", 0x00010001,0
HKLM,"Software\Microsoft\Command Processor","CompletionChar",0x00010001,9
HKLM,"Software\Microsoft\Command Processor","PathCompletionChar",0x00010001,9
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","ParseAutoexec",0x00000000,"0"
HKCU,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","ParseAutoexec",0x00000000,"0"


; HiveCLS.inf
HKCR,"batfile","",0x00000002,"%MS_DOS_BATCH_FILE%"
HKCR,"comfile","",0x00000002,"%MS_DOS_APPLICATION%"

; Hivesft.inf
HKLM,"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 disks
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","allocatedasd",0x00000002,"2"

; HiveSys.inf
HKLM,"SYSTEM\CurrentControlSet\Control\Nls\Language","InstallLanguage",,"%INSTALL_LANGUAGE%"
HKLM,"SYSTEM\CurrentControlSet\Control\Nls\Locale","(Default)",,%INSTALL_LOCALE%
; UKINT keybd

HKLM,"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 Settings
HKLM,"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 Settings
HKCU,"Control Panel\Screen Saver.Marquee","Font",0x00000000,"%SCREEN_SAVER_MARQUEE_FONT%"
HKCU,"Control Panel\Screen Saver.Marquee","Text",0x00000002,"%SCREEN_SAVER_MARQUEE_TEXT%"

; TempDir
HKCU,"Environment","TEMP",0x00020000,"%TEMP_DIR%"
HKCU,"Environment","TMP",0x00020000,"%TEMP_DIR%"


; Shell Folders
HKCU,"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.dll
HKCR,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%}"

; TweakUI
HKLM,"Software\Microsoft\Windows\CurrentVersion\Run",,,"RUNDLL32.EXE TWEAKUI.CPL,TweakMeUp"


[Strings]
; Hivecls.inf
MS_DOS_APPLICATION="PC-DOS Application"
MS_DOS_BATCH_FILE="PC-DOS Batch File"

; Hivesys.inf
INSTALL_LANGUAGE="0C09"

; International
INTL_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"
; Marquee
SCREEN_SAVER_MARQUEE_FONT="Georgia"
SCREEN_SAVER_MARQUEE_TEXT="Windows 2000 Professional"

; Shell Folders
DEFAULT_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.dll
NAME="Run shell extension"
RUNEXTKEY="RunExt"
SHEX="shellex\ContextMenuHandlers"
CSID00=2AD91900-A873-11cf-9A80-00AA00C16E65

Edited by os2fan2, 06 November 2012 - 05:48 AM.


#53
caps_buster

caps_buster

    Member

  • Member
  • PipPip
  • 117 posts
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!
Disclaimer: Any errors in spelling, tact, or fact are transmission errors.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN