Go Back   The macosxhints Forums > OS X Help Requests > System



Reply
 
Thread Tools Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
Old 01-24-2008, 05:47 PM   #1
adamb529
Prospect
 
Join Date: Sep 2007
Posts: 26
remove time machine icon from desktop

I would like Finder to not display my Time Machine drive on the desktop. The only way I can think of to do this is to uncheck to preference to show external drive icons on the desktop. I only want Time Machine to not be displayed. I want to see other external drives I connect. Is there a way to do this? I use flash drives a lot and would like them to appear on my desktop. I never access the Time Machine drive via the desktop, so I don't need its icon there. Thanks in advance!
adamb529 is offline   Reply With Quote
Old 01-24-2008, 05:51 PM   #2
trevor
Moderator
 
Join Date: Jun 2003
Location: Boulder, CO USA
Posts: 19,854
Hmmm. You could try giving it a name that begins with a period (i.e. a "."). I've not tested whether this will cause problems with Time Machine, but in theory it should make the drive invisible to the Finder, yet still work in Time Machine.

I've never done this myself to an entire drive, so let us know if it works.

Trevor
trevor is online now   Reply With Quote
Old 01-24-2008, 05:54 PM   #3
adamb529
Prospect
 
Join Date: Sep 2007
Posts: 26
Quote:
Originally Posted by trevor
Hmmm. You could try giving it a name that begins with a period (i.e. a "."). I've not tested whether this will cause problems with Time Machine, but in theory it should make the drive invisible to the Finder, yet still work in Time Machine.

I've never done this myself to an entire drive, so let us know if it works.

Trevor

The Finder won't let you use a period at the beginning of a file. "...these names are reserved for the system."
adamb529 is offline   Reply With Quote
Old 01-24-2008, 06:08 PM   #4
trevor
Moderator
 
Join Date: Jun 2003
Location: Boulder, CO USA
Posts: 19,854
Ah, so you'd have to rename it in the Terminal. Something like the following might work, although you'll need to put the real name in place of 'ExternalDrive'.

mv /Volumes/ExternalDrive /Volumes/.ExternalDrive

Trevor
trevor is online now   Reply With Quote
Old 01-24-2008, 06:13 PM   #5
adamb529
Prospect
 
Join Date: Sep 2007
Posts: 26
Quote:
Originally Posted by trevor
Ah, so you'd have to rename it in the Terminal. Something like the following might work, although you'll need to put the real name in place of 'ExternalDrive'.

mv /Volumes/ExternalDrive /Volumes/.ExternalDrive

Trevor

Nope..."Permission Denied"
adamb529 is offline   Reply With Quote
Old 01-24-2008, 06:14 PM   #6
trevor
Moderator
 
Join Date: Jun 2003
Location: Boulder, CO USA
Posts: 19,854
D'oh!

sudo mv /Volumes/ExternalDrive /Volumes/.ExternalDrive

You'll be asked for your admin password because of the 'sudo' command.

Trevor
trevor is online now   Reply With Quote
Old 01-24-2008, 06:30 PM   #7
Las_Vegas
League Commissioner
 
Join Date: Sep 2004
Location: Las Vegas
Posts: 5,875
This would cause a problem selecting the Time Machine drive in the Time Machine preferences. With a dot as the first character, it would also be invisible to the preferences.
__________________
Las_Vegas

-- Ts'i mahnu uterna ot twan ot geifur hingts uto.
-- Sometimes I wonder… Why is that Frisbee getting Larger? …and then it hits me.
-- Disposable thumbs make me specialer than most animals…
Las_Vegas is offline   Reply With Quote
Old 01-24-2008, 06:38 PM   #8
trevor
Moderator
 
Join Date: Jun 2003
Location: Boulder, CO USA
Posts: 19,854
OK, that's a good point.

There's other ways to make a folder (and hence, a drive) invisible, but the problem is, would it be invisible in Time Machine as well?

As I recall, you can set something to be hidden in Leopard (not in previous versions of OS X) using the command
sudo chflags hidden /Volumes/ExternalDrive

...but this may still have the same problem that Las_Vegas mentions above.

Trevor
trevor is online now   Reply With Quote
Old 01-24-2008, 07:09 PM   #9
solipsism
MVP
 
Join Date: Nov 2005
Posts: 1,963
Here is another way: http://www.tuaw.com/2007/05/01/termi...veloper-tools/
solipsism is offline   Reply With Quote
Old 01-24-2008, 09:02 PM   #10
adamb529
Prospect
 
Join Date: Sep 2007
Posts: 26
Quote:
Originally Posted by solipsism
Here is another way: http://www.tuaw.com/2007/05/01/termi...veloper-tools/

That worked...with a little messing around. Finder does not see my Time Machine Volume, but I can use Time Machine to restore and backup files. It is actually backing up right now to prove this. I will be submitting an official hint for others who want to know how to do this. Once I figured it out, it didn't take that long! Thanks all for your help. I'll post a copy of my hint submission here after I type it!
adamb529 is offline   Reply With Quote
Old 01-24-2008, 09:12 PM   #11
solipsism
MVP
 
Join Date: Nov 2005
Posts: 1,963
To hide Time Machine (uppercase 'V'):
Code:
 /Developer/Tools/SetFile -a V /Volumes/"Time Machine"/

killall "Finder"

To show Time Machine (lowercase 'v'):
Code:
 /Developer/Tools/SetFile -a v /Volumes/"Time Machine"/

killall "Finder"
You must have SetFile from Xcode installed (free download).
solipsism is offline   Reply With Quote
Old 01-24-2008, 09:14 PM   #12
adamb529
Prospect
 
Join Date: Sep 2007
Posts: 26
exactly, but I don't have developer tools installed, so I had a bit more work to do. You don't actually have to install tools to do it

Last edited by adamb529; 01-24-2008 at 09:20 PM.
adamb529 is offline   Reply With Quote
Old 01-24-2008, 09:20 PM   #13
solipsism
MVP
 
Join Date: Nov 2005
Posts: 1,963
It is free, but if you don't have the room to install it you could also extract SetFile using Pacifist.

I am posting the attachment but I'm not 100% this will work. If someone could test it, that would be great.
[attachment removed by moderator]

Last edited by hayne; 01-24-2008 at 09:25 PM. Reason: removed attachment since you don't have distribution rights for this software
solipsism is offline   Reply With Quote
Old 01-24-2008, 09:31 PM   #14
adamb529
Prospect
 
Join Date: Sep 2007
Posts: 26
Quote:
Originally Posted by solipsism
It is free, but if you don't have the room to install it you could also extract SetFile using Pacifist.

I am posting the attachment but I'm not 100% this will work. If someone could test it, that would be great.
[attachment removed by moderator]

That's what I did. So it works, and I am submitting the hint.
adamb529 is offline   Reply With Quote
Old 01-24-2008, 09:46 PM   #15
adamb529
Prospect
 
Join Date: Sep 2007
Posts: 26
how to do it...

Sorry for the clutter, but the html tags from the hint post appear here too. Hopefully, people will be reading the hint and not this forum post, so I won't spend the time to remove the tags!

<p>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 <i>Time Machine Volume</i> refers to the volume Time Machine is backing up to, or any volume you would like to hide.</p>

<p><b>With Developer Tools</b></p>


<p>1. Open Terminal</p>
<p>2. Run the following code, replacing Time Machine Volume with the proper name:</p>
<code>/Developer/Tools/SetFile -a V '/Volumes/Time Machine Volume/'

killall "Finder"</code>
Note the uppercase V. I do not have Developer Tools installed, so I cannot confirm that this works.

<p>3. Log out and log back in for changes to take effect

If you ever want to restore the Time Machine volume's icon to the Finder, run the following code in Terminal:</p>
<code>/Developer/Tools/SetFile -a v '/Volumes/Time Machine Volume/'

killall "Finder"</code>
<p>Note the lowercase v. Again, you need to log out and back in for the changes to take effect.</p>

<p><b>Without Developer Tools</b></p>

<p>I can confirm that the following method works as I have used it on my system. You will need two things for this to work.</p>
<p>1. A copy of Pacifist (http://www.charlessoft.com/Pacifist.dmg) <b>This starts a direct download!</b></p>
<p>2. Your Mac OS X Leopard Install DVD that you bought or that came with your computer.</p>

<p>Have everything you need? (A trial version of Pacifist will work)</p>

<p>Here's how to do it:</p>
<p>1. Open Pacifist with the install DVD in the DVD drive. Select "Open Package..." and navigate to: /Volumes/Mac OS X Install DVD/Optional Installs/XCode Tools/XCodeTools.mpkg</p>
<p>2. 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.</p>
<p>3. Open Terminal and type the following:
<code>/usr/bin/SetFile -a V '/Volumes/Time Machine Volume/'

killall "Finder"</code> </p>
Note the uppercase V.

<p>4. Log out and log back in for changes to take effect</p>

<p>If you ever want to restore the Time Machine volume's icon to the Finder, run the following code in Terminal:
<code>/usr/bin/SetFile -a v '/Volumes/Time Machine Volume/'

killall "Finder"</code></p>
Note the lowercase v. Again, you need to log out and back in for the changes to take effect.

<p>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 could always use the Go to Folder command under the Go menu and type /Volumes/<i>Time Machine Volume</i>. Note that this hint removes the volume from the Finder's sidebar, the computer window (top level Finder window, and the desktop. Enjoy!</p>

Last edited by adamb529; 01-24-2008 at 09:48 PM.
adamb529 is offline   Reply With Quote
Old 03-08-2008, 02:13 PM   #16
adamb529
Prospect
 
Join Date: Sep 2007
Posts: 26
Here is the official hint: http://www.macosxhints.com/article.p...80124184544791.

Also, does anyone know how to stop Time Machine from changing the icon of my internal hard drive? I hate that icon, and it's not even my Time Machine drive!
adamb529 is offline   Reply With Quote
Old 03-08-2008, 02:20 PM   #17
adamb529
Prospect
 
Join Date: Sep 2007
Posts: 26
Never mind. I played around a little more with setfile and figured it out.
adamb529 is offline   Reply With Quote
Old 04-23-2012, 08:12 PM   #18
myva
Guest
 
Posts: n/a
Time Machine changed my HD icon

Adamb528 can you tell me how you figured out to restore the original image of the HD icon that Time Machine changed?
Thanks
  Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 04:46 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.