For coincidence, I was searching for articles on how to optimize a SD card for a Raspberry Pi and I find this one.<p>My RPI have a somewhat expensive Sandisk Ultra 32GB microSD card, however even them it was still slow to respond on random I&#x2F;O (like installing a new package in it). I decided to use F2FS instead of ext4, however it didn&#x27;t do much better: for some reason, the RPI kernel disable the majority of performance enhancements from F2FS by default. You can re-enable them in &#x2F;etc&#x2F;fstab, however after a unclear poweroff my filesystem was completely messed up. RPI wouldn&#x27;t even boot. This is unacceptable.<p>So I decided to go back to ext4, however try to optimize for flash media. This article put me in the correct way, basically thanks to this part:<p>&gt; When a filesystem wants to optimize its block allocation to the geometry of a flash drive, it needs to know the position of the segments on the drive. On partitioned media, this also implies that each partition is aligned to the start of a segment, and this is true for all preformatted SD cards and other media that require special care for segment optimizations.<p>Searching Google for &quot;aligned partition Raspberry Pi&quot; and I found those articles below that really helped to optimize my SD card performance:<p>* <a href="https:&#x2F;&#x2F;thelastmaimou.wordpress.com&#x2F;2013&#x2F;05&#x2F;19&#x2F;optimizing-arch-linux-image-installation-on-the-raspberry-pi&#x2F;" rel="nofollow">https:&#x2F;&#x2F;thelastmaimou.wordpress.com&#x2F;2013&#x2F;05&#x2F;19&#x2F;optimizing-ar...</a><p>* <a href="https:&#x2F;&#x2F;blogofterje.wordpress.com&#x2F;2012&#x2F;01&#x2F;14&#x2F;optimizing-fs-on-sd-card&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blogofterje.wordpress.com&#x2F;2012&#x2F;01&#x2F;14&#x2F;optimizing-fs-o...</a><p>After aligning my partition, the RPI seems faster and much more similar behavior to a traditional HDD (however, not so fast as a SSD, of course). However, I didn&#x27;t disable ext4&#x27;s journal, though, since I want to reduce the chance of getting my filesystem in a unbootable state.