Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Problem with swap partition



There is a good page about this issue that someone posted on moving swap in
MacOS X

http://homepage.mac.com/gdif/virtmem.html

I think the solution is to make sure your swap partition mounts before you
load fstab because the swap file is created before you mount your
filesystems herein lies causes the problem.

Be sure you state the type of filesystem if you are using UFS. If not your
drive will mount but the swap will be named 'swap 1'.

There are better instructions on the page I gave you, this is how mine looks
in /etc/rc

##
# Start the virtual memory system.
##

ConsoleMessage "Starting virtual memory"

# Make sure the swapfile exists,
# first check existence
# if not first make sure disk is mounted
# if [ ! -d ${swapdir} ]; then
# ConsoleMessage "mounting directories"
# mount -t ufs /dev/disk1s11 /Volumes/swap-disk/
# mount -uw /
#fi

mount -t ufs /dev/disk1s11 /Volumes/swap/

swapdir=/Volumes/swap/vm/

# Make sure the swapfile exists,
# if not, create directory since disk should be mounted
if [ ! -d ${swapdir} ]; then
ConsoleMessage "Creating default swap directory"
mkdir -p -m 755 ${swapdir}
chown root:wheel ${swapdir}
else
rm -rf ${swapdir}/swap*
fi

dynamic_pager -H 80000000 -L 1280000000 -S 640000000 -F ${swapdir}/swapfile

Hope this helps

Jorge

-----Original Message-----

References: 
 >Re: Problem with swap partition (From: Jayce Piel <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.