https://bugs.kde.org/show_bug.cgi?id=504128

            Bug ID: 504128
           Summary: partitionmanager Nvme SSD's sector size is not
                    autodetected for megabyte alignment
    Classification: Applications
           Product: partitionmanager
           Version: 24.12.0
          Platform: Debian testing
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: andr...@stikonas.eu
          Reporter: shtetl...@gmail.com
  Target Milestone: ---

Not sure if this is fixed in newer version (I'm using 24.12.0 from Debian
testing), but I noticed that partitionmanager always assumes 2048 sectors for
partition alignment.

The logic behind it is that 2048 x 512 B = 1048576 B = 1 MiB. I.e. that's
megabyte alignment... but only if sector size is 512 bytes.

Modern NVMe SSDs support 4 KiB sector sizes (not always by default, but it's
often an option to select such sector size with nvme-cli for example). In such
case, to get megabyte alignment you need to use 256 sectors, not 2048! I.e. 256
x 4 KiB = 1 MiB.

But partitionmanager is oblivious to this detail and always sticks to 2048
sectors alignment, unless user explicitly set it to 256 in its settings (which
many won't even realize should be done). That wastes some space / creates
unnecessary gaps or edges when making partitions.

Please make partitionmanager autodetect sector size (it already has that info
from smart tools) and use correct value for getting the default megabyte
alignment.

Thank you!

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to