<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>Stephen Foskett, Pack Rat &#187; HFS Archives  &#8211; Stephen Foskett, Pack Rat</title>
	<atom:link href="http://blog.fosketts.net/tag/hfs/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.fosketts.net</link>
	<description>Understanding the accumulation of data</description>
	<lastBuildDate>Fri, 10 Feb 2012 17:40:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" />
	<atom:link rel="hub" href="http://superfeedr.com/hubbub" />
			<item>
		<title>Three Key Storage Features Missing in Mac OS X &#8220;Lion&#8221;</title>
		<link>http://blog.fosketts.net/2011/06/13/storage-features-missing-lion/</link>
		<comments>http://blog.fosketts.net/2011/06/13/storage-features-missing-lion/#comments</comments>
		<pubDate>Mon, 13 Jun 2011 16:42:43 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Enterprise storage]]></category>
		<category><![CDATA[Everything]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[10.7]]></category>
		<category><![CDATA[ATTO]]></category>
		<category><![CDATA[CalDigit]]></category>
		<category><![CDATA[Core Data incremental storage]]></category>
		<category><![CDATA[Drobo]]></category>
		<category><![CDATA[globalSAN]]></category>
		<category><![CDATA[HFS]]></category>
		<category><![CDATA[iCloud]]></category>
		<category><![CDATA[iCloud Storage API]]></category>
		<category><![CDATA[iSCSI]]></category>
		<category><![CDATA[LaCie]]></category>
		<category><![CDATA[Lion]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Studio Network Solutions]]></category>
		<category><![CDATA[Thunderbolt]]></category>
		<category><![CDATA[USB 3.0]]></category>
		<category><![CDATA[Xsan]]></category>
		<category><![CDATA[Xtend]]></category>
		<category><![CDATA[ZFS]]></category>

		<guid isPermaLink="false">http://blog.fosketts.net/?p=5654</guid>
		<description><![CDATA[Apple is not in enterprise storage company to be sure, and news from WWDC dashes any hopes we had for ZFS and iSCSI support. USB 3.0 seems a foregone conclusion, but Apple seems intent on ignoring it as long as possible. Although I welcome the new storage features included in Lion, it is disappointing that these were left out.]]></description>
			<content:encoded><![CDATA[<div id="attachment_5658" class="wp-caption aligncenter" style="width: 112px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; display: block; margin-right: auto; margin-left: auto;"><a href="http://static.fosketts.net/wp-content/uploads/2011/06/overview_callout_osx.png" ><img class="size-full wp-image-5658" title="overview_callout_osx" src="http://static.fosketts.net/wp-content/uploads/2011/06/overview_callout_osx.png" alt="" width="102" height="116" /></a><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">Mac OS X 10.7 &quot;Lion&quot; lacks many of the storage features we&#39;ve long hoped for, including ZFS, iSCSI, and USB 3.0</p></div>
<p>Last week, at WWDC, Apple introduced many of the features found in their next operating system, OS X “Lion”. At that time, I posted an article about the <a href="http://blog.fosketts.net/2011/06/06/storage-features-mac-os-107-lion/" >storage features found in this new release</a>, including integrated revision control, a major update to the FileVault encryption package, and additional enterprise storage protocol support. But, <a href="http://blog.fosketts.net/2009/06/09/snow-leopard-storage/" >like Snow Leopard</a>, Lion still lacks many storage related features, and it doesn&#8217;t look like Apple will get around to adding these anytime soon.</p>
<h3>A Better Filesystem (ZFS, Please)</h3>
<blockquote><p>See also <a href="http://blog.fosketts.net/2008/02/27/zfs-super-file-system/" >ZFS: Super File System!</a> and <a href="http://blog.fosketts.net/2011/08/04/mac-osx-lion-corestorage-volume-manager/" >Mac OS X Lion Adds CoreStorage, a Volume Manager (Finally!)</a></p></blockquote>
<p>During the development of Mac OS 10.5, “Leopard”, Apple spent a great deal of time working to replace their legacy HFS+ filesystem with ZFS, a much more advanced option. For starters, ZFS would have given Mac OS better reliability and flexibility, and it has been extended to include advanced features for security and capacity optimization.</p>
<p>But the battle between Sun and NetApp over patents related to the development of ZFS cast a shadow over the long needed replacement of HFS+. With Oracle buying Sun and focusing away from infrastructure products like ZFS, Apple seems to have lost interest in replacing their crufty old filesystem.</p>
<p>Instead of adding an advanced filesystem like ZFS, Mac OS X Lion extends HFS+ with versioning and enhanced security. The new Core Data incremental storage technology in Lion would probably have been easier to implement on ZFS, but Apple was able to add it to HFS+, and it will be a lifesaver in the guise of autosave, versions, and resume. The same goes for encryption, with FileVault 2 boasting background full disk encryption, remote wipe, and external drive support.</p>
<p>Those hoping for the integration of ZFS with Mac OS X appear to be out of luck. All components were removed from Snow Leopard, and Lion is moving forward without it. Sadly, this means that Mac OS X still lacks a flexible volume manager, something even Microsoft Windows boasts.</p>
<p>Perhaps the next version of Mac OS X will include friendly volume management features, but it is more likely that Apple will focus away from the filesystem and direct application developers toward the iCloud Storage API. And cloud truly is next-generation storage, making this a leapfrog approach and leaving ZFS in the dust.</p>
<blockquote><p>Update: Lion does indeed include a full logical volume manager! See <a href="http://blog.fosketts.net/2011/08/04/mac-osx-lion-corestorage-volume-manager/" >Mac OS X Lion Adds CoreStorage, a Volume Manager (Finally!)</a></p></blockquote>
<h3>USB 3.0: Still AWOL</h3>
<blockquote><p>See also <a href="http://blog.fosketts.net/2010/10/18/os-107-lion-bring-usb-30-mac/" >Will OS X 10.7 “Lion” Bring USB 3.0 To The Mac?</a> and <a href="http://blog.fosketts.net/series/thunderbolt/" >my Thunderbolt series</a></p></blockquote>
<p>Although Apple may have simply overlooked or neglected to mention it, USB 3.0 apparently made no appearance at WWDC. <a href="http://blog.fosketts.net/series/thunderbolt/" >Thunderbolt is an impressive technology</a> to be sure, and I am bullish on its future application and performance. But “SuperSpeed” USB 3.0 seems poised to seize the baton and become the ubiquitous next-generation interconnect for every day peripherals.</p>
<p>Thunderbolt is a strategic protocol for Apple, and I expect it to rapidly spread across the entire Mac product range. Rather than simply a high-speed interconnect, Thunderbolt will soon enable advanced docking features, as envisioned in my recent post about <a href="http://blog.fosketts.net/2011/04/20/thunderbolt-imac-peripheral-macbook-pro/" >the iMac as a Thunderbolt peripheral</a>. It will also enable changes to the physical size and shape of laptop and desktop computers and servers, with many suggesting that the next-generation MacBook Air will become the standard Apple laptop.</p>
<p>In contrast, USB 3.0 is simply a performance bump for USB. It is likely that Apple will support USB 3.0 sooner or later, and third-party vendors are already rolling out Mac OS support. CalDigit recently shipped <a href="http://blog.fosketts.net/2011/05/02/caldigit-fasta-6gu3-esata-usb-3-mac-pro/" >their third USB 3.0 controller</a> for the Mac, and LaCie sells their own “<a href="http://blog.fosketts.net/2010/11/05/lacie-usb-30-driver-mac-osx-troubleshooting/" >walled garden</a>” card and peripherals as well. I heard rumors that a few vendors are working on Thunderbolt to USB 3.0 bridges and breakout boxes as well.</p>
<p>USB 3.0 will come to the Mac sooner or later, but Thunderbolt is here to stay.</p>
<h3>Enterprise iSCSI Support</h3>
<blockquote><p>See also <a href="http://blog.fosketts.net/2009/03/18/snow-leopard-iscsi/" >Will Snow Leopard Finally Bring iSCSI To The Mac?</a></p></blockquote>
<p>Another technology that Apple has <a href="http://www.zdnet.com/blog/apple/waiting-for-leopards-iscsi-support/1097" >flirted with</a> in Leopard but never delivered is a software initiator for iSCSI, the block storage protocol that runs over Ethernet. We have not heard anything further about iSCSI since 2007, and there was no mention in the Lion introduction either.</p>
<p>Interestingly, Apple did rollout other new enterprise storage protocol options, including NFSv4, DFS, and even integration of Xsan, the Fibre Channel filesystem. Xsan also added ALUA compatible multipathing, a real surprise for storage geeks like me. But iSCSI was nowhere to be found.</p>
<p>This is a real shame, since iSCSI is becoming increasingly common in enterprise storage circles. Convergence on Ethernet is a hot topic right now, and iSCSI for Mac would give exceptional flexibility and interoperability and fit right into the &#8220;prosumer&#8221; Mac market niche.</p>
<p>Instead, end-users are stuck working with third-party iSCSI initiators, Fibre Channel and Xsan, or NFS. Although I am a fan of their <a href="http://www.studionetworksolutions.com/products/product_detail.php?pi=11" >free globalSAN product</a>, Studio Network Solutions does not offer enterprise support for third-party arrays. The other major option for Mac iSCSI is <a href="http://www.attotech.com/products/product.php?scat=17&amp;sku=INIT-MAC0-001" >ATTO&#8217;s Xtend</a>, which is supported but somewhat expensive. <a href="http://www.drobo.com/resources/iscsi.php" >Drobo also offers an iSCSI client</a> for use with their storage arrays, but it is severely limited. An integrated Apple solution would be a welcome addition, both for consumers and enterprise systems administrators.</p>
<h3>Stephen&#8217;s Stance</h3>
<p>Apple is not in enterprise storage company to be sure, and news from WWDC dashed any hopes we had for ZFS and iSCSI support. USB 3.0 seems a foregone conclusion, but Apple seems intent on ignoring it as long as possible. Although I welcome <a href="http://blog.fosketts.net/2011/06/06/storage-features-mac-os-107-lion/" >the new storage features included in Lion</a>, it is disappointing that these were left out.</p>
<p>Note that TRIM support was also not mentioned at WWDC, but it is likely included.</p>
<div id="crp_related"><h3>You might also want to read these other posts...</h3><ul><li><a href="http://blog.fosketts.net/2011/06/06/storage-features-mac-os-107-lion/"  rel="bookmark" class="crp_title">Key Storage Features in Mac OS X 10.7 &#8220;Lion&#8221;</a></li><li><a href="http://blog.fosketts.net/2011/08/04/mac-osx-lion-corestorage-volume-manager/"  rel="bookmark" class="crp_title">Mac OS X Lion Adds CoreStorage, a Volume Manager (Finally!)</a></li><li><a href="http://blog.fosketts.net/2009/06/09/snow-leopard-storage/"  rel="bookmark" class="crp_title">Snow Leopard Is Stingy With The Storage Love</a></li><li><a href="http://blog.fosketts.net/2009/03/18/snow-leopard-iscsi/"  rel="bookmark" class="crp_title">Will Snow Leopard Finally Bring iSCSI To The Mac?</a></li><li><a href="http://blog.fosketts.net/2011/05/02/caldigit-fasta-6gu3-esata-usb-3-mac-pro/"  rel="bookmark" class="crp_title">CalDigit Brings Both eSATA and USB 3 to the Mac Pro</a></li></ul></div><script src="http://feeds.feedburner.com/~s/sfoskett?i=http://blog.fosketts.net/2011/06/13/storage-features-missing-lion/" type="text/javascript" charset="utf-8"></script><hr />
<p><small>© sfoskett for <a href="http://blog.fosketts.net">Stephen Foskett, Pack Rat</a>, 2011. |
<a href="http://blog.fosketts.net/2011/06/13/storage-features-missing-lion/">Three Key Storage Features Missing in Mac OS X &#8220;Lion&#8221;</a>
<br/>
This post was categorized as <a href="http://blog.fosketts.net/category/everything/apple/" title="View all posts in Apple" rel="category tag">Apple</a>, <a href="http://blog.fosketts.net/category/everything/enterprisestorage/" title="View all posts in Enterprise storage" rel="category tag">Enterprise storage</a>, <a href="http://blog.fosketts.net/category/everything/" title="View all posts in Everything" rel="category tag">Everything</a>, <a href="http://blog.fosketts.net/category/everything/personal/" title="View all posts in Personal" rel="category tag">Personal</a>. Each of my categories has its own feed if you'd like to filter out or focus on posts like this.<br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.fosketts.net/2011/06/13/storage-features-missing-lion/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<series:name><![CDATA[Mac OS X Lion]]></series:name>
	</item>
		<item>
		<title>Key Storage Features in Mac OS X 10.7 &#8220;Lion&#8221;</title>
		<link>http://blog.fosketts.net/2011/06/06/storage-features-mac-os-107-lion/</link>
		<comments>http://blog.fosketts.net/2011/06/06/storage-features-mac-os-107-lion/#comments</comments>
		<pubDate>Mon, 06 Jun 2011 21:30:19 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Enterprise storage]]></category>
		<category><![CDATA[Everything]]></category>
		<category><![CDATA[Terabyte home]]></category>
		<category><![CDATA[10.7]]></category>
		<category><![CDATA[AirDrop]]></category>
		<category><![CDATA[Core Data incremental storage]]></category>
		<category><![CDATA[DFS]]></category>
		<category><![CDATA[FileVault]]></category>
		<category><![CDATA[FileVault 2]]></category>
		<category><![CDATA[HFS]]></category>
		<category><![CDATA[iCloud Storage API]]></category>
		<category><![CDATA[Lion]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[NFSv4]]></category>
		<category><![CDATA[Quantum]]></category>
		<category><![CDATA[SMB]]></category>
		<category><![CDATA[Steve Jobs]]></category>
		<category><![CDATA[StorNext]]></category>
		<category><![CDATA[Studio Network Solutions]]></category>
		<category><![CDATA[Time Machine]]></category>
		<category><![CDATA[TRIM]]></category>
		<category><![CDATA[Versions]]></category>
		<category><![CDATA[WWDC]]></category>
		<category><![CDATA[Xsan]]></category>

		<guid isPermaLink="false">http://blog.fosketts.net/?p=5627</guid>
		<description><![CDATA[Apple's not an enterprise company or a storage company, but Apple does have enterprise storage features in their operating systems. And Mac OS X 10.7 "Lion" is a great case in point. From Versions to Time Machine Local Snapshots to AirDrop, Lion brings some storage love, and NFS, SMB, and Xsan are there, too. Let's look at what's new and key in terms of storage in the latest version of Mac OS X.]]></description>
			<content:encoded><![CDATA[<div id="attachment_5658" class="wp-caption aligncenter" style="width: 112px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; display: block; margin-right: auto; margin-left: auto;"><a href="http://static.fosketts.net/wp-content/uploads/2011/06/overview_callout_osx.png" ><img class="size-full wp-image-5658" title="overview_callout_osx" src="http://static.fosketts.net/wp-content/uploads/2011/06/overview_callout_osx.png" alt="" width="102" height="116" /></a><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">Mac OS X 10.7 &quot;Lion&quot; is coming, and it&#39;s bringing a few storage features to the table</p></div>
<p>Apple&#8217;s not an enterprise company or a storage company. In fact, they&#8217;re rapidly jettisoning both &#8211; consider the sad fate of the <a href="http://blog.fosketts.net/tag/xserve-raid/" >Xserve RAID</a>. But Apple does have enterprise features and storage features in their operating systems. And Mac OS X 10.7 &#8220;Lion&#8221; is a great case in point. From Versions to Time Machine Local Snapshots to AirDrop, Lion brings some storage love, and iCloud&#8217;s Storage API could be game-changing. Let&#8217;s look at what&#8217;s new and key in terms of storage in the latest version of Mac OS X.</p>
<h3>New and Updated Storage Features in Lion</h3>
<p>Lion is strong on consumer-oriented features, of course. And Apple is leading the industry in pushing user-friendly storage features for data protection and sharing. OS features like Core Data incremental storage enable Auto Save and Versions, Time Machine gets local snapshots, and FileVault is updated into a whole-disk encryption (WDE) tool.</p>
<blockquote><p>Update: Probably the most important storage feature, CoreStorage, went un-covered! Read more at <a href="http://blog.fosketts.net/2011/08/04/mac-osx-lion-corestorage-volume-manager/" >Mac OS X Lion Adds CoreStorage, a Volume Manager (Finally!)</a></p></blockquote>
<h4>Auto Save, Versions, and Resume</h4>
<div id="attachment_5659" class="wp-caption aligncenter" style="width: 238px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; display: block; margin-right: auto; margin-left: auto;"><a href="http://static.fosketts.net/wp-content/uploads/2011/06/autosave_browse-e1307395294832.jpg" ><img class="size-full wp-image-5659" title="autosave_browse" src="http://static.fosketts.net/wp-content/uploads/2011/06/autosave_browse-e1307395294832.jpg" alt="" width="228" height="130" /></a><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">AutoSave and Versions leverage advances in HFS+ and a new Core API</p></div>
<p>Like iOS, Lion enhances the &#8220;back where you were&#8221; nature of computing with Auto Save, Versions, and system Resume. These completely change the end-user computing experience: Applications don&#8217;t have temporal &#8220;use once&#8221; interfaces but have lasting, historical state. And the ability to move through time (à la Time Machine)</p>
<p>Of course, lots of applications have had auto-save in the past. But Lion adds OS-level interfaces and APIs to enable applications to save data in a standard way. And these will be integrated with Resume (see below) for a very iOS-like experience.</p>
<p>Lion enables all this by enhancing the old, familiar HFS+ filesystem with <strong>Core Data incremental storage</strong>, a snapshot-like interface to save and recover multiple point-in-time instances of a single document. This is a delta differencing system, probably on a block level, in the filesystem.</p>
<p>Versions are accessed through the title bar document name, as well as a Time Machine-like interface in some applications. Applications can open up multiple versions of the same document at once, and you can cut and paste between them.</p>
<p>Resume is very cool. Applications using the new Lion APIs can save their state, even through reboots! This is what computers should have always done, but no one ever implemented it. Why should a reboot wipe out where you were last? Although not really a storage feature, resume relies on Auto Save and new APIs to store application state.</p>
<h4>Time Machine Local Snapshots</h4>
<div id="attachment_5431" class="wp-caption alignleft" style="width: 160px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; float: left;"><a href="http://blog.fosketts.net/2011/05/23/mac-osx-lion-time-machine-local-snapshots/" ><img class="size-thumbnail wp-image-5431 " title="Lion Time Machine Local Snapshots" src="http://blog.fosketts.net/wp-content/uploads/2011/05/Lion-Time-Machine-Local-Snapshots-150x110.png" alt="" width="150" height="110" /></a><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">Time Machine in Mac OS X &quot;Lion&quot; includes local snapshots as well as storage of backups on external disks</p></div>
<blockquote><p>See also <a href="http://blog.fosketts.net/2011/05/23/mac-osx-lion-time-machine-local-snapshots/" >Local Snapshots in Mac OS X Lion Time Machine: Is It A Good Idea?</a></p></blockquote>
<p>And speaking of Time Machine, it&#8217;s been enhanced with Local Snapshots, a mechanism for storing data on the local drive in addition to an external Time Machine drive. The Time Machine interface combines local snapshots and the backup drive or Time Capsule into a single timeline when browsing.</p>
<p>This appears to use Core Data incremental storage as well, though it&#8217;s not definite. And it&#8217;s unclear how local snapshots will interact with Versions.</p>
<h4>AirDrop</h4>
<p><a href="http://blog.fosketts.net/2011/06/01/apple-airdrop-mac-os-107-lion/" ><img style=' float: right; padding: 4px; margin: 0 0 2px 7px;'  class="alignright size-full wp-image-5660" title="whatsnew_icon_airdrop" src="http://static.fosketts.net/wp-content/uploads/2011/06/whatsnew_icon_airdrop.png" alt="" width="60" height="60" /></a></p>
<blockquote><p>See also <a href="http://blog.fosketts.net/2011/06/01/apple-airdrop-mac-os-107-lion/" >Snooping on AirDrop in Apple’s Mac OS X 10.7 “Lion”</a></p></blockquote>
<p>AirDrop is a new wireless file sharing protocol. Although it smacks of Wi-Fi Direct or Bluetooth, it&#8217;s neither. Instead, AirDrop is a newly-developed proprietary mechanism of sharing data between two Macs over a Wi-Fi link. It&#8217;ll be speedy and simple but incompatible with the vast majority of systems out there.</p>
<h4>FileVault 2</h4>
<p><a href="http://static.fosketts.net/wp-content/uploads/2011/06/features_filevault2_icon.png" ><img style=' float: right; padding: 4px; margin: 0 0 2px 7px;'  class="alignright size-full wp-image-5661" title="features_filevault2_icon" src="http://static.fosketts.net/wp-content/uploads/2011/06/features_filevault2_icon.png" alt="" width="64" height="64" /></a>Face it, FileVault was little-used and unfriendly. That&#8217;s all changed with FileVault 2 in Lion. It&#8217;s encryption done right and might just push average Apple users to protect their data. Kind of like what Time Machine did for backup. That&#8217;s a good thing.</p>
<p>What&#8217;s new in FileVault 2?</p>
<ul>
<li>Full-disk encryption, rather than an <a href="http://arstechnica.com/apple/news/2006/12/6436.ars" >image-based hack</a>.</li>
<li>Encrypt in place, in the background, while you work. No more waiting and losing your computer for hours or days while encryption is installed. And the encryption process will resume even after a reboot (or two)!</li>
<li>Encrypt external drives, too. Very sweet, especially for Time Machine backups!</li>
<li>Remote wipe service, probably through iCloud</li>
<li><a rel="nofollow" href="http://en.wikipedia.org/wiki/Disk_encryption_theory#XTS" >XTS-AES 128</a> support</li>
</ul>
<p>FileVault 2 is full-disk only, but supports multiple users (each with their own encrypted home area) by storing the full-disk key in each user&#8217;s keychain. They access it by using their login password, just like they always did. Apple will offer an option to store the encryption key in iCloud, but this does not appear to be the default condition.</p>
<p>Of course, users with poor passwords, or those vulnerable to social engineering, will still be vulnerable. But some encryption beats no encryption any day! Lion uses the login window for sleep and screen savers, so FileVault 2 protects in those states as well.</p>
<h4>NFSv4</h4>
<p>Lion adds support for NFS version 4, which is a welcome update. But it doesn&#8217;t appear to support version 4.1, or parallel NFS.</p>
<h4>SMB with DFS</h4>
<p>DFS is a technology in Microsoft Windows that virtualizes file server shares, improving flexibility. Lion&#8217;s SMB client supports DFS when connecting to Windows file servers.</p>
<h4>Xsan Built In</h4>
<p>Mac OS X Server will now be an optional extra to add to the standard Lion install, rather than a separate SKU. Part of this shift is the integration of Xsan, Apple&#8217;s OEM version of Quantum&#8217;s StorNext SAN file system. Xsan has been quite popular in the media space on client machines, and it appears that it does not require a Server license.</p>
<p>Xsan also gets case-insensitive volumes, which brings it more in line with the expectations of users used to HFS+. Finally, Lion gets ALUA-compatible multipathing, supporting a wide variety of storage arrays.</p>
<h4>Probable: TRIM Support for SSDs</h4>
<p>Apple enabled TRIM in certain versions of 10.6 &#8220;Snow Leopard&#8221;, but it only supported their OEM SSDs. Lion probably gets a fully-supported TRIM implementation that works with any SSD with TRIM, though this was not mentioned at WWDC or online. This is a welcome update, and one too-long in coming!</p>
<p><span style="font-size: 15px; font-weight: bold;">Stephen&#8217;s Stance</span></p>
<p>Mac OS X &#8220;Lion&#8221; doesn&#8217;t give storage folks much, but it could be a harbinger of massive changes. Although not part of Lion per se, the iCloud Storage API will likely see much use by application developers. But even Lion&#8217;s smaller storage feature list is welcome. Simple full-disk encryption in FileVault and Core Data incremental storage are promising. Let&#8217;s just hope TRIM comes along for the ride!</p>
<p>On the enterprise side of things, Lion is improving as a storage client with NFSv4, DFS, and Xsan built in. But there&#8217;s no mention of an iSCSI client, suggesting that project is dead. Thank goodness for <a href="http://www.studionetworksolutions.com/products/product_detail.php?pi=11" >Studio Network Solutions</a>! And we&#8217;re still stuck with HFS+, suggesting the ZFS transition is off the table, too. Too bad &#8211; Versions and FileVault would have been much easier to implement on ZFS!</p>
<div id="crp_related"><h3>You might also want to read these other posts...</h3><ul><li><a href="http://blog.fosketts.net/2011/05/23/mac-osx-lion-time-machine-local-snapshots/"  rel="bookmark" class="crp_title">Local Snapshots in Mac OS X Lion Time Machine: Is It A Good Idea?</a></li><li><a href="http://blog.fosketts.net/2011/06/13/storage-features-missing-lion/"  rel="bookmark" class="crp_title">Three Key Storage Features Missing in Mac OS X &#8220;Lion&#8221;</a></li><li><a href="http://blog.fosketts.net/2011/08/04/mac-osx-lion-corestorage-volume-manager/"  rel="bookmark" class="crp_title">Mac OS X Lion Adds CoreStorage, a Volume Manager (Finally!)</a></li><li><a href="http://blog.fosketts.net/2011/06/01/apple-airdrop-mac-os-107-lion/"  rel="bookmark" class="crp_title">Snooping on AirDrop in Apple&#8217;s Mac OS X 10.7 &#8220;Lion&#8221;</a></li><li><a href="http://blog.fosketts.net/2011/05/27/pile-interesting-links-27-2011/"  rel="bookmark" class="crp_title">Back From the Pile: Interesting Links, May 27, 2011</a></li></ul></div><script src="http://feeds.feedburner.com/~s/sfoskett?i=http://blog.fosketts.net/2011/06/06/storage-features-mac-os-107-lion/" type="text/javascript" charset="utf-8"></script><hr />
<p><small>© sfoskett for <a href="http://blog.fosketts.net">Stephen Foskett, Pack Rat</a>, 2011. |
<a href="http://blog.fosketts.net/2011/06/06/storage-features-mac-os-107-lion/">Key Storage Features in Mac OS X 10.7 &#8220;Lion&#8221;</a>
<br/>
This post was categorized as <a href="http://blog.fosketts.net/category/everything/apple/" title="View all posts in Apple" rel="category tag">Apple</a>, <a href="http://blog.fosketts.net/category/everything/enterprisestorage/" title="View all posts in Enterprise storage" rel="category tag">Enterprise storage</a>, <a href="http://blog.fosketts.net/category/everything/" title="View all posts in Everything" rel="category tag">Everything</a>, <a href="http://blog.fosketts.net/category/everything/terabytehome/" title="View all posts in Terabyte home" rel="category tag">Terabyte home</a>. Each of my categories has its own feed if you'd like to filter out or focus on posts like this.<br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.fosketts.net/2011/06/06/storage-features-mac-os-107-lion/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<series:name><![CDATA[Mac OS X Lion]]></series:name>
	</item>
		<item>
		<title>We Need a Storage Revolution</title>
		<link>http://blog.fosketts.net/2011/04/30/storage-revolution/</link>
		<comments>http://blog.fosketts.net/2011/04/30/storage-revolution/#comments</comments>
		<pubDate>Sat, 30 Apr 2011 16:00:00 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Computer History]]></category>
		<category><![CDATA[Enterprise storage]]></category>
		<category><![CDATA[Virtual Storage]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[BigTable]]></category>
		<category><![CDATA[CAS]]></category>
		<category><![CDATA[data management]]></category>
		<category><![CDATA[Fibre Channel]]></category>
		<category><![CDATA[Files-11]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Hadoop]]></category>
		<category><![CDATA[HFS]]></category>
		<category><![CDATA[Metadata]]></category>
		<category><![CDATA[Microsoft Office]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[nas storage]]></category>
		<category><![CDATA[network attached storage]]></category>
		<category><![CDATA[network storage]]></category>
		<category><![CDATA[RAID]]></category>
		<category><![CDATA[SCSI]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[storage management]]></category>
		<category><![CDATA[Sunday series]]></category>
		<category><![CDATA[updated]]></category>
		<category><![CDATA[VMS]]></category>
		<category><![CDATA[volume manager]]></category>
		<category><![CDATA[XAM]]></category>
		<category><![CDATA[ZFS]]></category>

		<guid isPermaLink="false">http://blog.fosketts.net/2008/10/26/we-need-a-storage-revolution/</guid>
		<description><![CDATA[Storage protocols continue to mimic direct attached storage, with the concepts of block and file at its core. No amount of virtualization, and no new protocol, will fix this - we need a storage revolution.]]></description>
			<content:encoded><![CDATA[<div id="attachment_789" class="wp-caption aligncenter" style="width: 226px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; display: block; margin-right: auto; margin-left: auto;"><a href="http://blog.fosketts.net/wp-content/uploads/2008/09/revolution-array.png" ><img class="size-medium wp-image-789 " title="Revolution Array" src="http://blog.fosketts.net/wp-content/uploads/2008/09/revolution-array-216x300.png" alt="" width="216" height="300" /></a><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">I think this sentiment is just as valid today as when I posted it in 2008!</p></div>
<p>Although many discussions in the storage industry focus on the relative merits of one protocol or another, the conversation occasionally turns to the core issue at hand: We continue to patch together a system based on outdated concepts. Most storage protocols continue to mimic direct attached storage, and most of our so-called networks act as point to point channels. An ultra-modern virtualized storage infrastructure with all the latest bells and whistles still holds the concepts of block and file at its core. Whenever the storage industry has tried to bring about real storage management they have been stymied by a lack of context for data.</p>
<p>No amount of virtualization, and no new protocol, will fix this. Put simply, we need a storage revolution.</p>
<h3>Channels, Blocks, and Files</h3>
<p>Most innovation in the 1980s and early 1990s focused on moving storage out of the server. <a rel="nofollow" href="http://en.wikipedia.org/wiki/SCSI"  target="_blank">SCSI</a> allowed disk to exist in a separate cabinet, <a rel="nofollow" href="http://en.wikipedia.org/wiki/RAID"  target="_blank">RAID</a> allowed multiple physical disks to become a single virtual one, and these were mixed to become the prototype storage array. Although SCSI allowed one-to-many connectivity, it was never a true peer-to-peer network, even once it was mixed with network concepts in the form of <a rel="nofollow" href="http://en.wikipedia.org/wiki/Fibre_Channel"  target="_blank">Fibre Channel</a>.</p>
<p>Even today, SAN storage is focused on providing faster, more flexible, and feature-packed direct-attached storage. A modern virtual SAN hides a complex arrangement of caching, data protection, tiered storage, replication, and deduplication, masquerading the lot as a simple, lowly disk drive. It is sad but true that all of our work as an industry has been dedicated to recreating what we started with.</p>
<p>Networked file-based storage is no better. Although NAS devices have all the advanced features of their SAN cousins, they must present a simple file tree to the host to retain compatibility. File virtualization merely presents a larger homogenous tree.</p>
<p>Inside the server, too, features and complexity are hidden to retain a familiar file system format. Volume managers can do anything a virtualization device can, but must present their output as a simple (though virtual) disk drive. File systems, too, have added features but still present a familiar tree of mount points, inodes, and files. Even ZFS, possibly <a href="http://blog.fosketts.net/2008/02/27/zfs-super-file-system/"  target="_self">the most advanced</a> combination of volume management and file system technology yet, must present a simple tree of storage to applications.</p>
<h3>The Metadata Roadblock</h3>
<p>This outdated paradigm, of disks and file trees, is ill-suited to today&#8217;s storage challenges. Data must be categorized so actions can be taken to preserve or destroy it based on policies. Data must be searchable so users and applications can find what they want. Data must be flexible so it can be used in new ways. Our antiquated notions are not capable of meeting these challenges.</p>
<p>One simple problem is that we lack context for our data. Most file systems merely assign to a file a name, location, owner, and security attributes. The most advanced can contain extended metadata, but this is rarely seen in practice since many applications cannot agree on how to use this data. Microsoft&#8217;s Office suite can store and share extended file attributes, for example, but these live inside the file rather than in the file system. The promise of expanded Office attributes is only realized in conjunction with a content management system like SharePoint which lies above the lowly file system.</p>
<p>What if the storage system could keep this data instead? What if it could logically group files according to project or client, mining keywords and authors, and maintaining revisions? These concepts are not new, having been implemented in content management systems for years, and certain elements appeared in file systems, like <a rel="nofollow" href="http://en.wikipedia.org/wiki/Hierarchical_File_System"  target="_blank">Apple&#8217;s HFS</a> and <a rel="nofollow" href="http://en.wikipedia.org/wiki/Files-11"  target="_blank">VMS&#8217; Files-11</a>, for decades.</p>
<h3>Cut Down the Tree</h3>
<p>File metadata would allow advanced features, but truly taking advantage of them requires a more fundamental shift in the way applications access files. Rather than sticking to a traditional hierarchy of directories in a tree (which was, after all, simply a primitive metadata system), we should remove the tree altogether. Allow files to become data objects, identified by arbitrary attributes and managed according to an overarching policy.</p>
<p>This future vision is decidedly different from our current notion of storage, but is not so far off. Many organizations now rely on central data warehouses based on SQL-language relational databases. As many storage managers have grumbled, databases tend to ignore storage management concepts entirely, managing their own content independently.</p>
<p>But not all applications need a database back-end, so another initiative seeks to provide generic object storage for wider use. Called content-addressable storage or <a rel="nofollow" href="http://en.wikipedia.org/wiki/Content-addressable_storage"  target="_blank">CAS</a>, these devices have traditionally been used only for archival purposes, since that was their first market application. As vendors break free of proprietary interfaces in favor of open ones like XAM, CAS could transform storage itself by eliminating both file and block storage at once.</p>
<p>Similar concepts are already at work in the so-called Web 2.0 world. Non-traditional databases like Google BigTable, Amazon S3, and Hadoop allow massive scalability for object storage. API-sharing initiatives with many Web 2.0 companies can be seen as similar prototypical object storage frameworks. Any of these could be leveraged to provide a new world of data storage, and many are gaining traction even now.</p>
<h3>Stephen&#8217;s Stance</h3>
<p>Although traditional block storage is here to stay for disk drives, and tree-type file systems are likely to remain the foundation of operating system storage, new object-based concepts could change the world in fundamental ways. As applications become &#8220;web aware&#8221;, they also become object aware, increasing the likelihood of such a storage revolution. For the majority of applications, this new world would be a welcome one indeed.</p>
<div id="crp_related"><h3>You might also want to read these other posts...</h3><ul><li><a href="http://blog.fosketts.net/2011/04/19/granularity-challenge-storage-management/"  rel="bookmark" class="crp_title">Granularity: The Hidden Challenge of Storage Management</a></li><li><a href="http://blog.fosketts.net/2007/06/25/storage-history-the-3server/"  rel="bookmark" class="crp_title">Storage History: The 3Server</a></li><li><a href="http://blog.fosketts.net/2010/10/26/cas-cloud-revolutionary-storage/"  rel="bookmark" class="crp_title">From CAS to Cloud: Revolutionary Storage</a></li><li><a href="http://blog.fosketts.net/2008/09/15/greenbytes-embraces-extends-zfs/"  rel="bookmark" class="crp_title">greenBytes Embraces and Extends ZFS</a></li><li><a href="http://blog.fosketts.net/2008/09/16/deduplication-primary-storage/"  rel="bookmark" class="crp_title">Deduplication Coming to Primary Storage</a></li></ul></div><script src="http://feeds.feedburner.com/~s/sfoskett?i=http://blog.fosketts.net/2011/04/30/storage-revolution/" type="text/javascript" charset="utf-8"></script><hr />
<p><small>© sfoskett for <a href="http://blog.fosketts.net">Stephen Foskett, Pack Rat</a>, 2011. |
<a href="http://blog.fosketts.net/2011/04/30/storage-revolution/">We Need a Storage Revolution</a>
<br/>
This post was categorized as <a href="http://blog.fosketts.net/category/everything/apple/" title="View all posts in Apple" rel="category tag">Apple</a>, <a href="http://blog.fosketts.net/category/everything/computerhistory/" title="View all posts in Computer History" rel="category tag">Computer History</a>, <a href="http://blog.fosketts.net/category/everything/enterprisestorage/" title="View all posts in Enterprise storage" rel="category tag">Enterprise storage</a>, <a href="http://blog.fosketts.net/category/everything/virtualstorage/" title="View all posts in Virtual Storage" rel="category tag">Virtual Storage</a>. Each of my categories has its own feed if you'd like to filter out or focus on posts like this.<br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.fosketts.net/2011/04/30/storage-revolution/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Monitoring Filesystem Metadata For Thin Provisioning</title>
		<link>http://blog.fosketts.net/2011/01/03/monitoring-filesystem-metadata-thin-provisioning/</link>
		<comments>http://blog.fosketts.net/2011/01/03/monitoring-filesystem-metadata-thin-provisioning/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 17:58:26 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Computer History]]></category>
		<category><![CDATA[Enterprise storage]]></category>
		<category><![CDATA[Everything]]></category>
		<category><![CDATA[Virtual Storage]]></category>
		<category><![CDATA[data robotics]]></category>
		<category><![CDATA[Drobo]]></category>
		<category><![CDATA[FAT]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[HFS]]></category>
		<category><![CDATA[Metadata]]></category>
		<category><![CDATA[metadata monitoring]]></category>
		<category><![CDATA[NTFS]]></category>
		<category><![CDATA[thin provisioning]]></category>

		<guid isPermaLink="false">http://blog.fosketts.net/?p=4628</guid>
		<description><![CDATA[I began by introducing the core problem: Storage isn't getting any cheaper due to storage utilization and provisioning problems. Thin provisioning isn't all it's cracked up to be, since the telephone game makes de-allocation a challenge. So now let's talk about how to make thin provisioning actually work.]]></description>
			<content:encoded><![CDATA[<p><a href="http://static.fosketts.net/wp-content/uploads/2010/12/Slide01.jpg"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-medium wp-image-4606" title="Slide01" src="http://static.fosketts.net/wp-content/uploads/2010/12/Slide01-300x225.jpg" alt="" width="300" height="225" /></a>

One of the topics I've often written and spoken about is thin provisioning. This series of 11 articles is an edited version of <a href="http://www.slideshare.net/sfoskett/state-of-the-art-thin-provisioning" target="_blank">my thin provisioning presentation from Interop New York 2010</a>. I hope you enjoy it!</p>
<p>I began by introducing the core problem: <a href="http://blog.fosketts.net/2010/12/27/thin-provisioning-storage-cheaper/"  target="_blank">Storage isn&#8217;t getting any cheaper</a> due to <a href="http://blog.fosketts.net/2010/12/27/thin-provisioning-attacking-storage-utilization/"  target="_blank">storage utilization and provisioning problems</a>. Thin provisioning isn&#8217;t all it&#8217;s cracked up to be, since <a href="http://blog.fosketts.net/2010/12/30/thin-provisioning-playing-telephone-game/" >the telephone game</a> makes <a href="http://blog.fosketts.net/2010/12/29/deallocating-core-issue-thin-provisioning/" >de-allocation a challenge</a>. So now let&#8217;s talk about how to make thin provisioning actually work.</p>
<p><a href="http://static.fosketts.net/wp-content/uploads/2010/12/Slide11.jpg" ><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-medium wp-image-4596" title="Slide11" src="http://static.fosketts.net/wp-content/uploads/2010/12/Slide11-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>There are 100 different ways of solving the de-allocation problem, some of which have gained some prominence. They all boil down to two options:</p>
<ol>
<li>Make the <strong>server</strong> super-smart and have it communicate better</li>
<li>Make the <strong>storage</strong> super-smart and have it make educated guesses</li>
</ol>
<p>There&#8217;s only a few ways that the server-side option can be implemented, and we&#8217;ll get to that. But first, let&#8217;s take a look at a sort of hybrid approach that relies on known server usage patterns: Metadata monitoring.</p>
<p><a href="http://static.fosketts.net/wp-content/uploads/2010/12/Slide12.jpg" ><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-medium wp-image-4595" title="Slide12" src="http://static.fosketts.net/wp-content/uploads/2010/12/Slide12-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>It&#8217;s really hard for the storage to really understand what the server is doing. The best example that I know of is <a href="http://blog.fosketts.net/series/drobo/"  target="_blank">the Drobo sitting under my desk</a>.</p>
<p>I love this little black box. When I got it, I configured it as eight terabytes and I put a 160-gig disk in it. That&#8217;s thin provisioning. And over time, I&#8217;m swapping out the disks and I&#8217;m doing all my stuff, and it still looks like eight terabytes. Add data, delete it, swap disks, and it always just works.</p>
<p>Not a lot of people know how the Drobo works, though. One of the things that people have complained about is that it only supports certain file systems and partition schemes. The reason for this is a &#8220;magical&#8221; thing it&#8217;s doing that relates very, very closely to the topic of this discussion. The Drobo is the first thin provisioning box that I know of that directly monitors the file system.</p>
<p>What the Drobo does is this: It knows where the supported filesystems (HFS+, NTFS, EXT3, and FAT) keep the record of what&#8217;s been deleted. So the Drobo it watches that spot and when you delete something, it reclaims that space. No enterprise storage system can do this, and yet this little box under my desk does it all day long.</p>
<p>This is basically the super, ultimate smarts of storage. But, of course, it&#8217;s very limited. It faces a real challenge in an enterprise setting because there is much more variety. We have all these layers of virtualization and weird file systems and things like that to worry about. We just can&#8217;t expect a product like this to accommodate everybody, so we just can&#8217;t expect this kind of smarts to be put everywhere.</p>
<p>Instead, we have a variety of semaphores sent from the server to the storage array that attempt to solve the telephone game. That&#8217;s what we&#8217;re talking about next.</p>
<div id="crp_related"><h3>You might also want to read these other posts...</h3><ul><li><a href="http://blog.fosketts.net/2010/12/30/thin-provisioning-playing-telephone-game/"  rel="bookmark" class="crp_title">Thin Provisioning: Playing the Telephone Game</a></li><li><a href="http://blog.fosketts.net/2010/12/29/deallocating-core-issue-thin-provisioning/"  rel="bookmark" class="crp_title">De-Allocating is the Core Issue for Thin Provisioning</a></li><li><a href="http://blog.fosketts.net/2011/01/04/page-reclaim-savior-thin-provisioning/"  rel="bookmark" class="crp_title">Zero Page Reclaim: Savior of Thin Provisioning?</a></li><li><a href="http://blog.fosketts.net/2011/01/06/bridge-veritas-thin-provisioning-api/"  rel="bookmark" class="crp_title">The Bridge: Veritas Thin (Provisioning) API</a></li><li><a href="http://blog.fosketts.net/2010/12/28/thin-provisioning-attacking-storage-utilization/"  rel="bookmark" class="crp_title">Thin Provisioning: Attacking Storage Utilization</a></li></ul></div><script src="http://feeds.feedburner.com/~s/sfoskett?i=http://blog.fosketts.net/2011/01/03/monitoring-filesystem-metadata-thin-provisioning/" type="text/javascript" charset="utf-8"></script><hr />
<p><small>© sfoskett for <a href="http://blog.fosketts.net">Stephen Foskett, Pack Rat</a>, 2011. |
<a href="http://blog.fosketts.net/2011/01/03/monitoring-filesystem-metadata-thin-provisioning/">Monitoring Filesystem Metadata For Thin Provisioning</a>
<br/>
This post was categorized as <a href="http://blog.fosketts.net/category/everything/computerhistory/" title="View all posts in Computer History" rel="category tag">Computer History</a>, <a href="http://blog.fosketts.net/category/everything/enterprisestorage/" title="View all posts in Enterprise storage" rel="category tag">Enterprise storage</a>, <a href="http://blog.fosketts.net/category/everything/" title="View all posts in Everything" rel="category tag">Everything</a>, <a href="http://blog.fosketts.net/category/everything/virtualstorage/" title="View all posts in Virtual Storage" rel="category tag">Virtual Storage</a>. Each of my categories has its own feed if you'd like to filter out or focus on posts like this.<br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.fosketts.net/2011/01/03/monitoring-filesystem-metadata-thin-provisioning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<series:name><![CDATA[State of the Art Thin Provisioning]]></series:name>
	</item>
		<item>
		<title>An Introduction To exFAT</title>
		<link>http://blog.fosketts.net/2010/10/01/introduction-exfat/</link>
		<comments>http://blog.fosketts.net/2010/10/01/introduction-exfat/#comments</comments>
		<pubDate>Fri, 01 Oct 2010 15:16:04 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Computer History]]></category>
		<category><![CDATA[Terabyte home]]></category>
		<category><![CDATA[Bill Gates]]></category>
		<category><![CDATA[exFAT]]></category>
		<category><![CDATA[FAT]]></category>
		<category><![CDATA[FAT16]]></category>
		<category><![CDATA[FAT32]]></category>
		<category><![CDATA[Filesystems]]></category>
		<category><![CDATA[HFS]]></category>
		<category><![CDATA[Marc McDonald]]></category>
		<category><![CDATA[MBR]]></category>
		<category><![CDATA[Memory Stick]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[NTFS]]></category>
		<category><![CDATA[QDOS]]></category>
		<category><![CDATA[SD]]></category>
		<category><![CDATA[SDHC]]></category>
		<category><![CDATA[SDXC]]></category>
		<category><![CDATA[Seattle Computer Products]]></category>
		<category><![CDATA[Tim Paterson]]></category>
		<category><![CDATA[VFAT]]></category>

		<guid isPermaLink="false">http://blog.fosketts.net/?p=3777</guid>
		<description><![CDATA[Microsoft already gave the world FAT and NTFS, and both have become common in the non-Windows world thanks to flash drives, SD cards, and portable disks. But the folks from Redmond are now introducing a new filesystem, exFAT. Do we really need a new filesystem?]]></description>
			<content:encoded><![CDATA[<div id="attachment_3778" class="wp-caption aligncenter" style="width: 310px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; display: block; margin-right: auto; margin-left: auto;"><a href="http://blog.fosketts.net/wp-content/uploads/2010/10/Scale-Face-by-playingwithpsp.jpg" ><img class="size-medium wp-image-3778" title="Scale Face by playingwithpsp" src="http://blog.fosketts.net/wp-content/uploads/2010/10/Scale-Face-by-playingwithpsp-300x287.jpg" alt="" width="300" height="287" /></a><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">Today&#39;s super-sized drives need something better than FAT. Introducing exFAT, the next-generation portable filesystem.</p></div>
<p>Microsoft already gave the world FAT and NTFS, and both have become common in the non-Windows world thanks to flash drives, SD cards, and portable disks. But the folks from Redmond are now introducing a new filesystem, exFAT. Do we really need a new filesystem?</p>
<h3>The Rise and Fall of FAT</h3>
<p>Although computing is a volatile world, standards tend to stick around way past their prime. Nowhere is this more apparent than the ubiquitous FAT filesystem. Although it has been modified and updated, the basic FAT structure pre-dates DOS: It was designed for Microsoft&#8217;s first real product, Standalone Basic, and bears the fingerprints of the company&#8217;s first employee, <a rel="nofollow" href="http://en.wikipedia.org/wiki/Marc_McDonald"  target="_blank">Marc McDonald</a>, as well as some other programmer called Bill Gates.</p>
<p>Appealing in its simplicity, FAT was <a href="http://starman.vertcomp.com/DOS/ibm100/index.html"  target="_blank">adopted</a> by <a rel="nofollow" href="http://en.wikipedia.org/wiki/Tim_Paterson"  target="_blank">Tim Paterson</a> at Seattle Computer Products for his QDOS operating system, which found its way back to Microsoft as IBM&#8217;s PC-DOS. FAT was improved with 16-bit cluster addresses for the 1984 IBM PC-AT&#8217;s hard disk drive, and enhanced again to match growing disk sizes as FAT32 in Windows 95. Along the way, VFAT added 32-bit file access and long file names.</p>
<p>Because it was simple in concept, FAT was reverse-engineered and adopted as a standard filesystem for data interchange between DOS/Windows PCs and other operating systems, from Apple to Atari to Amiga. Today, FAT16 is the dominant format for SD cards, and most thumb drives and SDHC cards use FAT32. But FAT is not an open standard: Microsoft <a rel="nofollow" href="http://www.microsoft.com/about/legal/en/us/IntellectualProperty/IPLicensing/Programs/FATFileSystem.aspx"  target="_blank">successfully patented</a> VFAT and FAT32 and <a rel="nofollow" href="http://www.microsoft.com/whdc/system/platform/firmware/fatgen.mspx"  target="_blank">specifically requires</a> digital camera and flash drive companies to obtain a license for its use.</p>
<p>Although widely dismissed as archaic, many of the limits of FAT (especially FAT32) are due to factors outside the filesystem, particularly the MBR partition scheme and implementation-related issues. FAT32 is <a href="http://ask-leo.com/is_there_a_limit_to_what_a_single_folder_or_directory_can_hold.html"  target="_blank">capable</a> on disks up to 2 terabytes, which matches the maximum size of the next-generation SDXC flash card specification. And, despite Microsoft&#8217;s patents, FAT is widely implemented and stable on a variety of platforms and embedded devices.</p>
<h3>Why exFAT?</h3>
<p>Hard disk drives long since switched to NTFS or other operating system-specific formats, so FAT is mainly used on flash media today. Sadly, FAT isn&#8217;t all that well-suited for applications like these. Thumb drives don&#8217;t really push the envelope for FAT since they tend to hold reasonable numbers of smaller files, but flash media for digital cameras is a different story.</p>
<p>SD cards have taken over the digital camera world: Even holdouts like Sony now support SD and its successors, SDHC and SDXC. And just about every SD and SDHC card sold today uses FAT16 and FAT32, respectively. It works reasonably well for still images, but video poses real issues. FAT32 is limited to 4 GB per file, and HD camcorders and digital cameras can easily push past this size limit. Most models today split files or limit recording time to avoid this limitation, but that&#8217;s not optimal.</p>
<p>exFAT enables file sizes up to 16 EB and also adds nifty features like a free space bitmap allowing better use of flash memory and eliminating the read/erase/write issue of NAND. It also allows more-granular timestamps (10 ms, rather than 2 seconds on FAT) which better-match high-speed shooting capabilities of today&#8217;s digital cameras.</p>
<h3>exFAT Limitations</h3>
<p>But not everything is rosy with exFAT. Although it seems poised to take off thanks to strong support from the SDcard Association, exFAT remains encumbered by patents and licensing fees from Microsoft. Memory Stick XC requires the use of exFAT, but SDXC merely suggests it and there is no guarantee of third-party support. Digital camera makers may decide to stick with FAT32 rather than switch, though Microsoft makes it more attractive for embedded uses with <a href="http://arstechnica.com/microsoft/news/2009/12/microsoft-licenses-out-exfat-file-system.ars"  target="_blank">a flat $300k fee</a> per manufacturer.</p>
<p>There is also one odd technical limitation to exFAT. Because removable media is often physically ejected at inopportune moments, the FAT filesystem was designed with alternating file allocation tables. Should writing of the table be interrupted, FAT can always fall back on the previous iteration. exFAT curiously uses just one allocation table and free space bitmap, making it more likely to become corrupt in precisely the portable devices it was intended for. A follow-on enhancement, Transactional exFAT or TexFAT, adds redundant tables and bitmaps but may not be implemented.</p>
<p>Unfortunately, the old, inflexible MBR partition scheme remains coupled to exFAT. It would have been nice to ditch MBR in favor of the open GPT format, but the static nature of flash media made that less of a priority. Still, MBR is limited to 2 TB, and this will become a roadblock for flash media at some point.</p>
<blockquote><p>You might also want to read <a href="http://blog.fosketts.net/2010/10/01/sdxc-exfat-apple-mac-os-imac-mini/" >Introducing SDXC and exFAT in Apple Mac OS X</a></p></blockquote>
<h3>Stephen&#8217;s Stance</h3>
<p>Adoption of exFAT seems likely, especially for the SDXC and MSXC flash cards used in digital cameras. Because it is not backwards-compatible with devices, media, operating systems, and card readers, however, consumer confusion is likely to result. Even systems with an SDXC card reader might not be capable of reading the exFAT filesystem contained on the card, and vice versa.</p>
<p>Microsoft, being the proud parent of exFAT, supports the new filesystem in its modern Windows 7 and Server 2008 operating systems and has moved quickly to add it to Windows XP, Server 2003, and Vista. A few exFAT drivers exist for Linux and Android, and <a href="http://blog.fosketts.net/2010/10/01/sdxc-exfat-apple-mac-os-imac-mini/"  target="_blank">Apple is likely to add support for exFAT in Snow Leopard 10.6.5</a>, since the SDXC-capable mid-July iMac and Mac Mini computers already have it in 10.6.4.</p>
<p>So it looks like we&#8217;ve got a new filesystem on our hands, at least for camera cards. But exFAT will not likely replace FAT32 on thumb drives any time soon. Their portability requires broad compatibility, and FAT32 has the widest support today. Although exFAT will likely be used in embedded applications, it there is no compelling reason for it to displace NTFS and other operating system filesystems like (Apple) HFS+ and (Linux) ext3/ext4 any time soon.</p>
<p><em>Image credit: Scale Face by </em><a rel="nofollow" href="http://www.flickr.com/photos/playingwithpsp/" ><em>Playingwithbrushes</em></a></p>
<div id="crp_related"><h3>You might also want to read these other posts...</h3><ul><li><a href="http://blog.fosketts.net/2010/10/01/sdxc-exfat-apple-mac-os-imac-mini/"  rel="bookmark" class="crp_title">Introducing SDXC and exFAT in Apple Mac OS X</a></li><li><a href="http://blog.fosketts.net/2010/12/06/ipad-compatible-sdxc-exfat-cards/"  rel="bookmark" class="crp_title">Is The iPad Compatible With SDXC and ExFAT Cards?</a></li><li><a href="http://blog.fosketts.net/2012/01/06/xqd-card-media-pro-cameras/"  rel="bookmark" class="crp_title">What Is an XQD Card? The New Media for Pro Cameras!</a></li><li><a href="http://blog.fosketts.net/2010/12/10/pile-interesting-links-december-10-2010/"  rel="bookmark" class="crp_title">Back From the Pile: Interesting Links, December 10, 2010</a></li><li><a href="http://blog.fosketts.net/2010/10/05/hitachi-gst-advanced-format-hard-disk-drive/"  rel="bookmark" class="crp_title">Hitachi GST Joins WD On The &#8220;Advanced Format&#8221; Hard Disk Drive Bandwagon</a></li></ul></div><script src="http://feeds.feedburner.com/~s/sfoskett?i=http://blog.fosketts.net/2010/10/01/introduction-exfat/" type="text/javascript" charset="utf-8"></script><hr />
<p><small>© sfoskett for <a href="http://blog.fosketts.net">Stephen Foskett, Pack Rat</a>, 2010. |
<a href="http://blog.fosketts.net/2010/10/01/introduction-exfat/">An Introduction To exFAT</a>
<br/>
This post was categorized as <a href="http://blog.fosketts.net/category/everything/apple/" title="View all posts in Apple" rel="category tag">Apple</a>, <a href="http://blog.fosketts.net/category/everything/computerhistory/" title="View all posts in Computer History" rel="category tag">Computer History</a>, <a href="http://blog.fosketts.net/category/everything/terabytehome/" title="View all posts in Terabyte home" rel="category tag">Terabyte home</a>. Each of my categories has its own feed if you'd like to filter out or focus on posts like this.<br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.fosketts.net/2010/10/01/introduction-exfat/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Review: 1 TB Seagate Expansion Portable USB Drive (ST910004EXA101-RK)</title>
		<link>http://blog.fosketts.net/2010/09/03/review-1-tb-seagate-expansion-portable-usb-drive-st910004exa101rk/</link>
		<comments>http://blog.fosketts.net/2010/09/03/review-1-tb-seagate-expansion-portable-usb-drive-st910004exa101rk/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 19:31:19 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Everything]]></category>
		<category><![CDATA[Terabyte home]]></category>
		<category><![CDATA[Disk Utility]]></category>
		<category><![CDATA[DOA]]></category>
		<category><![CDATA[Expansion Portable]]></category>
		<category><![CDATA[FreePlay]]></category>
		<category><![CDATA[GPT]]></category>
		<category><![CDATA[HFS]]></category>
		<category><![CDATA[MBR]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[Seagate]]></category>
		<category><![CDATA[ST91000430AS]]></category>
		<category><![CDATA[Tech Field Day]]></category>
		<category><![CDATA[USB]]></category>

		<guid isPermaLink="false">http://blog.fosketts.net/?p=3615</guid>
		<description><![CDATA[The Tech Field Day events I organize generate a massive amount of HD video content, and moving half a terabyte or more of data is a real issue. We had been using luggable desktop drives from Western Digital and Seagate, but preferred a smaller, lighter, USB bus-powered portable solution. The Seagate Expansion Portable USB drive we bought this week packs an amazing 1 TB of capacity, but our experience with the product was mixed at best.]]></description>
			<content:encoded><![CDATA[<div id="attachment_3616" class="wp-caption aligncenter" style="width: 328px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; display: block; margin-right: auto; margin-left: auto;"><a href="http://blog.fosketts.net/wp-content/uploads/2010/09/Seagate-ST910004EXA101-R.png" ><img class="size-full wp-image-3616" title="Seagate ST910004EXA101-R" src="http://blog.fosketts.net/wp-content/uploads/2010/09/Seagate-ST910004EXA101-R.png" alt="" width="318" height="185" /></a><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">The Seagate Expansion Portable packs 1 TB into a compact single-cable box, but our initial experience with a DOA unit wasn&#39;t positive</p></div>
<p>The Tech Field Day events I organize generate a massive amount of HD video content, and moving half a terabyte or more of data is a real issue. We had been using luggable desktop drives from Western Digital and Seagate, but preferred a smaller, lighter, USB bus-powered portable solution. The Seagate Expansion Portable USB drive we bought this week packs an amazing 1 TB of capacity, but our experience with the product was mixed at best.</p>
<h3>Exploring the Seagate Expansion Portable</h3>
<p><iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;nou=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=packrat-20&#038;o=1&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=10FE9736YVPPT7A0FBG2&#038;asins=B003CJTJ94" style="width:120px;height:240px;float:right;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></p>
<p>&#8220;Expansion&#8221; is Seagate&#8217;s basic (read &#8220;inexpensive&#8221;) external drive line, designed more for ease of use than portability, performance, or features. The mainstream FreeAgent line includes more bundled software and flexibility to be used in docks, media players, and more. Since I didn&#8217;t need any of this, I was happy to stick with the basic Expansion line.</p>
<p>I picked the &#8220;Expansion Portable&#8221; which is smaller and bus-powered, thanks to its use of a smaller 2.5&#8243; hard disk drive mechanism. 1 TB is an amazing capacity point in a 2.5&#8243; drive (see below), but the expansion is not as slim as other portable drives. Indeed, it&#8217;s just plain chunky, despite its curving piano-black case. The drive came in a plain-ish cardboard box (printed, unlike WD&#8217;s basic line) and included a short USB-to-mini-USB cable, a fold-out booklet, and not much else.</p>
<h3>Trouble: DOA and Format</h3>
<p>Our troubles started when plugged the brand new drive into a MacBook Pro to transfer some video from VMworld. Although the drive audibly spun up and the green light came on, it was not visible to the computer at all. We tried it on different ports, with different cables, and on different computers with no luck. It appeared to be working but was unusable. A quick check on Amazon reveals <a rel="nofollow" href="http://www.amazon.com/gp/product/B003CJTJ94?ie=UTF8&#038;tag=packrat-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=B003CJTJ94" >many similar comments</a>. What&#8217;s the issue here, Seagate? Sounds like a bad batch of controllers.</p>
<p>After exchanging our defective drive for a working one (thank goodness we bought it at a local Office Depot rather than via mail order) we hit our next snag. The drive comes formatted with NTFS using an MBR partition scheme. Since the source computer was running Mac OS X 10.5, it could not write to NTFS. The videographer couldn&#8217;t reformat it to HFS+ due to its size and partitioning scheme. We had to use Disk Utility to repartition it to GPT before we could get it to work. Although not difficult, I can&#8217;t imagine most Mac users would think of changing the partition scheme! Admittedly, Seagate does not claim OS X compatibility for this drive: The box includes Windows logos only. It is too bad the Windows world still sticks to MBR when GPT is so much more functional, flexible, and scalable.</p>
<p>The drive seems to work fine now that we&#8217;ve done all this, however. It is no speed demon (see below) but packs tons of data into a small physical unit with no bulky power adapter to bring along. Let&#8217;s hope the DOA problem is not a sign of unreliability for this unit as well!</p>
<h3>1 TB in a 2.5&#8243; Bus-Powered Drive</h3>
<p>Packing 1 TB into a 2.5&#8243; form factor hard disk drive is more amazing even than it sounds. Although a few vendors sell these beasts, it&#8217;s a stretch to make it work at current platter densities. Rather than sticking to the 1- or 2-platter format found in common 9.5 or 12.5 mm laptop hard disk drives, vendors have had to use 3 platters, each at 333 GB or so, to reach 1 TB. Since 3 platters barely fit in a 12.5 mm case, 1 TB laptop drives are rare.</p>
<p>In Seagate&#8217;s case, they didn&#8217;t bother minimizing the size of the drive. Instead, they use a comparatively chunky case that is nearly 15 mm high, perhaps enough even for four platters. This is why the Expansion Portable is almost twice as tall as other USB-powered portable drives, and why the hard disk inside isn&#8217;t available for purchase as a bare drive. For reference, the drive inside is a Seagate &#8220;FreePlay&#8221; ST91000430AS mechanism and is accessed by removing two screws under the &#8220;feed&#8221; at the front of the case.</p>
<h3>Performance (or Lack Thereof)</h3>
<blockquote><p>Interested in hard disk performance? Check out my <a href="http://blog.fosketts.net/series/4-horsemen/"  target="_blank">&#8220;Four Horsemen of Storage Performance&#8221;</a> series!</p></blockquote>
<p>No USB 2.0 drive is very fast, which is why the storage industry is transitioning to USB 3.0 and eSATA. I have almost a dozen different USB hard drive connectors and none can top 25 MB/s in sequential throughput, a pathetic number when one considers that a mainstream 5400 rpm hard disk can do four to six times that using SATA. <a href="http://blog.fosketts.net/2008/07/30/firewire-faster-usb/"  target="_blank">FireWire is faster</a>, but SATA and USB 3.0 have them both beat.</p>
<p>Therefore, it is no surprise that the Expansion Portable pokes along at around 22 MB/s during data transfer. This means that 18 minutes of HD video (weighing in at 15 GB) took 12 minutes to copy. We&#8217;ll have to budget 8.5 hours to copy all the video we&#8217;ll capture at our next two-day Tech Field Day event, but at least the little Seagate can hold this much data!</p>
<p>Although sequential performance is limited by USB 2.0, random performance on these drives is much more telling. The big Seagate was somewhat quicker than an old 160 GB Maxtor drive but rather slower than either a 320 GB Verbatim or 1.5 TB desktop Seagate USB drive in random read and write. This poor showing indicates that the drive just isn&#8217;t engineered for performance, and buyers should not expect much from it.</p>
<div id="attachment_3637" class="wp-caption aligncenter" style="width: 310px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; display: block; margin-right: auto; margin-left: auto;"><a href="http://blog.fosketts.net/wp-content/uploads/2010/09/Seagate-1-TB-controller-comparison.jpg" ><img class="size-medium wp-image-3637" title="Seagate 1 TB controller comparison" src="http://blog.fosketts.net/wp-content/uploads/2010/09/Seagate-1-TB-controller-comparison-300x126.jpg" alt="" width="300" height="126" /></a><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">Seagate chose a slow USB chipset for their Expansion Portable drive</p></div>
<p><strong>Update:</strong> Head-to-head tests reveal that Seagate&#8217;s choice of USB controllers isn&#8217;t helping anything from a performance standpoint, either. It was easily 30% slower than the USB controller used in a Verbatim enclosure, and almost half the speed of the FireWire chip found in that box!</p>
<h3>Stephen&#8217;s Stance</h3>
<p>The Seagate Expansion Portable is a reasonably-priced device with massive 1 TB capacity. It performs adequately, limited more by USB than the hard disk mechanism used, but isn&#8217;t exemplary in this respect. It is physically larger than other devices, especially in terms of thickness, but remains portable since it is USB-powered and thus does not require a power brick.</p>
<p>Macintosh users not yet using Snow Leopard will want to repartition and reformat the drive before use. Although reformatting USB drives as HFS+ is familiar to many Mac users, the need to change the partition type is a little more unusual.</p>
<p>Our initial experience was marred by a DOA unit, and online reports indicate that this was not an isolated case. Due to this failure, I cannot recommend the 1 TB Seagate Expansion Portable at this point. The hard disk drive mechanism seems fine, since it spun up without issue, but the drive never even appeared indicating a defective USB controller. Seagate should take steps to improve quality control before these failures damage their reputation!<br />
<blockquote>Note: Some of these links include affiliate codes that help pay for this blog. For example, <a href="http://www.amazon.com/gp/product/B002Y27P3M?ie=UTF8&tag=packrat-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=B002Y27P3M" target="_blank">buying an Amazon Kindle with this link</a> sends a few bucks my way! But I don't write this blog to make money, and am happy to link to sites and stores that don't pay anything. I like Amazon and buy tons from them, but you're free to buy whatever and wherever you want.</blockquote></p>
<div id="crp_related"><h3>You might also want to read these other posts...</h3><ul><li><a href="http://blog.fosketts.net/2010/10/18/seagate-areal-density-1-tb-2-platter-25-drive/"  rel="bookmark" class="crp_title">Seagate Breaks the Areal Density Limit With 1 TB 2 Platter 2.5&#8243; Drive</a></li><li><a href="http://blog.fosketts.net/2009/06/23/seagate-surpasses-500-gb-25-inches/"  rel="bookmark" class="crp_title">Seagate Surpasses 500 GB In 2.5 Inches</a></li><li><a href="http://blog.fosketts.net/2008/01/11/overlooked-at-ces-seagate-pipelinehd-drive/"  rel="bookmark" class="crp_title">Overlooked at CES: Seagate PipelineHD Drive</a></li><li><a href="http://blog.fosketts.net/2010/08/20/seagatepogoplug-network-hard-drive-adapter-23-shipped/"  rel="bookmark" class="crp_title">Seagate/PogoPlug Network Hard Drive Adapter Deals</a></li><li><a href="http://blog.fosketts.net/2011/09/08/seagate-goflex-desk-4tb-hitachi-deskstar/"  rel="bookmark" class="crp_title">Seagate Jumps Hitachi&#8217;s Density Record With 4 TB Hard Disk Announcement</a></li></ul></div><script src="http://feeds.feedburner.com/~s/sfoskett?i=http://blog.fosketts.net/2010/09/03/review-1-tb-seagate-expansion-portable-usb-drive-st910004exa101rk/" type="text/javascript" charset="utf-8"></script><hr />
<p><small>© sfoskett for <a href="http://blog.fosketts.net">Stephen Foskett, Pack Rat</a>, 2010. |
<a href="http://blog.fosketts.net/2010/09/03/review-1-tb-seagate-expansion-portable-usb-drive-st910004exa101rk/">Review: 1 TB Seagate Expansion Portable USB Drive (ST910004EXA101-RK)</a>
<br/>
This post was categorized as <a href="http://blog.fosketts.net/category/everything/apple/" title="View all posts in Apple" rel="category tag">Apple</a>, <a href="http://blog.fosketts.net/category/everything/" title="View all posts in Everything" rel="category tag">Everything</a>, <a href="http://blog.fosketts.net/category/everything/terabytehome/" title="View all posts in Terabyte home" rel="category tag">Terabyte home</a>. Each of my categories has its own feed if you'd like to filter out or focus on posts like this.<br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.fosketts.net/2010/09/03/review-1-tb-seagate-expansion-portable-usb-drive-st910004exa101rk/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Bizarre HFS+ Tricks in Mac OS X 10.6 Snow Leopard</title>
		<link>http://blog.fosketts.net/2009/09/11/bizarre-hfs-tricks-in-mac-os-x-10-6-snow-leopard/</link>
		<comments>http://blog.fosketts.net/2009/09/11/bizarre-hfs-tricks-in-mac-os-x-10-6-snow-leopard/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 15:27:24 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Computer History]]></category>
		<category><![CDATA[Ars Technica]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[HFS]]></category>
		<category><![CDATA[John Siracusa]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Snow Leopard]]></category>

		<guid isPermaLink="false">http://blog.fosketts.net/?p=2302</guid>
		<description><![CDATA[I don&#8217;t usually excerpt large amounts of text from other blogs. But this is just too cool. UNIX nerds and Mac OS X weenies alike will either shake their heads and jump out a window or laugh out loud at one of the under-reported changes in Snow Leopard. See, Snow Leopard&#8217;s version of HFS+ allows [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t usually excerpt large amounts of text from other blogs. But this is just too cool. UNIX nerds and Mac OS X weenies alike will either shake their heads and jump out a window or laugh out loud at one of the under-reported changes in Snow Leopard.</p>
<p>See, Snow Leopard&#8217;s version of HFS+ allows per-file compression using three very creative filesystem hacks. <span id="more-2302"></span>I&#8217;ll let <a href="http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/3#"  target="_blank">John Siracusa from Ars Technica</a> take the story from here, and I urge you to read John&#8217;s complete (and very, very long) <a href="http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/"  target="_blank">Snow Leopard review</a>!</p>
<blockquote><p>In Snow Leopard, other kinds of files climb on board the compression bandwagon. To give just one example, ninety-seven percent of the executable files in Snow Leopard are compressed. How compressed? Let&#8217;s look:</p>
<p>% cd Applications/Mail.app/Contents/MacOS</p>
<p>% ls -l Mail</p>
<p>-rwxr-xr-x@ 1 root  wheel  0 Jun 18 19:35 Mail</p>
<p>Boy, that&#8217;s, uh, pretty small, huh? Is this really an executable or what? Let&#8217;s check our assumptions.</p>
<p>% file Applications/Mail.app/Contents/MacOS/Mail</p>
<p>Applications/Mail.app/Contents/MacOS/Mail: empty</p>
<p>Yikes! What&#8217;s going on here? Well, what I didn&#8217;t tell you is that the commands shown above were run from a Leopard system looking at a Snow Leopard disk. In fact, all compressed Snow Leopard files appear to contain zero bytes when viewed from a pre-Snow Leopard version of Mac OS X. (They look and act perfectly normal when booted into Snow Leopard, of course.)</p>
<p>So, where&#8217;s the data? The little &#8220;@&#8221; at the end of the permissions string in the ls output above (a feature introduced in Leopard) provides a clue. Though the Mail executable has a zero file size, it does have some extended attributes:</p>
<p>% xattr -l Applications/Mail.app/Contents/MacOS/Mail</p>
<p>com.apple.ResourceFork:</p>
<p>0000     00 00 01 00 00 2C F5 F2 00 2C F4 F2 00 00 00 32    &#8230;..,&#8230;,&#8230;..2</p>
<p>0010     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    &#8230;&#8230;&#8230;&#8230;&#8230;.</p>
<p>(184,159 lines snipped)</p>
<p>2CF610   63 6D 70 66 00 00 00 0A 00 01 FF FF 00 00 00 00    cmpf&#8230;&#8230;&#8230;&#8230;</p>
<p>2CF620   00 00 00 00                                        &#8230;.</p>
<p>com.apple.decmpfs:</p>
<p>0000   66 70 6D 63 04 00 00 00 A0 82 72 00 00 00 00 00    fpmc&#8230;&#8230;r&#8230;..</p>
<p>Ah, there&#8217;s all the data. But wait, it&#8217;s in the resource fork? Weren&#8217;t those deprecated about eight years ago? Indeed they were. What you&#8217;re witnessing here is yet another addition to Apple&#8217;s favorite file system hobbyhorse, HFS+.</p>
<p>At the dawn of Mac OS X, Apple added journaling, symbolic links, and hard links. In Tiger, extended attributes and access control lists were incorporated. In Leopard, HFS+ gained support for hard links to directories. In Snow Leopard, HFS+ learns another new trick: per-file compression.</p>
<p>The presence of the com.apple.decmpfs attribute is the first hint that this file is compressed. This attribute is actually hidden from the xattr command when booted into Snow Leopard. But from a Leopard system, which has no knowledge of its special significance, it shows up as plain as day.</p>
<p>Even more information is revealed with the help of Mac OS X Internals guru Amit Singh&#8217;s hfsdebug program, which has quietly been updated for Snow Leopard.</p>
<p>% hfsdebug /Applications/Mail.app/Contents/MacOS/Mail</p>
<p>&#8230;</p>
<p>compression magic    = cmpf</p>
<p>compression type     = 4 (resource fork has compressed data)</p>
<p>uncompressed size    = 7500336 bytes</p>
<p>And sure enough, as we saw, the resource fork does indeed contain the compressed data. Still, why the resource fork? It&#8217;s all part of Apple&#8217;s usual, clever backward-compatibility gymnastics. A recent example is the way that hard links to directories show up—and function—as aliases when viewed from a pre-Leopard version of Mac OS X.</p>
<p>In the case of a HFS+ compression, Apple was (understandably) unable to make pre-Snow Leopard systems read and interpret the compressed data, which is stored in ways that did not exist at the time those earlier operating systems were written. But rather than letting applications (and users) running on pre-10.6 systems choke on—or worse, corrupt through modification—the unexpectedly compressed file contents, Apple has chosen to hide the compressed data instead.</p>
<p>And where can the complete contents of a potentially large file be hidden in such a way that pre-Snow Leopard systems can still copy that file without the loss of data? Why, in the resource fork, of course. The Finder has always correctly preserved Mac-specific metadata and both the resource and data forks when moving or duplicating files. In Leopard, even the lowly cp and rsync commands will do the same. So while it may be a little bit spooky to see all those &#8220;empty&#8221; 0 KB files when looking at a Snow Leopard disk from a pre-Snow Leopard OS, the chance of data loss is small, even if you move or copy one of the files.</p>
<p>The resource fork isn&#8217;t the only place where Apple has decided to smuggle compressed data. For smaller files, hfsdebug shows the following:</p>
<p>% hfsdebug /etc/asl.conf</p>
<p>&#8230;</p>
<p>compression magic    = cmpf</p>
<p>compression type     = 3 (xattr has compressed data)</p>
<p>uncompressed size    = 860 bytes</p>
<p>Here, the data is small enough to be stored entirely within an extended attribute, albeit in compressed form. And then, the final frontier:</p>
<p>% hfsdebug /Volumes/Snow Time/Applications/Mail.app/Contents/PkgInfo</p>
<p>&#8230;</p>
<p>compression magic    = cmpf</p>
<p>compression type     = 3 (xattr has inline data)</p>
<p>uncompressed size    = 8 bytes</p>
<p>That&#8217;s right, an entire file&#8217;s contents stored uncompressed in an extended attribute. In the case of a standard PkgInfo file like this one, those contents are the four-byte classic Mac OS type and creator codes.</p>
<p>% xattr -l Applications/Mail.app/Contents/PkgInfo</p>
<p>com.apple.decmpfs:</p>
<p>0000   66 70 6D 63 03 00 00 00 08 00 00 00 00 00 00 00    fpmc&#8230;&#8230;&#8230;&#8230;</p>
<p>0010   FF 41 50 50 4C 65 6D 61 6C                         .APPLemal</p>
<p>There&#8217;s still the same &#8220;fpmc&#8230;&#8221; preamble seen in all the earlier examples of the com.apple.decmpfs attribute, but at the end of the value, the expected data appears as plain as day: type code &#8220;APPL&#8221; (application) and creator code &#8220;emal&#8221; (for the Mail application—cute, as per classic Mac OS tradition).</p>
<p>You may be wondering, if this is all about data compression, how does storing eight uncompressed bytes plus a 17-byte preamble in an extended attribute save any disk space? The answer to that lies in how HFS+ allocates disk space. When storing information in a data or resource fork, HFS+ allocates space in multiples of the file system&#8217;s allocation block size (4 KB, by default). So those eight bytes will take up a minimum of 4,096 bytes if stored in the traditional way. When allocating disk space for extended attributes, however, the allocation block size is not a factor; the data is packed in much more tightly. In the end, the actual space saved by storing those 25 bytes of data in an extended attribute is over 4,000 bytes.</p>
<p>But compression isn&#8217;t just about saving disk space. It&#8217;s also a classic example of trading CPU cycles for decreased I/O latency and bandwidth. Over the past few decades, CPU performance has gotten better (and computing resources more plentiful—more on that later) at a much faster rate than disk performance has increased. Modern hard disk seek times and rotational delays are still measured in milliseconds. In one millisecond, a 2 GHz CPU goes through two million cycles. And then, of course, there&#8217;s still the actual data transfer time to consider.</p>
<p>Granted, several levels of caching throughout the OS and hardware work mightily to hide these delays. But those bits have to come off the disk at some point to fill those caches. Compression means that fewer bits have to be transferred. Given the almost comical glut of CPU resources on a modern multi-core Mac under normal use, the total time needed to transfer a compressed payload from the disk and use the CPU to decompress its contents into memory will still usually be far less than the time it&#8217;d take to transfer the data in uncompressed form.</p>
<p>That explains the potential performance benefits of transferring less data, but the use of extended attributes to store file contents can actually make things faster, as well. It all has to do with data locality.</p>
<p>If there&#8217;s one thing that slows down a hard disk more than transferring a large amount of data, it&#8217;s moving its heads from one part of the disk to another. Every move means time for the head to start moving, then stop, then ensure that it&#8217;s correctly positioned over the desired location, then wait for the spinning disk to put the desired bits beneath it. These are all real, physical, moving parts, and it&#8217;s amazing that they do their dance as quickly and efficiently as they do, but physics has its limits. These motions are the real performance killers for rotational storage like hard disks.</p>
<p>The HFS+ volume format stores all its information about files—metadata—in two primary locations on disk: the Catalog File, which stores file dates, permissions, ownership, and a host of other things, and the Attributes File, which stores &#8220;named forks.&#8221;</p>
<p>Extended attributes in HFS+ are implemented as named forks in the Attributes File. But unlike resource forks, which can be very large (up to the maximum file size supported by the file system), extended attributes in HFS+ are stored &#8220;inline&#8221; in the Attributes File. In practice, this means a limit of about 128 bytes per attribute. But it also means that the disk head doesn&#8217;t need to take a trip to another part of the disk to get the actual data.</p>
<p>As you can imagine, the disk blocks that make up the Catalog and Attributes files are frequently accessed, and therefore more likely than most to be in a cache somewhere. All of this conspires to make the complete storage of a file, including both its metadata in its data, within the B-tree-structured Catalog and Attributes files an overall performance win. Even an eight-byte payload that balloons to 25 bytes is not a concern, as long as it&#8217;s still less than the allocation block size for normal data storage, and as long as it all fits within a B-tree node in the Attributes File that the OS has to read in its entirety anyway.</p>
<p>There are other significant contributions to Snow Leopard&#8217;s reduced disk footprint (e.g., the removal of unnecessary localizations and &#8220;designable.nib&#8221; files) but HFS+ compression is by far the most technically interesting.</p>
<p>via <a href="http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/3#" >Mac OS X 10.6 Snow Leopard: the Ars Technica review &#8211; Ars Technica</a>.</p>
</blockquote>
<div id="crp_related"><h3>You might also want to read these other posts...</h3><ul><li><a href="http://blog.fosketts.net/2010/07/26/boot-snow-leopard-64bit-mode/"  rel="bookmark" class="crp_title">How To Boot Snow Leopard in 64-Bit Mode</a></li><li><a href="http://blog.fosketts.net/2009/06/09/snow-leopard-storage/"  rel="bookmark" class="crp_title">Snow Leopard Is Stingy With The Storage Love</a></li><li><a href="http://blog.fosketts.net/2009/08/30/64bit-snow-leopard-kernel/"  rel="bookmark" class="crp_title">No 64-Bit Snow Leopard Kernel For You!</a></li><li><a href="http://blog.fosketts.net/2009/08/30/snow-leopard-hp-printer-driver/"  rel="bookmark" class="crp_title">Located! Missing HP Printer Driver For Snow Leopard</a></li><li><a href="http://blog.fosketts.net/2008/09/03/os-x-custom-drive-icons-2-boot-camp-ntfs/"  rel="bookmark" class="crp_title">OS X Custom Drive Icons 2: Boot Camp and NTFS</a></li></ul></div><script src="http://feeds.feedburner.com/~s/sfoskett?i=http://blog.fosketts.net/2009/09/11/bizarre-hfs-tricks-in-mac-os-x-10-6-snow-leopard/" type="text/javascript" charset="utf-8"></script><hr />
<p><small>© sfoskett for <a href="http://blog.fosketts.net">Stephen Foskett, Pack Rat</a>, 2009. |
<a href="http://blog.fosketts.net/2009/09/11/bizarre-hfs-tricks-in-mac-os-x-10-6-snow-leopard/">Bizarre HFS+ Tricks in Mac OS X 10.6 Snow Leopard</a>
<br/>
This post was categorized as <a href="http://blog.fosketts.net/category/everything/apple/" title="View all posts in Apple" rel="category tag">Apple</a>, <a href="http://blog.fosketts.net/category/everything/computerhistory/" title="View all posts in Computer History" rel="category tag">Computer History</a>. Each of my categories has its own feed if you'd like to filter out or focus on posts like this.<br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.fosketts.net/2009/09/11/bizarre-hfs-tricks-in-mac-os-x-10-6-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Access NTFS Volumes On Your Mac</title>
		<link>http://blog.fosketts.net/2009/08/06/access-ntfs-volumes-mac/</link>
		<comments>http://blog.fosketts.net/2009/08/06/access-ntfs-volumes-mac/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 14:34:43 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Terabyte home]]></category>
		<category><![CDATA[Boot Camp]]></category>
		<category><![CDATA[FUSE]]></category>
		<category><![CDATA[Giveaway-of-the-Day]]></category>
		<category><![CDATA[HFS]]></category>
		<category><![CDATA[Macports]]></category>
		<category><![CDATA[NTFS]]></category>
		<category><![CDATA[NTFS-3G]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Paragon]]></category>

		<guid isPermaLink="false">http://blog.fosketts.net/?p=2169</guid>
		<description><![CDATA[I've been using the NTFS-3G driver myself for quite some time. It works as advertised: Install it and you can read and write to NTFS-formatted drives with ease. These drives are integrated right into the Finder, appearing just like Mac-standard HFS+ disks. This is the method I used to assign custom drive icon for my Boot Camp volume and USB drives, for example.]]></description>
			<content:encoded><![CDATA[<p>Most Mac switchers still have some Windows NTFS-formatted drives around. Maybe it&#8217;s an external USB disk. Or maybe you&#8217;re using Boot Camp. Whatever the reason, Mac users often want to <strong>access NTFS volumes within OS X</strong>. There are two popular ways to accomplish this:</p>
<ol>
<li>Use the excellent and free <strong>NTFS-3G</strong> driver</li>
<li>Buy Paragon Software&#8217;s <strong>Paragon NTFS</strong></li>
</ol>
<p>I&#8217;ve been using the <a href="http://www.ntfs-3g.org/"  target="_blank">NTFS-3G driver</a> myself for quite some time. It works as advertised: Install it and you can read and write to NTFS-formatted drives with ease. These drives are integrated right into the Finder, appearing just like Mac-standard HFS+ disks. This is the method I used to <a href="http://blog.fosketts.net/2008/09/03/os-x-custom-drive-icons-2-boot-camp-ntfs/"  target="_self">assign custom drive icon for my Boot Camp volume and USB drives</a>, for example.</p>
<blockquote><p>Note: Snow Leopard&#8217;s NTFS driver is read/write capable. See my post, <a href="http://blog.fosketts.net/2010/11/29/write-windows-ntfs-drive-mac-os-106-snow-leopard/" >How To Write To Windows NTFS Drives In Mac OS X 10.6 “Snow Leopard”</a></p></blockquote>
<p><blockquote><p>This post is part of my series focused on Apple OS X tips and tricks.</p>

<ul>
		<li><a href="http://blog.fosketts.net/2009/08/06/access-ntfs-volumes-mac/">Access NTFS Volumes On Your Mac</a></li>
		<li><a href="http://blog.fosketts.net/2009/01/19/clean-up-mac-disk-tools/">Clean Up Your Mac! Essential OS X Tidiness Tools and Techniques</a></li>
		<li><a href="http://blog.fosketts.net/2008/07/26/move-os-x-time-machine-backups-new-disk/">How To Move OS X Time Machine Backups To A New Disk</a></li>
		<li><a href="http://blog.fosketts.net/2008/10/23/reduce-file-size-pdf-mac/">Hallelujah! OS X Can Reduce PDF File Size!</a></li>
		<li><a href="http://blog.fosketts.net/2008/10/23/reduce-file-size-pdf-mac/"></a><a href="http://blog.fosketts.net/2008/08/27/custom-drive-icons-mac-os-x/">Custom Drive Icons in Mac OS X</a></li>
		<li><a href="http://blog.fosketts.net/2008/08/27/custom-drive-icons-mac-os-x/"></a><a href="http://blog.fosketts.net/2008/09/03/os-x-custom-drive-icons-2-boot-camp-ntfs/">OS X Custom Drive Icons 2: Boot Camp and NTFS</a></li>
</ul>
</blockquote></p>
<p>NTFS is a userspace (FUSE) driver, so installing it requires the installation of mac-fuse as well. It&#8217;s been nicely packaged for install over at <a rel="nofollow" href="http://macntfs-3g.blogspot.com/"  target="_blank">MacNTFS-3G</a>, or you can install it with <a href="http://trac.macports.org/browser/trunk/dports/fuse/ntfs-3g"  target="_blank">MacPorts</a>, along with lots of other great UNIX software.</p>
<p><a rel="nofollow" href="http://www.amazon.com/gp/product/B0027TY86E?ie=UTF8&amp;tag=packrat-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=B0027TY86E&quot;"  target="_blank">Paragon NTFS</a> functions similarly to NTFS-3G. The latest versions also include an HFS+ driver for Windows, allowing your Boot Camp instance to read your Mac drive, which is pretty cool. I was initially interested in Paragon&#8217;s software, thinking it would be more stable and supported than the open source NTFS-3G. But at $40, it&#8217;s hard to justify the cost when a free alternative is available. Once I tried the <a href="http://bit.ly/5yFPT"  target="_blank">free version</a> from Giveaway-of-the-Day, I know I would have felt cheated if I had spent the money on it. The MacNTFS-3G package is so nicely integrated, there is really no need to fear it. And I&#8217;ve had no trouble with it in over a year of use.</p>
<p>The Paragon Giveaway didn&#8217;t include the HFS+ driver for Windows, but reports are that <a href="http://www.roughlydrafted.com/2009/05/09/snow-leopards-boot-camp-to-support-hfs-under-windows/"  target="_blank">Apple will introduce a similar driver</a> with Snow Leopard. I think <strong>I&#8217;m liking free and bundled software more and more!</strong><br />
<blockquote>Note: Some of these links include affiliate codes that help pay for this blog. For example, <a href="http://www.amazon.com/gp/product/B002Y27P3M?ie=UTF8&tag=packrat-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=B002Y27P3M" target="_blank">buying an Amazon Kindle with this link</a> sends a few bucks my way! But I don't write this blog to make money, and am happy to link to sites and stores that don't pay anything. I like Amazon and buy tons from them, but you're free to buy whatever and wherever you want.</blockquote></p>
<div id="crp_related"><h3>You might also want to read these other posts...</h3><ul><li><a href="http://blog.fosketts.net/2008/09/03/os-x-custom-drive-icons-2-boot-camp-ntfs/"  rel="bookmark" class="crp_title">OS X Custom Drive Icons 2: Boot Camp and NTFS</a></li><li><a href="http://blog.fosketts.net/2010/11/29/write-windows-ntfs-drive-mac-os-106-snow-leopard/"  rel="bookmark" class="crp_title">How To Write To Windows NTFS Drives In Mac OS X 10.6 &#8220;Snow Leopard&#8221;</a></li><li><a href="http://blog.fosketts.net/2012/01/03/microsoft-adds-data-deduplication-ntfs-windows-8/"  rel="bookmark" class="crp_title">Microsoft Adds Data Deduplication to NTFS in Windows 8</a></li><li><a href="http://blog.fosketts.net/2008/08/27/custom-drive-icons-mac-os-x/"  rel="bookmark" class="crp_title">Custom Drive Icons in Mac OS X</a></li><li><a href="http://blog.fosketts.net/2010/12/07/pile-interesting-links-december-3-2010/"  rel="bookmark" class="crp_title">Back From the Pile: Interesting Links, December 3, 2010</a></li></ul></div><script src="http://feeds.feedburner.com/~s/sfoskett?i=http://blog.fosketts.net/2009/08/06/access-ntfs-volumes-mac/" type="text/javascript" charset="utf-8"></script><hr />
<p><small>© sfoskett for <a href="http://blog.fosketts.net">Stephen Foskett, Pack Rat</a>, 2009. |
<a href="http://blog.fosketts.net/2009/08/06/access-ntfs-volumes-mac/">Access NTFS Volumes On Your Mac</a>
<br/>
This post was categorized as <a href="http://blog.fosketts.net/category/everything/apple/" title="View all posts in Apple" rel="category tag">Apple</a>, <a href="http://blog.fosketts.net/category/everything/personal/" title="View all posts in Personal" rel="category tag">Personal</a>, <a href="http://blog.fosketts.net/category/everything/terabytehome/" title="View all posts in Terabyte home" rel="category tag">Terabyte home</a>. Each of my categories has its own feed if you'd like to filter out or focus on posts like this.<br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.fosketts.net/2009/08/06/access-ntfs-volumes-mac/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OS X Custom Drive Icons 2: Boot Camp and NTFS</title>
		<link>http://blog.fosketts.net/2008/09/03/os-x-custom-drive-icons-2-boot-camp-ntfs/</link>
		<comments>http://blog.fosketts.net/2008/09/03/os-x-custom-drive-icons-2-boot-camp-ntfs/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 15:00:08 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Virtual Storage]]></category>
		<category><![CDATA[Boot Camp]]></category>
		<category><![CDATA[FAT]]></category>
		<category><![CDATA[HFS]]></category>
		<category><![CDATA[icon]]></category>
		<category><![CDATA[NTFS]]></category>
		<category><![CDATA[NTFS-3G]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[VMware Fusion]]></category>

		<guid isPermaLink="false">http://blog.fosketts.net/?p=566</guid>
		<description><![CDATA[In my last post, I discussed the simple but confusing steps required to add custom icons to Mac OS X drives. I mentioned that there were some tricks to getting custom icons on some drives, however, including Boot Camp and NTFS disks. This week, I&#8217;ll show how to customize these as well. There are two [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_485" class="wp-caption alignright" style="width: 294px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; float: right;"><a href="http://blog.fosketts.net/wp-content/uploads/2008/08/picture-23.png" ><img class="size-medium wp-image-485" title="Custom OS X Drive Icons" src="http://blog.fosketts.net/wp-content/uploads/2008/08/picture-23.png" alt="Yup, my Boot Camp drive icon is customized, too!" width="284" height="207" /></a><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">Yup, my Boot Camp drive icon is customized, too!</p></div>
<p>In my last post, I discussed the <a href="http://blog.fosketts.net/2008/08/27/custom-drive-icons-in-mac-os-x/"  target="_self">simple but confusing steps required to add custom icons to Mac OS X drives</a>. I mentioned that there were some tricks to getting custom icons on some drives, however, including Boot Camp and NTFS disks. This week, I&#8217;ll show how to customize these as well.</p>
<p>There are two core problems with customizing drive icons for certain volumes:</p>
<ol>
<li>OS X can&#8217;t directly write to anything but HFS+ and FAT, and this includes writing icons</li>
<li>OS X needs a special resource on the drive to indicate that the custom icon should be used, and only HFS+ supports this</li>
</ol>
<p>But it&#8217;s easy enough to get around these limitations. Apple takes care of number 2, and we can cover number 1 in one of two ways.</p>
<p><span id="more-566"></span></p>
<p><blockquote><p>This post is part of my series focused on Apple OS X tips and tricks.</p>

<ul>
		<li><a href="http://blog.fosketts.net/2009/08/06/access-ntfs-volumes-mac/">Access NTFS Volumes On Your Mac</a></li>
		<li><a href="http://blog.fosketts.net/2009/01/19/clean-up-mac-disk-tools/">Clean Up Your Mac! Essential OS X Tidiness Tools and Techniques</a></li>
		<li><a href="http://blog.fosketts.net/2008/07/26/move-os-x-time-machine-backups-new-disk/">How To Move OS X Time Machine Backups To A New Disk</a></li>
		<li><a href="http://blog.fosketts.net/2008/10/23/reduce-file-size-pdf-mac/">Hallelujah! OS X Can Reduce PDF File Size!</a></li>
		<li><a href="http://blog.fosketts.net/2008/10/23/reduce-file-size-pdf-mac/"></a><a href="http://blog.fosketts.net/2008/08/27/custom-drive-icons-mac-os-x/">Custom Drive Icons in Mac OS X</a></li>
		<li><a href="http://blog.fosketts.net/2008/08/27/custom-drive-icons-mac-os-x/"></a><a href="http://blog.fosketts.net/2008/09/03/os-x-custom-drive-icons-2-boot-camp-ntfs/">OS X Custom Drive Icons 2: Boot Camp and NTFS</a></li>
</ul>
</blockquote></p>
<p><strong>Techie Bits</strong></p>
<div id="attachment_567" class="wp-caption alignright" style="width: 112px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; float: right;"><a href="http://blog.fosketts.net/wp-content/uploads/2008/09/picture-3.png" ><img class="size-full wp-image-567" title="Generic OS X USB Drive Icon" src="http://blog.fosketts.net/wp-content/uploads/2008/09/picture-3.png" alt="Booooooring generic USB drive icon in OS X" width="102" height="86" /></a><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">Booooooring generic USB drive icon in OS X</p></div>
<p>Old versions of Mac OS stored lots of data (aka &#8220;resources&#8221;) in the <a rel="nofollow" href="http://en.wikipedia.org/wiki/Resource_fork"  target="_blank">resource fork</a> of a file, including icon graphics. However, this became a problem with the advent of networking and cross-platform computing, since no other popular personal computing platform supported two-fork files. OS X moves most resources into the data fork &#8211; although resource forks still exist, they are rarely used.</p>
<p>However, it appears to me that although the &#8220;icns&#8221; data for a drive icon is stored in the data fork of the .VolumeIcon.icns file, Apple still uses a pointer in the resource fork of the root directory of the drive to tell OS X to use that icon. In other words, when a drive is mounted, OS X seems to look in the resource fork of &#8220;.&#8221; for a flag that says &#8220;use the icon in .VolumeIcon.icns&#8221; before it will use the icon. I&#8217;m not sure this is the case, but I do know that .VolumeIcon.icns has no resource fork (even on HFS+), but it requires a special resource file on other filesystems.</p>
<p>Since only HFS and HFS+ support resource forks, this is a problem. Apple gets around this by saving resource fork data in files with &#8220;._&#8221; prepended to their name. So the resource fork of &#8220;index.html&#8221; would be &#8220;._index.html&#8221; on a FAT drive. Every FAT drive I&#8217;ve added a custom icon to includes a file called &#8220;._.&#8221;, which sounds like the root directory&#8217;s resource to me, and this is required for the icon to work.</p>
<p><strong>Getting It Done</strong></p>
<div id="attachment_568" class="wp-caption alignright" style="width: 124px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; float: right;"><a href="http://blog.fosketts.net/wp-content/uploads/2008/09/picture-4.png" ><img class="size-full wp-image-568" title="Custom Maxtor 3200 Drive Icon in OS X" src="http://blog.fosketts.net/wp-content/uploads/2008/09/picture-4.png" alt="Aah, thats a much better icon for my Maxtor 3200!" width="114" height="96" /></a><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">Aah, that&#39;s a much better icon for my Maxtor 3200!</p></div>
<p>So you need two files on a non-HFS+ drive to get the custom icon to work:<br />
  </p>
<ol>
<li>.VolumeIcon.icns &#8211; the same exact file as on an HFS+ volume, containing the icon data in the data fork</li>
<li>._. &#8211; a special file (resource fork, perhaps?) which seems to tell OS X to use the icon</li>
</ol>
<p>As illustrated previously, adding a custom icon to a FAT drive is exactly the same as on an HFS+ drive &#8211; create the icon resource and copy and paste it in the drive&#8217;s Info inspector. If we move these two files over to any other OS X-readable drive (including NTFS-formatted Boot Camp partitions), it will use the icon!</p>
<p>OS X can&#8217;t write to NTFS, so there are two ways to get these files onto an NTFS drive:</p>
<ol>
<li>Make OS X write to NTFS by installing NTFS-3G</li>
<li>Copy the two files over in an OS like XP or Vista that <em>can</em> write to NTFS</li>
</ol>
<p>[ad#vmware]The first method is simple, but not one I wanted to try. <a rel="nofollow" href="http://macntfs-3g.blogspot.com/"  target="_blank">NTFS-3G</a> is great &#8211; it&#8217;s a reverse-engineered open-source read/write driver for NTFS, and works on lots of platforms. But NTFS is finicky, and I&#8217;m not too keen on risking the integrity of the drive with an unsupported driver. If you want to use this method, though, customizing the icons is as simple as it is with FAT, once the driver is installed.</p>
<p>I used method 2 &#8211; relying on VMware Fusion to allow me to write the icon data to my NTFS drives and using a FAT-formatted flash drive as an intermediary between OS X and Vista. I created my icons, applied them to my flash drive, then booted up Vista in Fusion and copied the two files over in a DOS window. They&#8217;re hidden by default, but that shouldn&#8217;t slow you down.</p>
<p>Note that this only affects the icons in OS X &#8211; it will not allow you to customize the boot icons.</p>
<div id="crp_related"><h3>You might also want to read these other posts...</h3><ul><li><a href="http://blog.fosketts.net/2008/08/27/custom-drive-icons-mac-os-x/"  rel="bookmark" class="crp_title">Custom Drive Icons in Mac OS X</a></li><li><a href="http://blog.fosketts.net/2009/08/06/access-ntfs-volumes-mac/"  rel="bookmark" class="crp_title">Access NTFS Volumes On Your Mac</a></li><li><a href="http://blog.fosketts.net/2008/05/27/custom-icons-keep-removable-drives-straight/"  rel="bookmark" class="crp_title">Custom Icons Keep Removable Drives Straight</a></li><li><a href="http://blog.fosketts.net/2010/11/29/write-windows-ntfs-drive-mac-os-106-snow-leopard/"  rel="bookmark" class="crp_title">How To Write To Windows NTFS Drives In Mac OS X 10.6 &#8220;Snow Leopard&#8221;</a></li><li><a href="http://blog.fosketts.net/2009/09/11/bizarre-hfs-tricks-in-mac-os-x-10-6-snow-leopard/"  rel="bookmark" class="crp_title">Bizarre HFS+ Tricks in Mac OS X 10.6 Snow Leopard</a></li></ul></div><script src="http://feeds.feedburner.com/~s/sfoskett?i=http://blog.fosketts.net/2008/09/03/os-x-custom-drive-icons-2-boot-camp-ntfs/" type="text/javascript" charset="utf-8"></script><hr />
<p><small>© sfoskett for <a href="http://blog.fosketts.net">Stephen Foskett, Pack Rat</a>, 2008. |
<a href="http://blog.fosketts.net/2008/09/03/os-x-custom-drive-icons-2-boot-camp-ntfs/">OS X Custom Drive Icons 2: Boot Camp and NTFS</a>
<br/>
This post was categorized as <a href="http://blog.fosketts.net/category/everything/apple/" title="View all posts in Apple" rel="category tag">Apple</a>, <a href="http://blog.fosketts.net/category/everything/virtualstorage/" title="View all posts in Virtual Storage" rel="category tag">Virtual Storage</a>. Each of my categories has its own feed if you'd like to filter out or focus on posts like this.<br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.fosketts.net/2008/09/03/os-x-custom-drive-icons-2-boot-camp-ntfs/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

