how to set up another location/partition/disk for swap in osX ?
Anne et Bertrand
mol-general@lists.maconlinux.org
Sat, 05 Jun 2004 17:23:33 +0200
It's a little off topic for this list, but it's plainly related to mol
for me :
I 've installed Panther in a disk file. But, for some reason, pdisk had
always failed to write partition tables on big disk images for me (core
dump) . I've once created one of 2 GB and could install osX on it, but
os X takes almost all the available space on it. So I've duplicated the
disk file and declared it as another disk in mol, I've formatted it in
osX and could have a little more space.
But my first osX "disk" is still almost full, and the swap files in it
take lots of place (could you believe I run osX with only 100MB of "ram"
in mol, because I only have 140MB of ram ?).
So I want those swap files to be created on this second "disk".
After searching a little, a couple of "grep swap", I found it was set up
at boot time in /etc/rc, to be created in /private/var/vm.
I've tried to edit /etc/rc in osX to specify this "disk" as swap
location for osX (located in /Volumes/Disque2).
But then, osX creates at boot a Volumes/Disque2 directory, and mount the
second disk at "/Volumes/Disque2 1"). So my swap is always on the the
first disk, but now in /Volumes/Disque2, not in /private/var/vm anymore ...
It seems that the swap is created before disks are mounted at boot time...
Any idea ?
Or could I create disk file for swap and set it up as a swap disk (not
file) in osX ?
Thanks,
Bertrand Dekoninck