Jump to content

How to set pagefile path in Unattended file?


Recommended Posts

Hello, I want to set the pagefile path to another hard drive, so i don't need to change the default pagefile location, which is in C:\, every time I reinstall WinXPPro.

And of course I want to do it in the unattended file.

Thx

Link to comment
Share on other sites


ii don't have an anwer for you..

but i'm guessing it would cause more problems than solutions..

say ur formatting on a new HD, boot up with XP..

it's initially only creating the 1st partition right? so if the pagefile it set onn an unexisting partition... that's a no no.

but it might be possiible.. would love to know how it works if it does!

Link to comment
Share on other sites

Here:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]

"PagingFiles"=

I.e.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]

"PagingFiles"=hex(7):43,00,3a,00,5c,00,70,00,61,00,67,00,65,00,66,00,69,00,6c,\

00,65,00,2e,00,73,00,79,00,73,00,20,00,31,00,30,00,32,00,34,00,20,00,31,00,\

30,00,32,00,34,00,00,00,00,00

This setes Page file on c:\1024-1024.

Link to comment
Share on other sites

An inf would be easier to understand, and could then be added seperately, to prevent forgetting to search and change in your reg file for each PC the disk is used in.

;pagefile.inf
[Version]
Signature=$CHICAGO$

[DefaultInstall]
AddReg=Reg.Settings
DelReg=Del.Settings

[Reg.Settings]
;Set pagefile size to fixed size (1.5 x System RAM)
;remove the semi-colon from the option you are using
; or
;remove all non-required comments and adjust to suit
;for 1Gb RAM
;HKLM,SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management,PagingFiles,0x10000,"%24%\pagefile.sys 1536 1536"
;for 512Mb RAM
;HKLM,SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management,PagingFiles,0x10000,"%24%\pagefile.sys 768 768"

[EDIT] The paging file should always be kept on the root directory of your system disk (%SystemDrive%)[/EDIT]

Link to comment
Share on other sites

Thankx guys, the propose of this is to set the page file to another HD (1 partition only) in order to use the externa or outerl cylinder to maximaze the performance of the PF.

I'll go for the command-line seems to be more easier.

Thx

Happy holydays!

Link to comment
Share on other sites

The paging file should always be kept on the root directory of your system disk (%SystemDrive%)

Thats actually not true at all. In fact its recommended to keep the page file on a completely seperate disk from the operating system if possible for best performance.

Link to comment
Share on other sites

Yes, my comment may have been misconstrued!

In the inf I posted, I used %24% which is inf lingo for %SystemDrive%, I made the comment for reasons of portability, since you would need to have a clean formatted drive with a known assigned drive letter to use it on another drive. This would then be hard coded into the inf, and need replacing on each different system you use it on.

Link to comment
Share on other sites

  • 2 weeks later...

Hey prathapml... having a tiny issue with that pagefileconfig.vbs...

Im trying to delete my page file from drive C: and it gives the following message...

WARNING: If the pagefile on volume 'C:' has an initial size of less than
        64 KB, then the system may not be able to create debugging
        information file if a STOP error occurs.
Continue Anyway [y/n]?

Any idea how to have it bypass this or automatically choose yes so I can use this on my uA?

Thanks!

Link to comment
Share on other sites

Add this to registry to disable writing debugging information on system failure

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl]
"CrashDumpEnabled"=dword:00000000

or if you have this setting in your registry tweaks

;Disable Automatic Restart in the event of a BSOD
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl]
"AutoReboot"=dword:00000000

You can add this to that key

"CrashDumpEnabled"=dword:00000000

Link to comment
Share on other sites

No Problem :)

but be attentive cause when setting first time drive letters may mix.

For example d: can be cd-rom drive. actually it makes letters continueslly - first hard disk\first partition then second partition ...., then second hard disk\first partition and so on then cdrom drive.

but if you want to place it on second hard disk the first must have only one partition and d: would be second hard. You must calculate :)

Happy New Year :)

Link to comment
Share on other sites

No Problem :)

but be attentive cause when setting first time drive letters may mix.

For example d: can be cd-rom drive. actually it makes letters continueslly - first hard disk\first partition then second partition ...., then second hard disk\first partition and so on then cdrom drive.

but if you want to place it on second hard disk the first must have only one partition and d: would be second hard. You must calculate :)

Happy New Year :)

Come again?

Link to comment
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.
×
×
  • Create New...