From owner-freebsd-questions@FreeBSD.ORG Sun Jun 2 19:01:16 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 0EEFAC75 for ; Sun, 2 Jun 2013 19:01:16 +0000 (UTC) (envelope-from carlj@peak.org) Received: from mail-pd0-f169.google.com (mail-pd0-f169.google.com [209.85.192.169]) by mx1.freebsd.org (Postfix) with ESMTP id D9113161D for ; Sun, 2 Jun 2013 19:01:15 +0000 (UTC) Received: by mail-pd0-f169.google.com with SMTP id y11so4643893pdj.0 for ; Sun, 02 Jun 2013 12:01:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-authentication-warning:from:to:subject:references :mail-followup-to:date:message-id:user-agent:mime-version :content-type:x-gm-message-state; bh=4fdnC7aFAfAuAlYPC1A0aryrnHQZWfQjXusg+pyVi7w=; b=MdSkydVRExiy7t1qP47wcTx/3LtHE+J+R3A9CLldgGxAzDAzaLQ/Ml/krb27ZuaHZG yXOyWVuQSzhsBvXfc0mkapPAmYVyysn1q2n77yfgV5XCIwN5H4rQJxKEIuVR6+GwzrTK bpC5zdJUuAH839Tur+6wOx/1UIxV2MJfNP4lZi5KxKr1eqAJdPGebJdJb0VYGhlwEJ6Z LDW9HBgdHE2C3ZDKaIK4fc47hgw/OLOmvyXNlWqG1ii9AR2cl+tSAQ4Ej5erGdbpOgGa BGJVYHjwaTb+xMMkeEHj8AZjUnL91i/Thu4yZdlgknmpZJrprMx1Qcf9KPqxjGxyPnD2 E9Yw== X-Received: by 10.68.211.199 with SMTP id ne7mr20801185pbc.56.1370199675486; Sun, 02 Jun 2013 12:01:15 -0700 (PDT) Received: from bonsai.localnet ([207.55.107.62]) by mx.google.com with ESMTPSA id xd2sm15777865pac.15.2013.06.02.12.01.14 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 02 Jun 2013 12:01:14 -0700 (PDT) Received: from oak.localnet (oak.localnet [192.168.193.34]) by bonsai.localnet (Postfix) with ESMTP id 6E00D3DBC6 for ; Sun, 2 Jun 2013 12:01:12 -0700 (PDT) Received: from oak.localnet (localhost.localnet [127.0.0.1]) by oak.localnet (Postfix) with ESMTP id 44EEAD020 for ; Sun, 2 Jun 2013 12:01:12 -0700 (PDT) Received: (from carlj@localhost) by oak.localnet (8.14.5/8.14.5/Submit) id r52J1C42054354; Sun, 2 Jun 2013 12:01:12 -0700 (PDT) (envelope-from carlj@peak.org) X-Authentication-Warning: oak.localnet: carlj set sender to carlj@peak.org using -f From: Carl Johnson To: freebsd-questions@freebsd.org Subject: Re: define more partitions in freebsd References: <87y5atg73c.fsf@oak.localnet> Mail-Followup-To: freebsd-questions@freebsd.org Date: Sun, 02 Jun 2013 12:01:12 -0700 Message-ID: <87y5ascp6v.fsf@oak.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Gm-Message-State: ALoCoQkEMAvljR/lzX5JbzU0BTcF1MIf/Uu2eER8XMIQFpLj9chIH38iNGJXeSwbaI09NXJrgtqZ X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jun 2013 19:01:16 -0000 s m writes: > thanks guys, > > i understand another solution is GPT partitioning. but i prefer to have > more partitions in traditional freebsd (with MBR table i think). using GPT > is the last solution for me. > > i should create more than 8 partitions with gpart command (flag n which > identifies entries) but i have errors when using it. is there any special > option which should be included in kernel in order to use gpart with flag > n? any one test it before? > > thanks in advance, I just tried it on a FreeBSD 8.3 system without any problems. You will need to explain what kind of errors you had before anybody can help you. I used a zfs volume for testing as follows: gpart create -s MBR /dev/zvol/zpool/v/gtest gpart add -t freebsd /dev/zvol/zpool/v/gtest gpart create -s BSD -n 20 zvol/zpool/v/gtests1 gpart add -t freebsd-ufs -s 1G zvol/zpool/v/gtests1 gpart add -t freebsd-swap -s 2G zvol/zpool/v/gtests1 # add several more freebsd-ufs # output from 'gpart show zvol/zpool/v/gtests1' => 0 41942943 zvol/zpool/v/gtests1 BSD (20G) 0 2097152 1 freebsd-ufs (1.0G) 2097152 4194304 2 freebsd-swap (2.0G) 6291456 2097152 4 freebsd-ufs (1.0G) 8388608 2097152 5 freebsd-ufs (1.0G) 10485760 2097152 6 freebsd-ufs (1.0G) 12582912 2097152 7 freebsd-ufs (1.0G) 14680064 2097152 8 freebsd-ufs (1.0G) 16777216 2097152 9 freebsd-ufs (1.0G) 18874368 2097152 10 freebsd-ufs (1.0G) 20971520 2097152 11 freebsd-ufs (1.0G) 23068672 2097152 12 freebsd-ufs (1.0G) 25165824 2097152 13 freebsd-ufs (1.0G) 27262976 2097152 14 freebsd-ufs (1.0G) 29360128 2097152 15 freebsd-ufs (1.0G) 31457280 2097152 16 freebsd-ufs (1.0G) 33554432 2097152 17 freebsd-ufs (1.0G) 35651584 2097152 18 freebsd-ufs (1.0G) 37748736 2097152 19 freebsd-ufs (1.0G) 39845888 2097055 20 freebsd-ufs (1G) # output from 'disklabel zvol/zpool/v/gtests1' # /dev/zvol/zpool/v/gtests1: 20 partitions: # size offset fstype [fsize bsize bps/cpg] a: 2097152 0 4.2BSD 0 0 0 b: 4194304 2097152 swap c: 41942943 0 unused 0 0 # "raw" part, don't edit d: 2097152 6291456 4.2BSD 0 0 0 e: 2097152 8388608 4.2BSD 0 0 0 f: 2097152 10485760 4.2BSD 0 0 0 g: 2097152 12582912 4.2BSD 0 0 0 h: 2097152 14680064 4.2BSD 0 0 0 i: 2097152 16777216 4.2BSD 0 0 0 j: 2097152 18874368 4.2BSD 0 0 0 k: 2097152 20971520 4.2BSD 0 0 0 l: 2097152 23068672 4.2BSD 0 0 0 m: 2097152 25165824 4.2BSD 0 0 0 n: 2097152 27262976 4.2BSD 0 0 0 o: 2097152 29360128 4.2BSD 0 0 0 p: 2097152 31457280 4.2BSD 0 0 0 q: 2097152 33554432 4.2BSD 0 0 0 r: 2097152 35651584 4.2BSD 0 0 0 s: 2097152 37748736 4.2BSD 0 0 0 t: 2097055 39845888 4.2BSD 0 0 0 I also tried newfs on all the ufs partitions without problems. I just tried this on a FreeBSD 8.2 system and it works there as well. -- Carl Johnson carlj@peak.org