<?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:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Disk Utility &#8211; Wade Tregaskis</title>
	<atom:link href="https://wadetregaskis.com/tags/disk-utility/feed/" rel="self" type="application/rss+xml" />
	<link>https://wadetregaskis.com</link>
	<description></description>
	<lastBuildDate>Sun, 31 Dec 2023 23:19:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://wadetregaskis.com/wp-content/uploads/2016/03/Stitch-512x512-1-256x256.png</url>
	<title>Disk Utility &#8211; Wade Tregaskis</title>
	<link>https://wadetregaskis.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">226351702</site>	<item>
		<title>tmutil is broken by SIP in Mojave</title>
		<link>https://wadetregaskis.com/tmutil-is-broken-by-sip-in-mojave/</link>
					<comments>https://wadetregaskis.com/tmutil-is-broken-by-sip-in-mojave/#respond</comments>
		
		<dc:creator><![CDATA[]]></dc:creator>
		<pubDate>Sun, 07 Oct 2018 22:57:31 +0000</pubDate>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Bugs!]]></category>
		<category><![CDATA[Disk Utility]]></category>
		<category><![CDATA[diskutil]]></category>
		<category><![CDATA[Full Disk Access]]></category>
		<category><![CDATA[macOS]]></category>
		<category><![CDATA[Mojave]]></category>
		<category><![CDATA[SIP]]></category>
		<category><![CDATA[Time Machine]]></category>
		<category><![CDATA[tmutil]]></category>
		<guid isPermaLink="false">https://blog.wadetregaskis.com/?p=4231</guid>

					<description><![CDATA[A diskutil bug unceremoniously erased an entire hard drive of mine a few weeks back. &#160;While I was able to successfully (AFAICT) restore the drive&#8217;s contents to it from various backups, the erasure gave the drive a new identity (UUID, specifically). &#160;The next time Time Machine ran, it compounded the diskutil bug by also unceremoniously&#8230; <a class="read-more-link" href="https://wadetregaskis.com/tmutil-is-broken-by-sip-in-mojave/" data-wpel-link="internal">Read more</a>]]></description>
										<content:encoded><![CDATA[
<p>A diskutil bug unceremoniously erased an entire hard drive of mine a few weeks back. &nbsp;While I was able to successfully (AFAICT) restore the drive&#8217;s contents to it from various backups, the erasure gave the drive a new identity (UUID, specifically). &nbsp;The next time Time Machine ran, it compounded the diskutil bug by also unceremoniously deleting all my old backups (bar one, the latest), because it didn&#8217;t recognise the new drive with identical contents to the old drive as being the same drive, and tried to back it up again, requiring way more space, causing all existing backups to be purged, etc.</p>



<p>Sigh.</p>



<p>It turns out there&#8217;s actually a nominally supported way to address exactly this scenario &#8211; <code>tmutil associatedisk</code> (kudos to <a href="https://simon.heimlicher.com/technology/time-machine-inherit-backup-using-tmutil/" data-wpel-link="external" target="_blank" rel="external noopener">Simon Heimlicher for documenting this</a>).  From the man page:</p>



<pre class="wp-block-preformatted">   <strong>associatedisk</strong> [-a] <span style="text-decoration: underline;">mount_point</span> <span style="text-decoration: underline;">snapshot_volume</span>
           Bind a snapshot volume directory to the specified local disk, thereby reconfigur-
           ing the backup history. Requires root privileges.


           In Mac OS X, HFS+ volumes have a persistent UUID that is assigned when the file
           system is created. Time Machine uses this identifier to make an association
           between a source volume and a snapshot volume. Erasing the source volume creates
           a new file system on the disk, and the previous UUID is not retained. The new
           UUID causes the source volume -> snapshot volume association to be broken. If one
           were just erasing the volume and starting over, it would likely be of no real
           consequence, and the new UUID would not be a concern; when erasing a volume in
           order to clone another volume to it, recreating the association may be desired.


           A concrete example of when and how you would use associatedisk:


           After having problems with a volume, you decide to erase it and manually restore
           its contents from a Time Machine backup or copy of another nature. (I.e., not via
           Time Machine System Restore or Migration Assistant.) On your next incremental
           backup, the data will be copied anew, as though none of it had been backed up
           before. Technically, it is true that the data has not been backed up, given the
           new UUID. However, this is probably not what you want Time Machine to do. You
           would then use associatedisk to reconfigure the backup so it appears that this
           volume has been backed up previously:


           thermopylae:~ thoth$ sudo tmutil associatedisk [-a] "/Volumes/MyNewStuffDisk"
           "/Volumes/Chronoton/Backups.backupdb/thermopylae/Latest/MyStuff"


           The result of the above command would associate the snapshot volume <span style="text-decoration: underline;">MyStuff</span> in
           the specified snapshot with the source volume <span style="text-decoration: underline;">MyNewStuffDisk</span>. The snapshot volume
           would also be renamed to match. The -a option tells associatedisk to find all
           snapshot volumes in the same machine directory that match the identity of
           <span style="text-decoration: underline;">MyStuff</span>, and then perform the association on all of them.
</pre>



<p>Perfect &#8211; and I particularly like the subtext of the prose, which seems to be a subtle acknowledgment that this is a thing that happens frequently, and that macOS&#8217;s default behaviour is stupid… &#8220;recreating the association may be desired&#8221;. &nbsp;No shit.</p>



<p>Unfortunately, that command doesn&#8217;t work in Mojave. &nbsp;I&#8217;m apparently not <a href="https://forums.macrumors.com/threads/unable-to-inherit-previous-time-machine.2144061/" data-wpel-link="external" target="_blank" rel="external noopener">the first person to notice</a>.</p>



<p>It appears the tightened security, and in particular expansion of SIP to cover many more parts of the system including Time Machine backups, are to blame. &nbsp;Even granting <code>tmutil</code> Full Disk Access etc in the system security settings is of no use (contrary to the stated purpose of Full Disk Access).</p>



<p>So you have to <a href="https://iboysoft.com/howto/disable-system-integrity-protection-macos.html" data-wpel-link="external" target="_blank" rel="external noopener">disable SIP first</a> &#8211; which requires a reboot, obnoxiously &#8211; and only then does <code>tmutil</code> work again. &nbsp;You&#8217;ll want to enable SIP again once you&#8217;re done, most likely, as the protections it provides are useful &#8211; it appears <code>tmutil</code> nve eeds to be updated to account for the new protections.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://wadetregaskis.com/tmutil-is-broken-by-sip-in-mojave/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4231</post-id>	</item>
		<item>
		<title>Encrypted RAID volumes in El Capitan</title>
		<link>https://wadetregaskis.com/encrypted-raid-volumes-in-el-capitan/</link>
					<comments>https://wadetregaskis.com/encrypted-raid-volumes-in-el-capitan/#respond</comments>
		
		<dc:creator><![CDATA[]]></dc:creator>
		<pubDate>Tue, 21 Jun 2016 14:59:32 +0000</pubDate>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[CoreStorage]]></category>
		<category><![CDATA[Disk Utility]]></category>
		<category><![CDATA[RAID]]></category>
		<category><![CDATA[Sad]]></category>
		<category><![CDATA[Time Machine]]></category>
		<guid isPermaLink="false">https://blog.wadetregaskis.com/?p=3649</guid>

					<description><![CDATA[Apple crippled Disk Utility in El Capitan, in their usual name of making good functional things pretty &#38; pretty useless. Luckily I&#8217;m far from the first person to need to create RAID and/or encrypted CoreStorage volumes, in El Capitan.  Florian Knapp has a concise summary of how to set up an encrypted RAID volume.  Tom&#8230; <a class="read-more-link" href="https://wadetregaskis.com/encrypted-raid-volumes-in-el-capitan/" data-wpel-link="internal">Read more</a>]]></description>
										<content:encoded><![CDATA[
<p>Apple crippled Disk Utility in El Capitan, in their usual name of making good functional things pretty &amp; pretty useless.</p>



<p>Luckily I&#8217;m far from the first person to need to create RAID and/or encrypted CoreStorage volumes, in El Capitan.  Florian Knapp has a <a href="https://web.archive.org/web/20210617051730/https://nerd.one/how-to-encrypt-appleraid-volumes-using-corestorage/" data-wpel-link="external" target="_blank" rel="external noopener">concise summary of how to set up an encrypted RAID volume</a>.  Tom Nelson (of About.com) has a slightly more detailed <a href="https://web.archive.org/web/20200806110538/https://www.lifewire.com/use-terminal-managing-raid-0-striped-array-2260098" data-wpel-link="external" target="_blank" rel="external noopener">tutorial for managing the RAID part</a>.</p>



<p>Now I just wish the hard drive industry would actually push capacities up, like they once did, so that I don&#8217;t have to resort to striped RAID sets just to make a disk big enough for Time Machine backups. &nbsp;It feels like we&#8217;ve been effectively stuck at 6 TB for many years now, and&nbsp;<em>affordable</em> 8+ TB drives aren&#8217;t really on the horizon (Seagate &amp; Western Digital have offerings, but historically have been bad brands for drive reliability, e.g. <a href="https://www.backblaze.com/blog/hard-drive-reliability-stats-q1-2016/" data-wpel-link="external" target="_blank" rel="external noopener">Backblaze&#8217;s data</a>, plus my own personal experience with their drives).</p>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<p><strong>Update:</strong> &nbsp;macOS Sierra partially restores Disk Utility&#8217;s functionality, though not enough to be useful. &nbsp;It adds a &#8220;RAID Assistant&#8221;&nbsp;which lets you create <em>unencrypted</em>&nbsp;RAID volumes. &nbsp;The core Disk Utility app can also initiate manual repair of RAID mirrors, and delete RAID volumes.</p>



<p>It&#8217;s something of a mystery why you&nbsp;cannot create&nbsp;<em>encrypted</em> RAID volumes with the RAID Assistant. &nbsp;It doesn&#8217;t offer any encrypted file systems as initialisation options, and attempting to erase the unencrypted RAID volume in Disk Utility, to replace it with an encrypted version, fails with the bullshit error message:</p>



<pre class="wp-block-preformatted">An internal state error occurred
Operation failed…</pre>



<p>No shit.</p>



<p>Furthermore, encrypted RAID volumes&nbsp;(or more precisely, any RAID volume that&#8217;s part of a CoreStorage Logical Volume Group)&nbsp;don&#8217;t get recognised as RAID volumes in Sierra&#8217;s Disk Utility&nbsp;<em>unless</em> you connect the underlying drives <em>while</em> Disk Utility is running. &nbsp;Even then it&#8217;s hit or miss whether it&#8217;ll correctly recognise not just that it is a RAID set but also that there&#8217;s an&nbsp;encrypted CoreStorage volume on the set. &nbsp;And I&#8217;m not even going to try testing if it can actually repair a RAID mirror in that configuration.</p>



<p>To be clear, RAID volumes that&nbsp;<em>don&#8217;t</em> have CoreStorage volumes atop them seem to work fine. &nbsp;It&#8217;s evident that Apple simply don&#8217;t support encrypted RAID volumes. &nbsp;Maybe in next year&#8217;s macOS &#8211; it must be hard adding support for things&nbsp;<em>you already fucking supported until you pointlessly removed support for it.</em></p>



<p>FWIW, here&#8217;s a <a href="https://www.macworld.com/article/228398/how-to-configure-a-software-raid-in-macos-sierra-s-disk-utility.html" data-wpel-link="external" target="_blank" rel="external noopener">howto&nbsp;from Macworld on how to use the new RAID&nbsp;Assistant</a>, if encryption isn&#8217;t something you want.</p>
</div></div>
]]></content:encoded>
					
					<wfw:commentRss>https://wadetregaskis.com/encrypted-raid-volumes-in-el-capitan/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3649</post-id>	</item>
	</channel>
</rss>
