Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 04-04-2014, 08:22 AM   #1
Registered: Aug 2012
Posts: 126

Rep: Reputation: Disabled
misaligned extended partition by 1024b

So I got this warning in disk utility that the partition is misaligned and it may result in very poor performance. I can't tell whether the drive is performing well or not because it's a new one and it's certainly faster than the 8 year old HDD I used to use. I've just created new partitions and installed operating systems. I've created partitions using gparted on debian wheezy on old HDD. Then I have installed debian on already existing empty partitions created by gparted. I'm not sure, but I think there was no warning at this point, although I don't remember if I checked disk utility. I had to do a reinstall due to graphics issue. I reformatted partitions using utility in debian installation. I think this could cause this. Now I don't know should I leave it or erase all and start all over again. I won't lose any data because it was copied from old HDD , but a little time for sure.
I've tried to remove empty space in gparted by resizing partition but it resulted in an error. Is there a way to fix this without formatting?
HDD is Seagate Barracuda 1TB.
90GB free space is left for future installations

Last edited by kox444; 04-04-2014 at 08:26 AM.
Old 04-04-2014, 10:05 AM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,223

Rep: Reputation: 561Reputation: 561Reputation: 561Reputation: 561Reputation: 561Reputation: 561
If it's an advanced format drive (4K sectors), then you should make sure the partition table has 4K alignment, otherwise leave it alone. Parted should do this by default. Disks with 512-byte sectors do not care about alignment.

For SSD, alignment should be on 1M boundary to line up with erase blocks.

If anything in the warning uses the words "track" or "cylinder" then it can be safely ignored unless your disk is 25 years old.
Old 04-04-2014, 12:46 PM   #3
Registered: Aug 2012
Posts: 126

Original Poster
Rep: Reputation: Disabled
Yes it is 4096 bytes per sector.

then you should make sure the partition table has 4K alignment
How do I check it?

The warning only says "The partition is misaligned by 1024 bytes. This may result in very poor performance. Repartitioning is suggested."

Some more info from fdisk command

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00087510

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            4094  1027133439   513564673    5  Extended
Partition 1 does not start on physical sector boundary.
/dev/sdb2   *  1027133440  1027338239      102400    7  HPFS/NTFS/exFAT
/dev/sdb3      1027338240  1232791551   102726656    7  HPFS/NTFS/exFAT
/dev/sdb4      1232791552  1953523711   360366080    7  HPFS/NTFS/exFAT
/dev/sdb5            4096     2508799     1252352   83  Linux
/dev/sdb6         2510848    10817535     4153344   82  Linux swap / Solaris
/dev/sdb7        10819584   100911103    45045760   83  Linux
/dev/sdb8       289470464  1027133439   368831488   83  Linux

Last edited by kox444; 04-04-2014 at 12:51 PM.
Old 04-04-2014, 02:05 PM   #4
Senior Member
Registered: Aug 2009
Distribution: CentOS
Posts: 2,103

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
In this case, you're fine. All of the logical partitions within the extended partition are properly aligned, as are all of the other primary partitions. The only thing misaligned is the header on the extended partition itself, and that gets read just once when the system boots.

FYI, the performance hit (bad -- factor of 10 or worse) for misaligned filesystems is only for write operations. The impact on reads is negligible.
1 members found this post helpful.
Old 04-05-2014, 03:50 PM   #5
LQ Guru
Registered: Mar 2008
Posts: 13,509

Rep: Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720 if you want to follow their use.
Old 04-06-2014, 04:23 AM   #6
Registered: Aug 2012
Posts: 126

Original Poster
Rep: Reputation: Disabled
That's good to know. Thanks.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Misaligned partition on replacement drive in RAID 5 array, Fedora 14 Ta-mater Linux - Hardware 5 06-05-2013 03:16 PM
[SOLVED] Partition misaligned by 2560 bytes _vaago Linux - Newbie 4 12-08-2011 02:55 AM
Possibility to create swap partition if extended partition is out of space? bhavisavla Linux - Newbie 1 09-12-2011 06:39 AM
HowTo convert Primary Partition to Logical (ie move it inside the Extended Partition) Tom6 Linux - Software 3 11-29-2010 03:40 PM
extended sata partition shrunk at 15 partition limit, how to re-enlarge Siljrath Linux - General 3 06-02-2010 10:33 PM

All times are GMT -5. The time now is 07:25 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration