WD Advanced Format: do I need to do something special?

Andrey V. Elsukov ae at FreeBSD.org
Fri Aug 19 05:16:12 UTC 2011


On 19.08.2011 3:11, Kevin Oberman wrote:
> I'd strongly suggest avoiding fdisk(8) and using gpart(8) on 8 and
> above. It has an
> alignment option that makes this all just work and also allows the use of GPT
> formatting. (Watch out for GPT on any system that needs to run 32-bit Windows.)
> 
> gpart create -s gpt ada1
> gpart bootcode -b /boot/pmbr ada1
> gpart add -t freebsd-boot -a 4 -s 128 -b 40 ad0
> gpart bootcode -p /boot/gptboot -i 1 ad0
> gpart add -t freebsd-ufs -a 4 -s 2097152 ada1
> gpart add -t freebsd-swap -a 4 -s 8388608 ada1
> gpart add -t freebsd-ufs -a 4 -s 10485760 ada1
> gpart add -t freebsd-ufs -a 4 -s 1048576 ada1
> gpart add -t freebsd-ufs -a 4 ada1

If you are using gpart with -a option you don't need to specify exactly numbers.
And if you want to align your partition to 4096 bytes you should use "-a 4k" or "-a 8".
E.g.

# gpart add -t freebsd-boot -a 4k -s 64k ad0

-- 
WBR, Andrey V. Elsukov

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20110819/04d933f7/signature.pgp


More information about the freebsd-stable mailing list