Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Nov 2010 12:45:22 +0300
From:      Sergey Kandaurov <pluknet@gmail.com>
To:        Krzysztof Dajka <alteriks@gmail.com>
Cc:        stable@freebsd.org, marcel@freebsd.org
Subject:   Re: Problem creating mbr partition with gpart
Message-ID:  <AANLkTi=6caUGXKkMSUXCxYd83pfZsosZoDSnDJM4Bc32@mail.gmail.com>
In-Reply-To: <AANLkTi=wuqPyx=-WrM0KnouTtgY0LjPe4vRwwTjWpVTZ@mail.gmail.com>
References:  <AANLkTi=wuqPyx=-WrM0KnouTtgY0LjPe4vRwwTjWpVTZ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 19 November 2010 01:06, Krzysztof Dajka <alteriks@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:
>
> [~] # =A0gpart create -s mbr da1
> da1 created
> [~] # =A0gpart add =A0-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}


--=20
wbr,
pluknet



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=6caUGXKkMSUXCxYd83pfZsosZoDSnDJM4Bc32>