• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[OT] swapfile on other partition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OT] swapfile on other partition


  • Subject: [OT] swapfile on other partition
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Fri, 11 Oct 2002 22:34:40 +0200

I have two partitions on my disk: p_jag (which contains 10.2.1) and p_old (with 10.1).
p_jag is kind of small (3GB, 350MB free). So, when the swapfile gets bigger, I have a problem.
So I created a new vm on p_old and created a symbolic link from p_jag to this.

/private/var/vm/app_profile obviously gets recognized, and the files get touched.

But the real swapfiles do never alter their date, and if the system starts swapping I can hear the disk working, but that is the end.
Pressing the power button for 5 seconds is then the only solution.

/etc/rc has the lines:
swapdir=/private/var/vm
...
# Make sure the swapfile exists
if [ ! -d ${swapdir} ]; then
ConsoleMessage "Creating default swap directory"
mount -uw /
mkdir -p -m 755 ${swapdir}
chown root:wheel ${swapdir}
else
rm -rf ${swapdir}/swap*
fi
but the swapfiles do not get deleted.

If at the time /etc/rc is running the /Volumes thing has not been set up, then my link
/private/var/vm -> /Volumes/p_old/vm cannot work.
It would then try the mkdir, which will fail, because ${swapdir} exists as a still invalid symbolic link.

What can I do?

I apologize for this off-topic question, but I am a bit desperate and maybe there is a skilled system administrator among the Cocoa programmes.

Gerriet.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Cocoa & C++ Protected Member Functions
  • Next by Date: Re: Re-opening OpenGLView
  • Previous by thread: [ANN] Report on AppleScript 1.9 in Jaguar
  • Next by thread: Re: [OT] swapfile on other partition
  • Index(es):
    • Date
    • Thread