Hidden Pagefile Partition
Results 1 to 4 of 4

Thread: Hidden Pagefile Partition

  1. #1
    Registered User
    Join Date
    Jul 2000
    Location
    Sheffield, England
    Posts
    694

    Hidden Pagefile Partition

    I did this in Xp pro but this should work for 2K and XP.
    The idea was to create a swapfile folder that my users couldn't fill with junk. Thus keeping an unfragmented file that is still managed by windows.

    Step 1
    In disk managment you create a partition and mount it to an NTFS folder. (Mount points are part of NTFS 5)


    Create a folder, I'll call this one c:\swap
    In disk management create a partition large enough to hold your pagefile. I created a 2Gig partition.
    Instead of assigning a drive letter the partition is mounted as c:\swap
    This gives a folder that is actualy it's own partition

    Step2
    The next stage is getting the swapfile off the root and into the subfolder


    run regedt32 and go to
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Session Manager\Memory Management
    Alter the pagefile key from "c:\pagefile.sys" To "c:\swap\pagefile.sys"

    Step3
    Reboot and you can delete the old file on c:\

    Thats the file in place and working. Because my users have admin rights to the systems I also needed to deny access to the user and hide the folder for good measure,

    Step4
    Security and Visibility.

    I've denied the local administrator group and the user access to the folder so only the domain administrator and the local administrator have access.

    Next I chose to change the folder attributes to a system folder so that by default the user cant even see the folder in explorer.

    in a dos prompt.
    c:\
    attrib +s +h c:\swap


    That's it. Hope it is usefull to others too.
    Last edited by scutterboy; January 17th, 2003 at 11:13 AM.
    And Control Enter STILL wont let me post a reply.

  2. #2
    Registered User
    Join Date
    Jul 2000
    Location
    Sheffield, England
    Posts
    694
    I have continued to use this trick and have found it very reliable.
    Systems seem to run better for longer.
    I can confirm that is just the same in Win2K or XP pro.

    Further Explanation.
    The purpose of the dedicated Pagefile partition is to aviod page fragmentation.
    Mounting and then hiding the partition prevents users from getting in and messing up that partition.

    additional optional step.
    I sometimes run secpol.msc and set the value to clear the pagefile on shutdown.
    I haven't tested to see if this has any real benefit though.
    And Control Enter STILL wont let me post a reply.

  3. #3
    Registered User natcom's Avatar
    Join Date
    Oct 2003
    Posts
    171
    thank you so much nice trick

  4. #4
    Registered User
    Join Date
    Jul 2000
    Location
    Sheffield, England
    Posts
    694
    Quote Originally Posted by natcom
    thank you so much nice trick
    Very welcome mate.
    And Control Enter STILL wont let me post a reply.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •