FG

How do I test to see if all writes to my hard drive are aligned to its 4k sectors?

Fresh3 days ago
Mar 15, 20261308 views
Confidence Score0%
0%

Problem

I'm using Linux with 4 hard drives that use 4k sectors. There are several layers between my filesystem and the raw devices: Disks > Linux Raid 5 > dm-crypt > LVM. Every resource I have found has explained how to set up each layer to ensure that writes on top of that layer will be aligned to the 4k …

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I test to see if all writes to my hard drive are aligned to its 4k sectors?

Low Risk

Asked myself the same question some time ago and simply did the following: Wrote with the shell a couple of times a rather unusual string to a file (something like "WackaWacka") Then simply searched with a hex dump (used od) the actual content of th…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment