Move pagefile to another drive?

Discussion in 'Mac OS X Lion (10.7)' started by chevalier433, Jun 6, 2012.

  1. chevalier433 macrumors 6502a

    chevalier433

    Joined:
    Mar 30, 2011
    #1
    Does anyone knows how to do it or where is the location of it
     
  2. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #2
    Code:
    /private/var/vm/
    
    It is in the folder I posted above. Not sure how you would move it and keep it moved.
     
  3. sidewinder macrumors 68020

    sidewinder

    Joined:
    Dec 10, 2008
    Location:
    Northern California
    #3
  4. nlynch77 macrumors member

    Joined:
    Mar 18, 2013
    #4
    You can just replace the /vm folder with a Unix Symlink (created easily via this) that redirects to the drive of your choice.

    It MUST be a Unix symlink, OS X aliases do not work for kernel-level programs (such as dynamic_pager, OS X's swapfile management daemon)

    This also has the significant advantage of leaving the com.apple.dynamic_pager LaunchDaemon completely alone, meaning you don't need to tinker with reprogramming system files.

    Works great with my multi-drive multi-partition Macbook Pro.
     

Share This Page