Terminal Tip: Showing and Hiding Disks using Developer tools
In a couple of recent posts, I showed you how to how to hide drives using Finder preferences and selectively show some of them using aliases. I received a number of emails looking for more elegant solutions i.e. avoiding the look of aliases and their won't-sort-properly-like-a-real-drive behavior. A few readers also asked how to hide their iDisks, which didn't respond to the preferences the same way that hard drives did.
First let me note that iDisks aren't seen by Finder as normal hard drive volumes or, as you might expect, as connected servers. Instead, iDisks are controlled by the CDs, DVDs, and iPods preference--the same preference that shows and hides attached thumb drives and memory card readers.
As for the more elegant volume-by-volume solution, that lies in the realm of Terminal and the command-line developer tool SetFile. You can join the Apple Developer Connection and gain access to the developer tools with a Free ADC Online Membership. After installing the dev tools, you'll find SetFile in the /Developer/Tools folder.
To hide a volume, use the -a V flag with SetFile and then restart Finder. This will hide the iDisk, even in Sync mode
% /Developer/Tools/SetFile -a V /Volumes/iDisk/
% killall "Finder"
%
To bring the volume back, use -a v instead. (Notice the lower case "v".)
% /Developer/Tools/SetFile -a v /Volumes/iDisk/
% killall "Finder"
%
Share
Categories
In a couple of recent posts, I showed you how to how to hide drives using Finder preferences and selectively show some of them using...
Add a Comment
Wrong. I am Erica.
May 02 2007 at 8:33 PM Report abuse Permalink rate up rate down ReplyI used this on my backup drive. Worked like a charm.
May 01 2007 at 5:51 PM Report abuse Permalink rate up rate down ReplyBrilliant!
When I created my striped the 4 drives in my MacPro I was left with one 128MB drive that was automatically created called Mac Boot OSX. Considering that a drive of that size is pretty much pointless I've been looking at finding a way to remove that eyesore from my Desktop.
Thanks!
leonard nimrod is erica
May 01 2007 at 12:55 PM Report abuse Permalink rate up rate down ReplyExcellent work, Erica! Thank you for this this.
May 01 2007 at 11:37 AM Report abuse Permalink rate up rate down ReplyYou don't have to install the developer tools to get SetFile. Just install Server Admin, and SetFile is installed in /System/Library/ServerSetup/SetFile
May 01 2007 at 11:20 AM Report abuse Permalink rate up rate down ReplyHot Apps on TUAW
Deals of the Day
more deals- Altec Lansing Octiv Duo iDock for $48 + free shipping
- Used Apple iMac 17" Core Duo 1.83GHz for $430 + $28 s&h
- Lounge Deluxe Stand for iPhone / iPod touch for $28 + $8 s&h
- Brookstone Surround-Sound Earbuds for $14 + $7 s&h
- Refurbished Skullcandy Tokidoki Smokin' Buds Mic'd Headset for $5 + $2 s&h
- Stitchway Backup Battery for iPod / iPhone for $5 + free shipping
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



8 Comments