<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Passing Curiosity: Posts tagged ubuntu</title>
    <link href="https://passingcuriosity.com/tags/ubuntu/ubuntu.xml" rel="self" />
    <link href="https://passingcuriosity.com" />
    <id>https://passingcuriosity.com/tags/ubuntu/ubuntu.xml</id>
    <author>
        <name>Thomas Sutton</name>
        
        <email>me@thomas-sutton.id.au</email>
        
    </author>
    <updated>2011-01-18T00:00:00Z</updated>
    <entry>
    <title>Getting rid of Boot Camp volumes</title>
    <link href="https://passingcuriosity.com/2011/getting-rid-of-bootcamp-volumes/" />
    <id>https://passingcuriosity.com/2011/getting-rid-of-bootcamp-volumes/</id>
    <published>2011-01-18T00:00:00Z</published>
    <updated>2011-01-18T00:00:00Z</updated>
    <summary type="html"><![CDATA[<p>I’ve spent the last few hours fighting to get rid of the Boot Camp, Ubuntu
Linux and rEFIt volumes on my Macbook Pro. It was a struggle, but I got there
in the end. I don’t want to think about this any more but Google and the
internets should probably know how to resolve this problem, so here are some
cursory notes.</p>
<p>I should probably say that I’m not sure who or what is to blame for the
problem described here. I suspect one, the other, or the combination of rEFIt
and Boot Camp but I’m not sure. I also blame Disk Utility for its rather
shocking lack of utility.</p>
<ol type="1">
<li><p>Used Boot Camp Assistant to create a partition for a Windows install (as if!)</p></li>
<li><p>Installed Ubuntu instead of Windows.</p></li>
<li><p>Installed rEFIt (I’m still not sure if it was necessary).</p></li>
<li><p>Got sick of all that space being wasted with an Ubuntu install I never use.</p></li>
<li><p>Deleted the various Linux partitions in Disk Utility.</p></li>
<li><p>Removed rEFIt (by changing the Boot Volume in System Preferences and
deleting the /efi/ folder).</p></li>
<li><p>Shrank the system volume.</p></li>
<li><p>Attempted to allocate the space that was the Linux partitions and the free
space from the system volume to a new partition for data. This failed with
a <em>MediaKit reports partition (map) too small</em> error.</p></li>
<li><p>Attempted to grow the system volume to fill the whole disk. This too failed
with a <em>MediaKit reports partition (map) too small</em> error.</p></li>
<li><p>Discovered by reading some truly mind-numbing Apple discussion forum
threads and other old, ill-informed, and old-and-ill-informed hits from
Google that doing things manually using the command line tools may work.</p></li>
<li><p>Noticed from <code>diskutil list</code> that I had two EFI partitions (one <em>after</em> my
system volume) and, as Disk Utility doesn’t mention them, that this extra
partition is the reason for the error (and that whomever chose to emit
that error in this case is a shit).</p></li>
<li><p>Became annoyed that <code>diskutil</code> doesn’t seem to have a subcommand to delete
(Why do Apple insist on calling them verbs?) slices and <code>fdisk</code> is nearly
useless (unless you enjoy calculating disk geometry manually), but that it
is possible to reformat a volume <em>and</em> change its type by erasing it like
so:</p>
<pre><code>sudo diskutil eraseVolume HFS+ UntitledHFS disk0s4</code></pre></li>
<li><p>Deleted this new volume in Disk Utility and created a new one filling the
entire free space.</p></li>
</ol>
<p>Hope this helps someone else.</p>]]></summary>
</entry>

</feed>
