GPT and disk alignment

Alexander Leidinger Alexander at Leidinger.net
Wed Jun 8 08:08:22 UTC 2011


Quoting Robert Simmons <rsimmons0 at gmail.com> (from Wed, 8 Jun 2011  
01:29:43 -0400):

> Ok, is there some way to tell gpart(8) what the LBA size is, or do I
> have to calculate the offset of each partition manually?  In Linux it
> would be "fdisk -b 1024" for the example of SSDs or "fdisk -b 4096"
> for 4K HDDs.

Here is what I did to align to 4k sectors with gpart:
http://www.leidinger.net/blog/2011/05/03/another-root-on-zfs-howto-optimized-for-4k-sector-drives/

Bye,
Alexander.

-- 
I love dogs, but I hate Chihuahuas.  A Chihuahua isn't a dog.
It's a rat with a thyroid problem.

http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID = 72077137


More information about the freebsd-fs mailing list