{"id":49,"date":"2018-11-04T15:05:24","date_gmt":"2018-11-04T22:05:24","guid":{"rendered":"http:\/\/www.the-hansons-az.net\/wordpress\/?p=49"},"modified":"2018-11-04T15:05:24","modified_gmt":"2018-11-04T22:05:24","slug":"upgrading-the-storage-in-my-macbook-pro","status":"publish","type":"post","link":"http:\/\/www.the-hansons-az.net\/wordpress\/2018\/11\/04\/upgrading-the-storage-in-my-macbook-pro\/","title":{"rendered":"Upgrading the storage in my MacBook Pro"},"content":{"rendered":"<p>I decided that I wanted to upgrade the storage in my MacBook Pro that&#8217;s about seven years old now from a spinning hard drive to solid-state storage. The computer came with a 750 GB hard drive and it was getting pretty full too.<\/p>\n<p>SSDs come in pretty standard power-of-two sizes like 128 GB, 256 GB, 512 GB, etc. So you really can&#8217;t get a 750 GB SSD and since I was running out of space anyway I wanted to get a bigger one so I settled on a 1 TB SSD.<\/p>\n<p>I ordered a Samsung 860 EVO drive from Amazon, picked the slow, free shipping but still got it in less than 24 hours of placing my order.<\/p>\n<p>After the SSD arrived I removed the hard drive from the MacBook Pro and made a sector-by-sector image of it using a Linux system that I have around. I then took my sector-by-sector image and applied it to the new SSD.<\/p>\n<p>Since the hard drive was 750 GB, I had 750 GB copied to the 1 TB SSD including the partition tables that indicated that the partitions totaled 750 GB. That means 250 GB of the 1 TB SSD is now unused and cannot currently be accessed. I anticipated this because I&#8217;ve done this many times for clients and I&#8217;m pretty familiar with how the partitions are laid out on a disk from previous professional experience.<\/p>\n<p>Built in to OS X is Disk Utility, which handles managing the partitions on a disk. So when I put the new SSD in to the laptop I started in Recovery Mode, which allows you to run some limited things like reinstalling Mac OS X and running Disk Utility. So I start Disk Utility and it correctly shows the disk as 1 TB with a 750 GB partition and 250 GB unused. There was a small circle that looked like it could be grabbed to pull the existing partition to expand in to the unused 250 GB space but it simply wouldn&#8217;t let me. The same operation can be done from the command line but it would just generate an error.<\/p>\n<p>Searching the Internet I came across <a href=\"https:\/\/apple.stackexchange.com\/questions\/309115\/increase-size-of-apfs-partion-in-high-sierra?noredirect=1&amp;lq=1\">this post<\/a>\u00a0on Stack Exchange. It got marked as a duplicate of another question and closed but the question it&#8217;s linked to isn&#8217;t really the same as this one (people on Stack Exchange and Stack Overflow are pretty quick to close questions as duplicates of another even though that&#8217;s not always the case). The comment added by &#8220;Dannie P&#8221; is actually the answer to the problem and involves the following:<\/p>\n<ol>\n<li>Booting into <a href=\"https:\/\/gparted.org\">gparted<\/a> with the drive attached.<\/li>\n<li>gparted will show a dialog box stating that the GPT doesn&#8217;t describe the entire disk and that it can fix that. Allow gparted to fix it.<\/li>\n<li>Create a partition in the unused space. This probably isn&#8217;t necessary once the GPT has been fixed but I did it anyway.<\/li>\n<li>Return to Disk Utility in OS X and delete the partition created in Step 3.<\/li>\n<li>Since I was using APFS, it automatically expanded the APFS volume to encompass the space the partition in Step 3 was using and now the entire drive is being used by the primary APFS volume.<\/li>\n<\/ol>\n<p>Fixing the GPT (Global Partition Table) should be something that Disk Utility should be able to handle but obviously it isn&#8217;t set up to do that.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I decided that I wanted to upgrade the storage in my MacBook Pro that&#8217;s about seven years old now from a spinning hard drive to solid-state storage. The computer came with a 750 GB hard drive and it was getting pretty full too. SSDs come in pretty standard power-of-two sizes like 128 GB, 256 GB, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-49","post","type-post","status-publish","format-standard","hentry","category-osx","entry"],"_links":{"self":[{"href":"http:\/\/www.the-hansons-az.net\/wordpress\/wp-json\/wp\/v2\/posts\/49","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.the-hansons-az.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.the-hansons-az.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.the-hansons-az.net\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.the-hansons-az.net\/wordpress\/wp-json\/wp\/v2\/comments?post=49"}],"version-history":[{"count":1,"href":"http:\/\/www.the-hansons-az.net\/wordpress\/wp-json\/wp\/v2\/posts\/49\/revisions"}],"predecessor-version":[{"id":50,"href":"http:\/\/www.the-hansons-az.net\/wordpress\/wp-json\/wp\/v2\/posts\/49\/revisions\/50"}],"wp:attachment":[{"href":"http:\/\/www.the-hansons-az.net\/wordpress\/wp-json\/wp\/v2\/media?parent=49"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.the-hansons-az.net\/wordpress\/wp-json\/wp\/v2\/categories?post=49"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.the-hansons-az.net\/wordpress\/wp-json\/wp\/v2\/tags?post=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}