Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 28th September 2010, 12:46 PM
WoxDN Offline
Registered User
 
Join Date: Sep 2010
Posts: 12
windows_98_nt_2000opera
Manual GPT partition alignment

I need a second opinion on partition alignment of GPT partitions on a 4K sector disk.
parted /dev/sda unit s print
Model: ATA WDC WD20EARS-00J (scsi)
Disk /dev/sda: 3907029168s
Sector size (logical/physical): 512B/512B
Partition Table: gpt
As far as I know a GPT partitioned drive looks like this:
LBA 0: MBR
LBA 1-33: GPT1
LBA 34-(nsect-34): addressable space
LBA (nsect-33)-(nsect-1): GPT2
We're talking about 512 byte sectors since this 4K drive doesn't tell its real sector size to the OS (hdparm -i /dev/sda: SectSize=0). So a 4K aligned GPT partitioned drive looks like this:
[0...MBR/GPT1...33]
[34...lost...8a-1]
[8a...part1...8b-1]
[8b...part2...8c-1]
...
[8d...partk...8e-1]
[8e...lost...nsect-34]
[nsect-33...GPT2...nsect-1]
Suppose I just want 1 partition that covers the whole drive:
[0...MBR/GPT1...33]
[34...lost...8a-1]
[8a...part1...8b-1]
[8b...lost...nsect-34]
[nsect-33...GPT2...nsect-1]
To maximize the partition but keep it aligned with the 4K sectors
a = ceil(34/8.) = 5
b = floor((n-34)/8.) = 488378641
So we should make a partition that start at 8a and ends at 8b-1:
parted /dev/sda unit s mkpart primary 40 3907029127
Is this the correct way of thinking? When I do this, parted informs me that "the resulting partition is not properly aligned for best performance". Should I just ignore it?
Reply With Quote
Reply

Tags
alignment, gpt, manual, partition

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
about manual partition size paulga Installation and Live Media 4 19th May 2010 08:20 AM
Fail to Install FC4 with Manual Partition middleware Using Fedora 0 1st August 2005 07:59 AM
How to install FC2 using Manual partition jozin EOL (End Of Life) Versions 3 28th March 2005 10:10 AM
partition on manual xstation Installation and Live Media 1 20th February 2005 01:29 AM


Current GMT-time: 23:45 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat