<commit_before>---
title:  "Resizing an APFS Container in a Sparsebundle"
date:   2018-08-02 12:30:00
description: Resizing an APFS Container in a Sparsebundle
---


First, make sure to unmount your Sparsebundle image.

We can now resize the file  :
{% highlight bash %}
hdiutil resize -size 2g ./my.sparsrebundle
{% endhighlight %}

Now, mount it, and find out the identifier of the APFS Container you want to rewrite.
<commit_msg>Fix typo<commit_after>---
title:  "Resizing an APFS Container in a Sparsebundle"
date:   2018-08-02 12:30:00
description: Resizing an APFS Container in a Sparsebundle
---


First, make sure to unmount your Sparsebundle image.

We can now resize the file  :
{% highlight bash %}
hdiutil resize -size 2g ./my.sparsebundle
{% endhighlight %}

Now, mount it, and find out the identifier of the APFS Container you want to rewrite.

{'fraction_non_alphanumeric': 0.08391608391608392, 'fraction_numerical': 0.03496503496503497, 'mean_word_length': 3.9367816091954024, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4555114', 'n_tokens_mistral': 302, 'n_tokens_neox': 261, 'n_words': 117}