Many of the methods previously posted no longer work with jaguar including some that I have previous posted. jaguar includes quite a few changes to the booting process and as a result the previous methods become extremely unreliable or interfere with the boot process. If you are interested in assigning a dedicated swap space under jaguar the following works:
create a "swap" partition - best if is the first partition, optimal if it is on a separate drive from your primary drive. The swap partition should probably be at least 1GB since jaguar is much more VM intense than 10.1.5
Reboot and ensure that your swap partition is mounted in /Volumes/Swap [this is case insensitive currently]. If you aren't sure how to do this, send me email.
make a copy of the original /etc/rc in case you need to recover from this
sudo cp /etc/rc /etc/rc.old
edit /etc/rc and make the following changes between the first and last lines of this segment of the file i.e. the first and last lines of the segment remain the same. these changes should protect the system under most conditions including failure of the swap partition to mount.
As always, there are risks involved and you should backup your data and make sure that you have a bootable CD or external HD to rescue you
##
# Start the virtual memory system.
##
ConsoleMessage "Starting virtual memory"
#Set swapdir for a netboot situation only
swapdir=/private/var/vm
if [ "${netboot}" = "1" ]; then
sh /etc/rc.netboot setup_vm ${swapdir}
fi
#
## Autodiskmount version of setting up swap, copied from
## /System/Library/StartupItems/Disks/Disks
if [ ! -f /var/db/volinfo.database ]; then Uninitialized_VSDB=-YES-; fi
ConsoleMessage "Checking disks"
/sbin/autodiskmount -va
if [ "${Uninitialized_VSDB:=-NO-}" = "-YES-" ]; then vsdbutil -i; fi
ConsoleMessage "Setting up Swap"
swapdir=/Volumes/Swap/.vm
# Make sure the swapfile exists
if [ ! -d ${swapdir} ]; then
swapdir=/private/var/vm
ConsoleMessage "Creating default swap directory"
mount -uw /
mkdir -p -m 755 ${swapdir}
chown root:wheel ${swapdir}
else
rm -rf ${swapdir}/swap*
fi
dynamic_pager -H 40000000 -L 160000000 -S 80000000 -F ${swapdir}/swapfile
create a "swap" partition - best if is the first partition, optimal if it is on a separate drive from your primary drive. The swap partition should probably be at least 1GB since jaguar is much more VM intense than 10.1.5
Reboot and ensure that your swap partition is mounted in /Volumes/Swap [this is case insensitive currently]. If you aren't sure how to do this, send me email.
make a copy of the original /etc/rc in case you need to recover from this
sudo cp /etc/rc /etc/rc.old
edit /etc/rc and make the following changes between the first and last lines of this segment of the file i.e. the first and last lines of the segment remain the same. these changes should protect the system under most conditions including failure of the swap partition to mount.
As always, there are risks involved and you should backup your data and make sure that you have a bootable CD or external HD to rescue you
##
# Start the virtual memory system.
##
ConsoleMessage "Starting virtual memory"
#Set swapdir for a netboot situation only
swapdir=/private/var/vm
if [ "${netboot}" = "1" ]; then
sh /etc/rc.netboot setup_vm ${swapdir}
fi
#
## Autodiskmount version of setting up swap, copied from
## /System/Library/StartupItems/Disks/Disks
if [ ! -f /var/db/volinfo.database ]; then Uninitialized_VSDB=-YES-; fi
ConsoleMessage "Checking disks"
/sbin/autodiskmount -va
if [ "${Uninitialized_VSDB:=-NO-}" = "-YES-" ]; then vsdbutil -i; fi
ConsoleMessage "Setting up Swap"
swapdir=/Volumes/Swap/.vm
# Make sure the swapfile exists
if [ ! -d ${swapdir} ]; then
swapdir=/private/var/vm
ConsoleMessage "Creating default swap directory"
mount -uw /
mkdir -p -m 755 ${swapdir}
chown root:wheel ${swapdir}
else
rm -rf ${swapdir}/swap*
fi
dynamic_pager -H 40000000 -L 160000000 -S 80000000 -F ${swapdir}/swapfile