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



Jorge L Lopez wrote:
>
> 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.

Well, the problem was actually quite simple. I just did not use the
fstab because I thought it is ignored by the system. I did not consider
setting up an fstab file and mounting my swap partition to
/private/var/vm. Since I have done the latter, everything works
flawlessly. But good to know that Apple _is_ in fact following the
standards altho sometimes you have to tweak these. Thanks to Jayce Piel
who has also set up an excellent page on this issue on his server:
http://www.mosx.net/dossiers/vm.shtml (in French)

>
> 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-----
> From: email@hidden
> [mailto:email@hidden]On Behalf Of Jayce Piel
> Sent: Saturday, June 23, 2001 1:05 PM
> To: Nicolas Linkert
> Cc: email@hidden; email@hidden
> Subject: Re: Problem with swap partition
>
> On samedi, juin 23, 2001, at 09:02 , Nicolas Linkert wrote:
>
> > Oh, I have certainly _done_ that. The problem is just as described
> > above: The swap partition is ignored ( = it becomes "swap 1") and a new
> > swap file is added by the system called "swap" (= which was the name of
> > my partition).
>
> Did you put your swap partition in the fstab ?
>
> --
> Jayce Piel ( email@hidden )
> ************* MosX.net *************
> Le premier site Web sur MacOS X (Server) en frangais :
> <http://www.mosx.net/> email@hidden
> _______________________________________________
> darwinos-users mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/darwinos-users


References: 
 >RE: Problem with swap partition (From: "Jorge L Lopez" <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.