Date: Sun, 02 Jun 2013 12:01:12 -0700 From: Carl Johnson <carlj@peak.org> To: freebsd-questions@freebsd.org Subject: Re: define more partitions in freebsd Message-ID: <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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87y5ascp6v.fsf>