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

10.5: Hide the Time Machine volume in the Finder System 10.5
I don't like to have icons cluttering my desktop. I have figured out a way to remove the Time Machine volume icon from the Finder without affecting Time Machine. I want other external drives to be visible, so the Finder's preferences are of no help here. Apple actually provides everything needed. I will explain how to remove the volume for Finder using Developer Tools, and without having Developer Tools installed (like me). Please note that Time Machine Volume refers to the volume Time Machine is backing up to, or any volume you would like to hide.

To make this work, you need to have the Unix program SetFile installed. If you have the Developer Tools installed, you have it already, and you can skip the following steps. To install SetFile, do this:
  1. Download a copy of Pacifist from CharlesSoft.
  2. Insert the Mac OS X Leopard Install DVD that you bought or that came with your computer.
  3. Launch Pacifist and select Open Package, then navigate to: /Volumes/Mac OS X Install DVD/Optional Installs/XCode Tools/XCodeTools.mpkg.
  4. Search for SetFile. Choose the second choice on the list (the first one that is not an alias) and click Install in the upper left corner. Type your password if necessary.


Now that you have SetFile installed, here's what you need to do:
  1. Open Terminal.
  2. Run the following code, replacing Time Machine Volume with the proper name: SetFile -a V '/Volumes/Time Machine Volume/'. (Note: SetFile should be on your path automatically, either due to the install of the Dev Tools, or because Pacifist installs it in /usr/bin. If this doesn't work for some reason, you'll need to provide the full path to SetFile.)
  3. Restart the Finder with killall "Finder", or by holding Option, then clicking and holding on the Finder's Dock icon and choosing Relaunch from the pop-up menu.
If you ever want to restore the Time Machine volume's icon to the Finder, run the following code in Terminal: SetFile -a v '/Volumes/Time Machine Volume/'. You'll need to kill the Finder again to make the changes take effect.

I hope other find this as useful as I did. Time Machine still sees any volumes that you have hidden from the Finder. If you ever needed to browse using the Finder, you can always use the Go » Go to Folder command, and type /Volumes/Time Machine Volume. Note that this hint removes the volume from the Finder's sidebar, the computer window, and the desktop. Enjoy!

[robg adds: Even if you don't have the Dev Tools installed, you probably already have a copy of SetFile somewhere on your machine -- see this hint for instructions on how to find it. The submitted hint referred to logging out and in to have the changes take effect, but that's not necessary based on my testing.]
    •    
  • Currently 2.60 / 5
  You rated: 3 / 5 (10 votes cast)
 
[33,628 views]  

10.5: Hide the Time Machine volume in the Finder | 24 comments | Create New Account
Click here to return to the '10.5: Hide the Time Machine volume in the Finder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Hide the Time Machine volume in the Finder
Authored by: Coumerelli on Jan 30, '08 07:48:38AM

wonderful! I have a few programs that i've put into an encrypted volume and when it's mounted it's always on my desktop - AND i've put it in my dock for easy right-click (Tiger) or Grid (now) access! Now no more clutter.

---
"The best way to accelerate a PC is 9.8 m/s2"



[ Reply to This | # ]
Ejecting the TM volume?
Authored by: LegoEvan on Jan 30, '08 08:25:30AM

How do you then eject the volume, without undoing the SetFile thing?



[ Reply to This | # ]
Ejecting the TM volume?
Authored by: ptone on Jan 30, '08 09:22:37AM

diskutil eject /Volumes/volumename

-P



[ Reply to This | # ]
Ejecting the TM volume?
Authored by: LegoEvan on Jan 30, '08 09:31:35AM

Any non-terminal way?



[ Reply to This | # ]
Ejecting the TM volume?
Authored by: drudus on Jan 30, '08 11:16:39AM
To run easily…
Save the Terminal command as a .command file to be able to run it from the Finder.

eg paste the text below into a plain text file (replacing the volumename as appropriate).
#!/bin/sh
diskutil eject /Volumes/volumename

Call it 'EjectTM.command' and save to the Desktop.
Open Applications>Utilities>Terminal to set it to be executable (Only need to do this once).
Type without quotes 'chmod 755 ~/Desktop/EjectTM.command'
Double clicking should run the command in the Terminal.

Other ways to achieve this could be using Automator to 'run terminal command', or using applescript with do shell script ''.

[ Reply to This | # ]
Ejecting the TM volume?
Authored by: LegoEvan on Jan 30, '08 03:28:01PM

Well, saving it in an easily-clickable spot sort of defeats the purpose, doesn't it?



[ Reply to This | # ]
Ejecting the TM volume?
Authored by: ars on Jan 30, '08 11:49:13AM
I use Semulov (a very useful menu item to eject ipods and external drives). You can get it here:
http://www.kainjow.com/

[ Reply to This | # ]
Ejecting the TM volume?
Authored by: saint.duo on Jan 30, '08 04:07:03PM

Disk utility should be able to eject the volume even if its invisible to the finder.

---
duo



[ Reply to This | # ]
Ejecting the TM volume?
Authored by: adamb529 on Jan 30, '08 04:12:37PM

Disk Utility is the easiest. Select the Time Machine volume and click eject. Same as the Finder!



[ Reply to This | # ]
Ejecting the TM volume?
Authored by: LegoEvan on Feb 03, '08 11:00:39PM
10.5: Hide the Time Machine volume in the Finder
Authored by: hempKnight on Jan 30, '08 08:28:18AM
hi, i dont like seeing the time machine mount either, so i just changed the flag on it so it doesnt display (in the gui). the same results as the above hint, as far as i can see.
chflags -hidden /Volumes/[mount]
to revert
chflags -nohidden /Volumes/[mount]

[ Reply to This | # ]
10.5: Hide the Time Machine volume in the Finder
Authored by: HairyPotter on Jan 30, '08 08:55:01AM

The best way to hide time machine volume in finder is to drag it out from the finder, I mean, to drag it out from the left column. This works for any drive you do not want to see again in the finder. To bring it back, just navigate to /Volumes and drag the drive from there to the left column.

---
AddFone.com
--------------------------
the largest database of iPhone related apps.



[ Reply to This | # ]
10.5: Hide the Time Machine volume in the Finder
Authored by: adamb529 on Jan 30, '08 04:14:01PM

The purpose of this hint is to remove the volume from the desktop while leaving other external drives (flash drives, etc.) visible.



[ Reply to This | # ]
10.5: Hide the Time Machine volume in the Finder
Authored by: HairyPotter on Jan 31, '08 09:29:50AM
The title says, hide Time Machine volume in the finder, not in the desktop.

---
AddFone.com
--------------------------
the largest database of iPhone related apps.

[ Reply to This | # ]

10.5: Hide the Time Machine volume in the Finder
Authored by: adamb529 on Feb 01, '08 08:28:57AM

The icons on your desktop are just a folder in the Finder. The desktop is not its own application, it's a part of the Finder.



[ Reply to This | # ]
10.5: Hide the Time Machine volume in the Finder
Authored by: Stef@nK on Jan 31, '08 01:06:39AM
SetFile is not needed, this AppleScript does actually the same, replace TMBackup with the name of the disk.

quit application "Finder"
tell application "System Events" to set visible of disk "TMBackup" to false
delay 1
launch application "Finder"
To make the disk visible, use

quit application "Finder"
tell application "System Events" to set visible of disk "TMBackup" to true
delay 1
launch application "Finder"


[ Reply to This | # ]
10.5: Hide the Time Machine volume in the Finder
Authored by: GWR on Jan 31, '08 06:30:58PM

I just want to hide it on the desktop while letting other external volumes remain.
Can this be done?



[ Reply to This | # ]
Re: 10.5: Hide the Time Machine volume in the Finder
Authored by: adamb529 on Feb 01, '08 08:30:48AM

Yes, that is why I wrote this hint. Just follow the directions, or the applescript another user posted in a comment.



[ Reply to This | # ]
10.5: Hide the Time Machine volume in the Finder
Authored by: dmw on Jan 31, '08 11:39:37PM
Um, the Desktop is part of the Finder. Try quitting the Finder. Guess what? No desktop! Also, despite any confusion the title may have caused you, the article clearly states that he was trying to declutter his desktop, not the sidebar in a Finder window.

[ Reply to This | # ]
10.5: Hide the Time Machine volume in the Finder
Authored by: xinkblotmantoo on Feb 01, '08 12:55:14PM

Is anyone familiar with TimeMachineScheduler? It allows users to to change Time Machine's preset backup interval from 1 to 12 hours by replacing TM's launchd daemon with its own. It "can be set to run additionally at load, which means also at startup and login." The latest version has options for "Automount," which only mounts the specified volume when backing up, and "Invisible," which will, if Automount is selected, keep the backup volume from appearing on the desktop.



[ Reply to This | # ]
10.5: Hide the Time Machine volume in the Finder
Authored by: xinkblotmantoo on Feb 01, '08 03:37:26PM
Whoops, I meant TimeMachineScheduler. I might as well put up a big diner-sized neon sign that says "NOOB," with P.A. loudspeakers blaring the word for benefit of the hearing impaired.

[ Reply to This | # ]
10.5: Hide the Time Machine volume in the Finder
Authored by: dkessler on May 04, '08 08:07:18AM

Can the Apple Script above be used on any volume? For example, I'd like to use this on the hard drive I use for Boot Camp. For now, I put a "." before the name of the volume to hide it, but this script might be a better way.



[ Reply to This | # ]
10.5: Hide the Time Machine volume in the Finder
Authored by: loadedsith on Mar 02, '09 09:58:30AM

Thanks! I've been using /Volumes/Drive in "go to folder" for almost a year (since my HD disappeared itself) and im very very very happy to have it back!
THANKS!!



[ Reply to This | # ]
Best solution IMO
Authored by: Nago on Jan 25, '10 03:57:41PM

I found that the best fix for me is actually using the Time Machine Scheduler application mentioned above.

It has a hide and unhide option that works great, plus you get the obvious and useful time scheduling features.

Free, of course!

9/10

Edited on Jan 25, '10 04:01:09PM by Nago



[ Reply to This | # ]