From owner-freebsd-stable@FreeBSD.ORG Fri Nov 19 09:45:24 2010 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93B0B1065670 for ; Fri, 19 Nov 2010 09:45:24 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 458CD8FC12 for ; Fri, 19 Nov 2010 09:45:23 +0000 (UTC) Received: by qwd7 with SMTP id 7so280036qwd.13 for ; Fri, 19 Nov 2010 01:45:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=PvQVHF6HgNZL8HYn+pid5sOB4o9j+smr6064f6GAeyA=; b=S5iJpWqfcuHJhLO+HqJNN9y8Ua0ys4jTMuJZmux/nENXwSXI2exaNAcHY6xnVoxEXW jfGxqpSKwMz7lEBLjO1WLJ362iyBLCkDVVeiPKku8P5Q+EL7vpH+1Wja5+j5cYsrjc7z UoEhpEicSX97GjQkIW9SWYg/f+HKJ0mS6e6a4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=hqEH2fAudSl49sFTKU3q541HjU145unKrK5SqatqfTlofA3B/G4q5id2If1zF9brUs j6z6q9boyUUqXo5Qd6wyz7l+aWpZUoJyTujgJDF3QiKZ9Q87FoEfYMkas9X7cj75ZASm y08783/rIi5r9LtHhdgZMjxJqkAz2FNsJ+5R8= MIME-Version: 1.0 Received: by 10.229.233.20 with SMTP id jw20mr1637013qcb.62.1290159923062; Fri, 19 Nov 2010 01:45:23 -0800 (PST) Received: by 10.229.69.135 with HTTP; Fri, 19 Nov 2010 01:45:22 -0800 (PST) In-Reply-To: References: Date: Fri, 19 Nov 2010 12:45:22 +0300 Message-ID: From: Sergey Kandaurov To: Krzysztof Dajka Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: stable@freebsd.org, marcel@freebsd.org Subject: Re: Problem creating mbr partition with gpart X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Nov 2010 09:45:24 -0000 On 19 November 2010 01:06, Krzysztof Dajka 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