Better Disk-handling for Calamares-installer:
My NVMe support switching PBS/LBS (physical/logical block-size) to 4096 b (also called 4k).
Read PBS/LBS with:
nvme id-ns /dev/nvme0n1 -H | grep LBA
> output:
LBA Format 0 : Metadata Size: 0 bytes - Data Size: 512 bytes - Relative Performance: 0x2 Good (in use)
LBA Format 1 : Metadata Size: 0 bytes - Data Size: 4096 bytes - Relative Performance: 0x1 Better
"Format" NVMe with 4k:
nvme format /dev/nvme0n1 -l 1
> output:
Success formatting namespace:1
Check format:
nvme id-ns /dev/nvme0n1 -H | grep LBA
> output:
LBA Format 0 : Metadata Size: 0 bytes - Data Size: 512 bytes - Relative Performance: 0x2 Good
LBA Format 1 : Metadata Size: 0 bytes - Data Size: 4096 bytes - Relative Performance: 0x1 Better (in use)
Partitioning:
sgdisk -n 1:1M:+1G -t 1:ef00 -c 1:EFI-0002 $DISK
sgdisk -n 2:0:+1766G -t 2:8300 -c 2:ARTIX-0002 $DISK
sgdisk -n 3:0:+96G -t 3:8200 -c 3:SWAP-0002 $DISK
Formatting:
mkfs.vfat -F32 -s 2 -S 4096 -v /dev/nvme0n1p1
mkfs.ext4 -F -b 4096 -F /dev/nvme0n1p2
mkswap -f -p 4096 /dev/nvme0n1p3
Questions:
- Could `nvme-cli` and hdparm be implemented by default?
- Could the kernel be reloaded without reboot from USB or at least reload kernel-module detecting the 'disks"?
- Could the installer at least provide converting of NVMe?
- Could the "partitioning"-app show size (choose-wise) in "MiB, GiB and TiB"?
- Could the "partitioning"-app allow to simply move, resize partitions and let empty space at end of disk?
- `mkfs.fat` don't work with 4k-sector, is there a problem e.g. for MBR to use even `mkfs.vfat` or do you still to hold both FS?
- Could the partitioning-tool detect sector size and set already the right parameter?
Thanks in advance and best regards.