From owner-freebsd-questions@FreeBSD.ORG Sun Oct 11 13:31:51 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 99D3C1065693 for ; Sun, 11 Oct 2009 13:31:51 +0000 (UTC) (envelope-from amsibamsi@gmail.com) Received: from mail-ew0-f218.google.com (mail-ew0-f218.google.com [209.85.219.218]) by mx1.freebsd.org (Postfix) with ESMTP id 2841D8FC15 for ; Sun, 11 Oct 2009 13:31:50 +0000 (UTC) Received: by ewy18 with SMTP id 18so2212919ewy.43 for ; Sun, 11 Oct 2009 06:31:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=wIt2MPI9yfA240Gd57G//P43ix85Wkn60kv20GWnR7E=; b=Wt6K97kIk5VN1DjhITqfymjn6sbwAzFPJH3zl4sdRf24GhWV+dXBXm08bHyBDXLv/g k10YteTF8PXLT8aoZzgijvo09WSulx21C7XiZ+jK1toZlG/6EWUtGV7+f2QJ7N0fUVX6 M64D4N/H5HAVldvM/PSNVoihhcBamx/xwiMUg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=aRa9mOsq/jFij/txqouWBH08EuBTlOr19UPzLMViC2r5R+dEFnz98WcTTkahOjjdRU e+AZxB8kxbzU+62nW2UduDnvigvXO/JCIvV42NTxwu9hGSlNpBkPOjoVU73ZmNQOhAQg M8GjYBpJki490fYqsadxcBPe6non0hS5bhpyw= Received: by 10.211.159.19 with SMTP id l19mr2915270ebo.43.1255267910258; Sun, 11 Oct 2009 06:31:50 -0700 (PDT) Received: from ?10.10.2.2? (80-219-26-31.dclient.hispeed.ch [80.219.26.31]) by mx.google.com with ESMTPS id 10sm131920eyd.46.2009.10.11.06.31.49 (version=SSLv3 cipher=RC4-MD5); Sun, 11 Oct 2009 06:31:49 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes From: Anselm Strauss In-Reply-To: <744E86AA-8024-4A1D-903A-11B6177B4D95@gmail.com> Date: Sun, 11 Oct 2009 15:31:48 +0200 Content-Transfer-Encoding: 7bit Message-Id: <4836FC82-7B2D-48C5-83EE-3FFD0CDD3C9C@gmail.com> References: <744E86AA-8024-4A1D-903A-11B6177B4D95@gmail.com> To: Anselm Strauss X-Mailer: Apple Mail (2.1076) Cc: freebsd-questions@freebsd.org Subject: Re: gpart mbr scheme X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Oct 2009 13:31:51 -0000 Aha, GEOM_PART_MBR is not enabled by default in the 7.2 kernel. That changes with 8.0: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/amd64/conf/DEFAULTS.diff?r1=1.10.8%3ARELENG_7_2&tr1=1.10.8.1&r2=1.19.2%3ARELENG_8&tr2=1.19.2.1 I recompiled my kernel, now it works! On Oct 10, 2009, at 22:08 , Anselm Strauss wrote: > Hi, > > I'm trying to partition a compact flash card with gpart. When I want > to create a new MBR scheme it always complains: > > -> gpart create -s mbr da0 > gpart: scheme 'mbr': Invalid argument > > The GPT scheme works fine: > > -> gpart create -s gpt da0 > da0 created > -> gpart show da0 > => 34 8027645 da0 GPT (3.8G) > 34 8027645 - free - (3.8G) > -> gpart destroy da0 > da0 destroyed > > The kernel driver seems to be loaded: > > -> kldstat -v | grep mbr > 278 g_mbr > 277 g_mbrext > > Does gpart in 7.2 not support MBR partitioning? > > > Cheers, > Anselm