ext4 partition alignment issue/anomaly in installer (11.10 amd64)

Asked by Pat Cutty

This problem occurred after I installed a clean 640 GB Seagate hard drive. Laptop is Thinkpad T510 with i5 and 4 GB RAM.

Essentially, whenever I try to install Ubuntu (regardless of whether I go for the automatic install option or partition manually) the presence of an ext4 partition anywhere on the partition proposal returns the following error (severely paraphrased)

The partition alignment for (whatever ext4 partition there is) is so-and-so bytes off. This will cause major performance issues. Etc.

It tells me I should go back, delete the partition, and re-create it, which should automatically fix the alignment. Doing so (clicking "go back") does nothing- I get the same error.

Hitting "continue" does not continue with the install. It does the same thing as "go back."

When doing an automatic install, it kicks me to the custom partitioning screen with the same error.

I tried a couple different filesystems, and discovered that only EXT4 causes that error. Setting ext4 as / or /home will cause that partition to be named in the error message. When I tried non-EXT4 partitions exclusively, (JFS for / and btrfs for /home) the installation continued as it should.

This could be a major issue as it basically means Ubuntu's default partitioning layouts will not work.

The only hardware difference is the new HDD. Before I swapped it in, EXT4 partitions returned no errors.

So I guess the question is... WTF?!

Addendum: ext3 also returns the same error, and using btrfs as / results in a GRUB install fail (which did not happen with the previous HDD.) Using JFS as / worked fine. I will now test the x86 version of Ubuntu and see what happens. The new drive is perfectly fine according to Palimpsest and a test install of Windoze also worked without issue.

Addendum 2 : It's definitely not the drive. The complete battery of Seatools tests found no issues. Also tried installing the drive in another machine (Gateway Atom-based netbook, model LT2104u) and the same thing happened. So it is something to do with the drive, but there's nothing wrong with the drive. Tried low-level zero format of drive with Seatools (which completed successfully) but this too had no effect on issue.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu ubiquity Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Is it always with the same drive that you have seen this issue?

Revision history for this message
Pat Cutty (patcutty) said :
#2

I have only seen the problem with this particular drive, yes. A few have been though this machine, including other Seagate drives. I have not yet tried installing this drive and replicating the problem in another computer yet.

Another addendum: With the following partition layout:
(Primary) /boot- JFS 500 MB
(Logical) Swap 4096 MB
(Logical) / 20 GB btrFS
(Logical) /home 600 GB btrFS

Palimprest said the entire extended partition was 1276 bytes out of alignment. It did not detect any problem with the JFS /boot partition, only the extended as a whole. There did not appear to be major performance loss either, at least not that I noticed.

Revision history for this message
shiva (shiva-nayak-mdn) said :
#3

Even I found similar problem with the Ubiquity installer. I tried to preseed with
"ubiquity partman/alignment select optimal" and didn't solve the problem for me.

-Shiva

Revision history for this message
shiva (shiva-nayak-mdn) said :
#4

What I have is a 2Tb disk with 4k block size. And this 4k block size what causes the unaligned partitions.

-Shiva

Revision history for this message
delance (olivier-delance) said :
#5

"This will cause major performance issues." Currently, issue is only on latest Western Digital disks. Those disks use an internal 4kB block, even if via IDE bus they provide 512 bytes blocks.
If you make partition manually, you can ask to gparted to align on 1MB.

Revision history for this message
shiva (shiva-nayak-mdn) said :
#6

Yes, I did the same. Partitioned the disk using gparted and then used Ubiquity installer to make use of the partitions created.

Can you help with this problem?

Provide an answer of your own, or ask Pat Cutty for more information if necessary.

To post a message you must log in.