Problem creating mbr partition with gpart

Sergey Kandaurov pluknet at gmail.com
Fri Nov 19 09:45:24 UTC 2010


On 19 November 2010 01:06, Krzysztof Dajka <alteriks at gmail.com> wrote:
> Hi
> Today I had problem with creating mbr partition on my pendrive.
> I tried using gpart as I am most familiar with this tool. On clean device I did:
>
> [~] #  gpart create -s mbr da1
> da1 created
> [~] #  gpart add  -t mbr da1
> gpart: Invalid argument

Hmm.. I use the next sequence (on 8.x):

gpart create -s mbr ${device}
gpart add -b 63 -t freebsd ${device}
gpart create -s bsd ${device}s1
gpart add -t freebsd-ufs -s 1024m ${device}s1
[..more partitions there..]
gpart bootcode -b /boot/boot0 ${device}
gpart bootcode -b /boot/boot ${device}s1
gpart set -a active -i 1 ${device}


-- 
wbr,
pluknet


More information about the freebsd-stable mailing list