Posted
15 Nov 2007 @ 13:08

Categories
Tutorial, Mac

Comments
5 Comments

Author
Alex

Bookmark
Delicious, Digg, reddit, StumbleUpon

Setting Hard Drive Icons In OS X

Another day and I’m finally getting around to writing another tutorial. This time I thought I concentrate on something I’ve had quite a lot of emails about, ’you’ve given me the icons, how do I go about using them’. I suppose it’s quite an important thing, if your supplying people with something, to tell them how to use it. (Warning: this is a Mac only tutorial).

In previous version of Mac OS X, before Leopard you could get away with applying HD icons though copy and paste alone, and from that point on everything would work fine. Unfortunately, one of the first things I noticed about applying HD icons in Leopard is that copy and paste gives bad results, especially for the scaled down versions of the icon in the new Finder sidebar.

I eventually found the correct way to apply the icons, it involves a little bit of Terminal usage but don’t be afraid. (I have a sneaking suspicion you may also need the Apple Developer Tools installed, these should have been included on your Leopard DVD). I believe this tutorial also applies to setting HD icons on previous versions of Mac OS X.

The first command we will execute in the Terminal copies the icon resource (.icns file) to the correct place on the target HD. You will need to fill in the paths in a way suitable for your system but you can do this by dragging and dropping onto the terminal window.

sudo cp -f /Path_to_Icon/icon_file.icns /Path_to_Drive_Root/.VolumeIcon.icns

Not too difficult was it. The next line will tell the HD to accept a thrid-party icon.

sudo SetFile -a C /Path_to_Drive_Root

The final line will restart the Finder so you can see the changes.

killall Finder

And that’s it. You should see your new icon in the Finder and the correct scaled down version in the Finder sidebar.

Hope you get it working. Check back soon.

Update: After many emails I have written a small utility called Set Icon that automates this process, if you are not feeling confident with the Terminal commands you can download it here.

Comments

peter bradbury

peter bradbury - 24 Feb 2009 @ 01:16

Hey i love the images, but theres a heaps easier way of changing your hardrive picture.

All you do is open the desired picture in preview. click and drag the marker around the image.

then command C.

then highlight your HD and press command i

click in the HD image in top left bar and press command v

Alex

Alex (Admin) - 07 Apr 2009 @ 00:06

Hi, the copy & paste method used to work great under Panther and Tiger but under Leopard the icons always seemed (at least to me) to be of lower quality when using the copy & paste method compared to the command line method, hence the short tutorial to show how to set the icons using the command line.

Andy

Andy - 24 Jun 2009 @ 19:44

Hi,

I used your method/also the small program that you have written. But i dont get to see the icon. I get a preview image, with PNG slashed across is. What am i doing wrong?

Andy

Andy - 24 Jun 2009 @ 20:15

Here is a link to the my desktop/screenshot.

As you can see, I can’t see the icon. Something’s wrong isnt it?
Lemme know what can I do to sort this out.

Thanks for the icon btw.

- Andy!

Andy

Andy - 24 Jun 2009 @ 20:16

http://picasaweb.google.com/lh/photo/EuDXlb3tTwFKA5F7pnjQ-Q?feat=directlink

Sorry, forgot to attach the link. Apologies for the multiple comments

Add A Comment




(Used For Validation Purposes Only)




(No HTML, Textile Markup Only)