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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to