Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Disk Utility is giving me the error "The partition is misaligned by 1024 bytes. This may result in very poor performance. Repartitioning is suggested" on a partition which holds an encrypted LVM.

I have looked at this question (and several like it)

However there is an issue caused by the use of an encrypted partition. GParted, for example, cannot resize an encrypted volume or the partition which holds it.

Is there any way to resize the partition to align it properly? Neither Disk Utility nor GParted will let me do this.

EDIT: This still hasn't been solved so I can't award the bounty...

share|improve this question
Please edit your question to include an outline of your partitioning scheme and also the model of your hard drive. – izx Aug 10 '12 at 1:32
And also, how are you setting up LVM and encryption - a clean install, or...? – izx Aug 10 '12 at 1:51
Most recently I pre-formatted the drive with GParted on a liveCD, aligning to MiB, and then used the created partitions to install the OS – jackweirdy Aug 10 '12 at 12:23
So after Gparted, you booted up the Alternate CD, chose manual and set up LVM and encryption? Please include a screenshot of your partitions if possible. I'm not having this problem starting from the Alternate CD... – izx Aug 10 '12 at 12:31
Yeah, I chose manual and select the 1st (200MiB) partition as /boot/ and the other one as "physical volume for lvm partition" – jackweirdy Aug 10 '12 at 16:09

I believe the best way to solve this is:

  • backup your important files to another hard drive
  • format the partition (or the whole hard drive) using an ubuntu live cd and gparted.

Some people complain of very low speed when they have this misalignment. If you don't have slow speed when reading/writing to the partition, I suggest you leave it as it is and simply ignore the warning. That is, until you find an opportunity (another hard drive, and time) to reformat the drive.

share|improve this answer
I've already tried reformatting with different partition sizes and have the same problem; as I mentioned in the OP I can't use gparted as it doesn't support LUKS encryption (that is to say I can remove the existing one but wouldn't be able to create it again) – jackweirdy Jul 29 '12 at 21:20
I'm not very familiar with disk encryption, but you may be able to use dm-crypt instead of luks:… -- – medigeek Jul 29 '12 at 22:12
also this post looks very promising: – medigeek Jul 29 '12 at 22:19
I just wiped the hard drive and pre-formatted with GParted (aligning to MiB) and then installed on the new, aligned partitions. Still get this error :/ – jackweirdy Aug 5 '12 at 19:31
Then you didn't align it correctly:… – ppetraki Aug 7 '12 at 16:03
up vote 0 down vote accepted

Unfortunately I had to remove the LVM and use standard, unencrypted partitions. The issue stopped and I've noticed a significant performance increase... Still not perfect though, and I'm sorry nobody could answer :(

share|improve this answer
I have this problem too, not matter what I do, or how many times I reformat, or even what distro I am using, be it Debian, Kali or Ubuntu, this error persists. – Chev_603 Jul 14 '15 at 14:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.