Bug#762694: partman-partitioning: Partitions are not aligned

2014-10-23 Thread Vladislav Kurz

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


Bug#762694: partman-partitioning: Partitions are not aligned

2014-09-27 Thread Colin Watson
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 ...

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.

-- 
Colin Watson   [cjwat...@debian.org]


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#762694: partman-partitioning: Partitions are not aligned

2014-09-24 Thread Vladislav Kurz
Package: partman-partitioning
Version: 91
Severity: normal

Dear Maintainer,

partitions created by debian installer are not aligned to
cylinders (MBR), or 1MiB (GPT). You can check by
partitioning a disk using debian installer and then look at
the partitions with cfdisk - you'll see an unusable space at
the beginning and end of the disk, and asterisks at all
partitins meaning it is not aligned.

This is very inconvenient, if you need to partition a new
drive with the same partitions, as cfdisk will not let you
create unaligned partitions. One has to copy the partition
table with dd or some other *fdisk tool. Similar problems
are with GPT and gdisk.

Even more problems arise if you want to repartition - extend
the partition into unused space and keep the beginning at
the same place.

Please fix partman in debian installer, so that it makes
partitions aligned in the same way as cfdisk/gdisk does.

Best regards
Vladislav Kurz

-- System Information:
Debian Release: 7.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'squeeze-lts'), (500, 
'oldstable-updates'), (500, 'stable'), (500, 'oldstable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/8 CPU cores)
Locale: LANG=, LC_CTYPE= (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org