Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Move swap to another partition, revisited again' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Move swap to another partition, revisited again
Authored by: AGDenton on Jun 17, '05 01:02:47PM
Unfortunately, this hint seems to fail when you point to a partition on another disk : the desired partition never mounts early enough, causing the script to put back the swap to /private/var/vm. Under 10.3.x, assigning a UUID to the partition, putting it in fstab and inserting a
/sbin/autodiskmount
sleep 1
in
/etc/rc
while enabling disk mounting without user login using the hint on this site had been working for me. However, partitions on other disks never seem to mount before login in Tiger, no matter what I do. Any ideas?

[ Reply to This | # ]
Move swap to another partition, revisited again
Authored by: club60.org on Jun 17, '05 05:49:21PM
I've setup several machines this way. All of them using separate disks for swap. Maybe you are using non-IDE disk? Then you can try to issue this command in terminal:
sudo defaults write /Library/Preferences/SystemConfiguration/autodiskmount AutomountDisksWithoutUserLogin -bool true


[ Reply to This | # ]
Move swap to another partition, revisited again
Authored by: diffident on Aug 07, '05 12:01:07PM

I don't really like the method used, because delaying the vm startup until everything else has started (ie everything in /etc/mach_init_d, System/Library/LaunchDaemons, Library/LaunchDaemons and so on) is a pretty fundamental change to the system startup, but I can confirm that this hint does put the swap files on the volume specified in rc.swap, even if that volume is on a separate IDE disk (Tiger 10.4.2).

For my own machine, I've added my swap disk to etc/fstab (had to create fstab) so it's explicitly mounted by the limited mount call early in Tiger's rc. That means Dave Bayer's original and far less intrusive method (on which this hint is based) works just fine under Tiger as well as Panther, albeit with the disk-name caveats Dave mentions on his very informative page (I've made a few further modifications to avoid some of those issues, but they're very specific to my setup).

Given that Apple are deprecating the use of rc in favour of launchd, neither this hint nor Dave's original are going to be long-term solutions for moving swap in Tiger, so with every OS revision anyone using these hints will need to check whether Apple have made changes to rc.



[ Reply to This | # ]