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

10.3: Hide the swap partition from Finder's sidebar System
Methods of moving the swap file to another disk/partition have been dicussed here before. A method that still works in 10.3. (I had no problems) can be found here. Anyway, there have also been hints, how to hide this partiton, so it won't show up on the desktop.There are basically two ways to achieve this:
  1. Using SetFile, which can be found in the Developer Tools: SetFile -a -V /Volumes/your_swap_partition
  2. Renaming the partition to start with a "."
Both methods remove the swap partition from the Desktop, but it will still show up in the Finder's side bar. Changeing this is very easy:
  1. Configure the side bar in finder's preferences to not show any hard disks.
  2. Drag your "wanted" partitions from the Desktop to the upper part of the side bar.
Done!
    •    
  • Currently 2.13 / 5
  You rated: 2 / 5 (8 votes cast)
 
[15,761 views]  

10.3: Hide the swap partition from Finder's sidebar | 8 comments | Create New Account
Click here to return to the '10.3: Hide the swap partition from Finder's sidebar' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Hide the swap partition from Finder's sidebar
Authored by: dom on Dec 24, '03 01:22:24PM

can't you just drag the hard disk(s) you don't want off of the sidebar?



[ Reply to This | # ]
SetFile not appearing
Authored by: sTvN on Dec 24, '03 01:29:57PM

Hello,
I have the developer tools installed but when I type SetFile into the Terminal, nothing happens. Any ideas?

Thanks,
Steven



[ Reply to This | # ]
SetFile not appearing
Authored by: mike3k on Dec 24, '03 01:46:30PM

Make sure /Developer/Tools is included in your path. If you're using tcshrc, add something like this to your .cshrc or tcshrc:

set path = ( /Developer/Tools $path /usr/local/bin ~/bin)

If you use bash, ksh, or zsh add this to the appropriate init file:

PATH=/Developer/Tools:$PATH:/usr/local/bin:~/bin



[ Reply to This | # ]
SetFile not appearing
Authored by: sTvN on Dec 25, '03 02:18:48AM

I use the default Bash. Where is the init file that you're talking about. Why didn't this get added when I installed the developer tools?

Thanks,
Steven



[ Reply to This | # ]
yes you can!
Authored by: acamas on Dec 24, '03 06:06:28PM

yes you can. I submitted this hint some time ago when the side bar was quite new :-)



[ Reply to This | # ]
10.3: Hide the swap partition from Finder's sidebar
Authored by: XaoS on Dec 27, '03 12:46:36AM

Not only can you just drag the swap partition out of the Finder side bar (which is much quicker than turning off the hard drives in Prefs and dragging everything but the swap drive back into the sidebar), but it is also now much, much easier to change your swap partition in Panther.

There is a script that Panther uses at startup that checks the hostconfig file for the virtual memory location. If you change the VIRTUALMEMORY line in hostconfig to point to the directory where you want your swapfiles to live, OS X complies nicely. Mine looks like this:

VIRTUALMEMORY="/Volumes/swap/.vm"

Any changes made to fstab or rc only seem to confuse the VM startup script, so I don't recommend following the directions referred to by this hint.



[ Reply to This | # ]
10.3: Hide the swap partition from Finder's sidebar
Authored by: Anonymous on Dec 27, '03 08:24:29AM

Was your suggestion something you added, specifically?
My hostconfig file does not contain any reference to a VIRTUALMEMORY location after a fresh format / install of Panther.
Thanks.



[ Reply to This | # ]
How to add DevTools to bash path
Authored by: TigerKR on Dec 29, '03 10:10:09AM
In the terminal type:

sudo cp /etc/profile /etc/profile.bak; sudo pico /etc/profile

and then edit the line with "PATH=" to look like this:

PATH="/bin:/sbin:/usr/bin:/usr/sbin:/Developer/Tools"

then type control-x to exit, then press y to save changes, then press return to confirm the file location.

Then close the terminal window, and reopen!

[ Reply to This | # ]