From owner-freebsd-questions@FreeBSD.ORG Mon Jun 3 06:16:36 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 35AEF72C for ; Mon, 3 Jun 2013 06:16:36 +0000 (UTC) (envelope-from saeedeh.motlagh@gmail.com) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) by mx1.freebsd.org (Postfix) with ESMTP id 996FF1955 for ; Mon, 3 Jun 2013 06:16:35 +0000 (UTC) Received: by mail-lb0-f181.google.com with SMTP id 13so1902939lba.12 for ; Sun, 02 Jun 2013 23:16:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=NfwLmgsr/g/t1WowHp4rZz/2stb71CqqHynm+toFqvk=; b=knDcMtq9NT60grSY9mH/AwYepGTTbBWPWz57FswygA759Sak40u+F/D6eqhkZROizv j3RabMZbuqKaV6B0Q6Yuq6gnFC0X+JitbUO+js/XtlnWSVGbK9Z2MyUkmqmC0Wd3FM86 Ptj0ENTZMYYUMXSwTKeEwi1O7OcE1ObRSQu+XiENmBiFyzigvzHDqw69xMLO/upD30IM 9Ub3MDrrC3WfBWFrHFu9VCD633njGdH8yeRBui+FxcSJmw6/KU/RcKPmKZHhMl/j2tdV ry9JrkqXOLhxoj72sRXbvGt10aZh3Z8uvRcQm89+4iJhb3JFkRsa4y6UsVOXR0Ylkzio huHg== X-Received: by 10.152.20.136 with SMTP id n8mr7314911lae.17.1370240194098; Sun, 02 Jun 2013 23:16:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.149.33 with HTTP; Sun, 2 Jun 2013 23:15:53 -0700 (PDT) In-Reply-To: <87y5ascp6v.fsf@oak.localnet> References: <87y5atg73c.fsf@oak.localnet> <87y5ascp6v.fsf@oak.localnet> From: saeedeh motlagh Date: Mon, 3 Jun 2013 10:45:53 +0430 Message-ID: Subject: Re: define more partitions in freebsd To: freebsd-questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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: Mon, 03 Jun 2013 06:16:36 -0000 thanks Carl, i tried your your manual step by steps on FreeBSD8.2 but error happened. this is what i've done: gpart create -s MBR ad3 ad3 created gpart add -t freebsd ad3 ad3s1 added gpart create -s BSD -n 20 ad3s1 gpart: geom 'ad3s1': File Exists if i do not run the second command and run the third one, it says "invalid argument". i don't know what should i do:( any comments or hints are really appreciated. On Sun, Jun 2, 2013 at 11:31 PM, Carl Johnson wrote: > 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 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > -- *Sa.M*