On Sat, 27 Sep 2014, Colin Watson wrote:
On Wed, Sep 24, 2014 at 04:04:01PM +0200, Vladislav Kurz wrote:partitions created by debian installer are not aligned to cylinders (MBR), or 1MiB (GPT).Could you please provide a partman log from a d-i run that fails to do this? (It should be in /var/log/installer/partman after installation.) As far as I knew I'd fixed all this a long time ago ...
I have a badly aligned GPT example made by squeeze installer, so this may be already fixed. I have checked some wheezy GPT installs and they seem to be 1MiB aligned. However I would prefer if the installer used MiB/GiB (1024*1024) instead of MB/GB (1000*1000) for specifying the partition size (e.g. 4G should mean 4GiB).
Please note that partitions should be aligned to 1MiB or more on MBR too. Regardless of the partition table format, cylinder alignment hasn't been necessary for a decade or two now, and it produces suboptimal performance on modern disks. There may of course still be fdisk-style tools that are behind the times on this, but that's their problem.
OK, I checked two MBR wheezy installs and it seems that this bug should be reassigned to cfdisk. Partitions made by installer a aligned to 1MiB, fdisk says they are OK, but cfdisk show they are not aligned to cylinders. And vice versa - the other disk I partitioned using cfdisk is not aligned to 1MiB
Vladislav Kurz -- Smash forehead on keyboard to continue...
partman.bz2
Description: Binary data