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


Click here to return to the '10.4: Move swap files to another drive' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Move swap files to another drive
Authored by: syzygies on Feb 11, '06 10:12:06AM

10.3 methods didn't work for me in 10.4. If one looks at the previous 'Hint' on this subject, the 10.3 methods didn't work in 10.4 for other people, either. That hint described moving the swap code to the end of /etc/rc, after the drives had a chance to mount, but also after a slew of other processes started without the benefit of virtual memory. I didn't like the idea of extensively editing /etc/rc, it's much cleaner to insert one line into /etc/rc, that does nothing if the helper file /etc/rc.swapfile isn't present.

What baffles me is why my new approach only works in 10.4, not also in 10.3. The snippets of code I experimented with and put together all come from ideas batted around since 10.0.



[ Reply to This | # ]
10.4: Move swap files to another drive
Authored by: TigerKR on Feb 11, '06 08:55:44PM
uhh... just looked in my /etc/ directory, and I found some interesting "rc" files:
$ dir | grep rc
-rw-r--r--    1 root  wheel    187B Mar 20 18:39:12 2005 bashrc
-rw-r--r--    1 root  wheel    189B Mar 20 19:04:08 2005 csh.cshrc
-rw-r--r--    1 root  wheel    587B Aug 22 09:55:31 2005 efax.rc
-rw-r--r--    1 root  wheel    106B Mar 26 22:54:41 2005 mail.rc
-r--r--r--    1 root  wheel     11B Mar 20 19:03:29 2005 nanorc
-r--r--r--    1 root  wheel      7K Jul  4 23:46:54 2005 rc
-r--r--r--    1 root  wheel      7K Jun 10 00:43:49 2004 rc.10_3_4
-r--r--r--    1 root  wheel      8K Jan  1 12:08:47 2004 rc.bak
-rw-r--r--    1 root  wheel      1K Mar 23 20:49:08 2005 rc.common
-r--r--r--    1 root  wheel     10K Jan  1 21:29:19 2004 rc.*censored*ed
-rw-r--r--    1 root  wheel      4K Mar 23 20:49:08 2005 rc.netboot
-r--r--r--    1 root  wheel      7K Dec 29 01:45:11 2003 rc.orig
-r--r--r--    1 root  wheel      7K Jul  4 23:40:59 2005 rc.saved
-rw-r--r--    1 root  wheel    183B Mar 23 20:49:08 2005 rc.shutdown
-rw-r--r--    1 root  wheel    606B Jul  4 23:42:37 2005 rc.swap
-rw-r--r--    1 root  wheel      1K Mar 18 02:58:14 2004 rc.swapfile
That one that is censored starts with an f and rhymes with duck. Anyone else have this kind of variety in their etc folder?

[ Reply to This | # ]