Date: Mon, 3 Jun 2013 10:45:53 +0430 From: saeedeh motlagh <saeedeh.motlagh@gmail.com> To: freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: define more partitions in freebsd Message-ID: <CAN%2BS=WAeR6ndOZ4_Lo5hyOKfAsT4RLZZ6mvCc-SFgzxSEDStYg@mail.gmail.com> In-Reply-To: <87y5ascp6v.fsf@oak.localnet> References: <CAA_1SgHpcfWmS-CgE1WfQj4GLop9Wgeg__v2tzVbCj8pyt=qiA@mail.gmail.com> <87y5atg73c.fsf@oak.localnet> <CAA_1SgESNUPyH9-h6o-uij1K6arF4-d8GuS-XW5i3pFyXA0uCg@mail.gmail.com> <87y5ascp6v.fsf@oak.localnet>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <carlj@peak.org> wrote: > s m <sam.gh1986@gmail.com> 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*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN%2BS=WAeR6ndOZ4_Lo5hyOKfAsT4RLZZ6mvCc-SFgzxSEDStYg>