The 4Kn logical block size in data-storage-hardware is advised to be supported in Linux since Kernel 2.6.31 since 9 September 2009.
4Kn industry standard is dated 2010 and the widely amount of manufacturer produce all data-carrier in 4Kib physical-block-size. Data-storage-hardware are delivered for consumer in 512e logical-block-size and for enterprise in 4Kn. Manufacturer who provide boot customer type provide a data-storage-controller able to switch between the block-size-dimension.
My request is to use modern tools for partitioning and formatting as explained in this post/thread and modify OS-installation as following:
- Detect physical and logical block size over script.
- Use
gptfdisk
-tools to partition, in the TUI (in Calamares) withcgdisk
by "manual partition" andsgdisk
for scripting-partitioning by "use entire disk". - Use
mkfs
for formatting UEFI (EF00), Swap (8200) and Btrfs sitting on top of Ext4 (8300=Root), for "creating" ZFS (the future) should be allowed in Calamares just to use mounted partitions but the same must be aware of ZFS & Btrfs too.
Note-s:
- Detection of block-size,
gptfdisk
-tools andmkfs
are mandatory. By the way, the developer ofgdisk
is also the developer ofrefind
which is much better thangrub
. swap
&btrfs
are full supporting 4KiB, hence, there nothing to do.
Here the formatting commands with all necessary switches and options for the most used partitions-type under Linux:
- Formatting EFI-part in 4Kn/4KiB
mkfs.vfat -F32 -s 2 -S 4096 -v /dev/nvme0n1p1
- Formatting OS-part in 4Kn/4KiB
mkfs.ext4 -F -b 4096 -F /dev/nvme0n1p2
- Formatting SWAP-part in 4Kn/4KiB (again, this is not necessary, read swap-man-page)
mkswap -f -p 4096 /dev/nvme0n1p3
Finally, as you can see, if formatting ext4
is not used or necessary but only as partition-type for btrfs
, the only problem remain is vfat
that need exactly those parameter and options to work flawlessly.
Please take in consideration that 1 (one) 4096=4KiB data block take only place of 7x512 or 7x512e instead of 8x512 or 512e, hence, optimization of data-storage-hardware.
Consider please besides that the physical-block-size 4KiB is already an eternity on storage-device and soon all manufacturer will delivery device with only 4KiB=4Kn logical-block-size outer for pen-drives (USB-sticks) & SD-cards that will probably remain with 512 or 512e LBS.
Thanks you for your attention hoping you will consider my modification-request.
P.S.: Even Windoof already know about future delivery of storage-drives in 4Kn.