Date: Wed, 13 Jun 2012 12:18:14 +0200 From: Olivier Smedts <olivier@gid0.org> To: Irjohn Junus <i.junus@gmail.com> Cc: freebsd-fs@freebsd.org Subject: Re: gpart add -a 4096 vs 4k Message-ID: <CABzXLYNZPO90fA41HGcJ-D-thE7KT586S5k7eo41GxLXBrWuCQ@mail.gmail.com> In-Reply-To: <CALXkR%2B879QJPNisOKA71yej9m1%2BUiz4cNopkoM42irmRoaBL-g@mail.gmail.com> References: <CALXkR%2B879QJPNisOKA71yej9m1%2BUiz4cNopkoM42irmRoaBL-g@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello, 2012/6/13 Irjohn Junus <i.junus@gmail.com>: > Hello, > > Relatively new to FreeBSD and learning, I'm trying to partition my HDD an= d > align it to 4k sector. > > I do apologize if this has been answered before, I have Googled and read > gpart(8) man page to no joy. Can anyone please advice why gpart add '-a > 4096' doesn't yield the same result with '-a 4k'? Many thanks and capture= s > are below. > > Regards, > Ronjns > > > > #gpart add -t freebsd-zfs -l hdd0 *-a 4096* da0 > da0p1 added > # gpart show da0 > =3D> =A0 =A0 =A0 =A034 =A03907029101 =A0da0 =A0GPT =A0(1.8T) > =A0 =A0 =A0 =A0 =A034 =A0 =A0 =A0 =A04062 =A0 =A0 =A0 - free - =A0(2M) > =A0 =A0 =A0 =A0*4096 =A03907022848* =A0 =A01 =A0freebsd-zfs =A0(1.8T) > =A03907026944 =A0 =A0 =A0 =A02191 =A0 =A0 =A0 - free - =A0(1.1M) > > > > # gpart add -t freebsd-zfs -l hdd0 *-a 4k* da0 > da0p1 added > # gpart show da0 > =3D> =A0 =A0 =A0 =A034 =A03907029101 =A0da0 =A0GPT =A0(1.8T) > =A0 =A0 =A0 =A0 =A034 =A0 =A0 =A0 =A0 =A0 6 =A0 =A0 =A0 - free - =A0(3.0k= ) > =A0 =A0 =A0 =A0 =A0*40 =A03907029088* =A0 =A01 =A0freebsd-zfs =A0(1.8T) > =A03907029128 =A0 =A0 =A0 =A0 =A0 7 =A0 =A0 =A0 - free - =A0(3.5k) We're talking of sectors here, se "4096" does not mean 4 KB but 4096*512=3D= 2MB. I think you should use "-a 8", because 4k sectors =3D 8*512B sectors. --=20 Olivier Smedts=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 _ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 ASCII ribbon campaign ( ) e-mail: olivier@gid0.org=A0 =A0 =A0 =A0 - against HTML email & vCards=A0 X www: http://www.gid0.org=A0 =A0 - against proprietary attachments / \ =A0 "Il y a seulement 10 sortes de gens dans le monde : =A0 ceux qui comprennent le binaire, =A0 et ceux qui ne le comprennent pas."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABzXLYNZPO90fA41HGcJ-D-thE7KT586S5k7eo41GxLXBrWuCQ>