Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Move swap to another partition, revisited again' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Move swap to another partition, revisited again
Authored by: johnpitcairn on Aug 18, '05 01:44:07AM

OK, I think I have it working with no ill effects. I'm using a swap partition on the same disk as the boot partition, simply because I'm usually short of space on my TiBook and want to prevent data getting stomped on if the boot partition fills up.

The parent post (which seems to be almost entirely Mike Bayer's method, which works unmodified in Panther) is good, but don't move the virtual memory code block later in the rc file.

Then, add an entry to your /etc/fstab file (which you may need to create) so the swap partition is mounted when / mounts. My entire fstab file looks like this:

/dev/disk0s12 /Volumes/Scratch hfs rw 1 2

You can get the appropriate partition data via the command df -k in the Terminal.

Finally - and this may not be necessary but I don't think it'll hurt - load the fstab data into NetInfo via:

sudo niload -m fstab / < /etc/fstab

You're done. Reboot in verbose mode by holding down Command-V at boot, so you can see what the mount process and VM starter is doing.



[ Reply to This | # ]