Wassup with this boot.ini?

finger

Member
Jan 20, 2001
27
0
0
Hi~

I'm trying to use a program called ramdiskNT it says in the FAQ to achieve a very large ramdisk you have to set a 'maxmem=' in the boot.ini- It gives an example:

[boot loader]
timeout=10
default=multi(0)disk(0)rdisk(0)partition(2)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINNT="Windows NT Workstation Version 4.00"
multi(0)disk(0)rdisk(0)partition(2)\WINNT="Windows NT Workstation Version 4.00 [VGA mode]" /basevideo /sos
multi(0)disk(0)rdisk(0)partition(2)\WINNT="Windows NT 4.0SP6 (64MB memory, 256MB excluded)" /maxmem=64


which is fine, but infortunately my boot.ini looks like this:

[boot loader]
timeout=30
default=C:\winnt
[operating systems]


I've tried lots of combos for where the '/maxmem=256' switch goes with no luck, it either wont boot at all or will give me a "could not find ntoskrnl.exe" error.

Could anyone give me a hint as to what my boot.ini should look like?

Running:
Win2k
VP6 (2x933 + RAID 0)
1280Megs PC133


 

Poof

Diamond Member
Jul 27, 2000
4,305
0
0
Well now - the boot.ini in your example is what it looks like on NT 4. :p

My 2K AS/2K Pro looks like this:


[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINNT="Microsoft Windows 2000 Advanced Server" /fastdetect
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Professional" /fastdetect


Alternately, my multi-boot (98SE/2K Pro/XP & SuSE) boot.ini (and the XP created the controlling boot.ini), looks like this:


[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(5)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(5)\WINDOWS="Microsoft Windows XP Professional" /fastdetect
multi(0)disk(0)rdisk(0)partition(3)\WINNT="Microsoft Windows 2000 Professional" /fastdetect
C:\="Microsoft Windows"


You should have some statement in your boot.ini where your 2K partition is... although perhaps because it's the only thing there, it's not explicitly stating where.

Try my top example, ie., the line that says "multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Professional" /fastdetect" (with the "partition" part indicating "(1)" in your case as well, and then add in the mem thing.
 

Nevo

Banned
May 28, 2001
696
0
0
The /maxmem switch tells NT how much RAM to use.

By default, it will use all physical RAM.

If you've got 1GB ram and specify /maxmem=512, NT will only use 512MB of RAM and the rest will go unused.

I don't see why you'd want to do this.
 

Poof

Diamond Member
Jul 27, 2000
4,305
0
0
I don't see why you'd want to do this.

He wants to run that RAM disk program. ;)
 

finger

Member
Jan 20, 2001
27
0
0
Thanks for your responses folks!

Yes I do want to disable the OS from utilizing 1,024 megs so that the ramdisk has full page access- not shared with the OS.

Poof-

So it'd look something like this?

[boot loader]
timeout=30
default=C:\winnt
[operating systems
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Professional" /fastdetect /maxmem=256




 

Poof

Diamond Member
Jul 27, 2000
4,305
0
0
Yep. You could try that. But I would also add another line looking the same, but without the mem stuff so you can pick the option to just boot normally (just in case). :)