From owner-freebsd-questions@FreeBSD.ORG Wed Dec 4 10:16:06 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 028D7655 for ; Wed, 4 Dec 2013 10:16:06 +0000 (UTC) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B84D913E1 for ; Wed, 4 Dec 2013 10:16:05 +0000 (UTC) Received: from r56.edvax.de (port-92-195-106-241.dynamic.qsc.de [92.195.106.241]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 397AC3DEAC; Wed, 4 Dec 2013 11:15:57 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id rB4AFfp4002204; Wed, 4 Dec 2013 11:15:42 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 4 Dec 2013 11:15:41 +0100 From: Polytropon To: Erich Dollansky Subject: Re: Minimum size of a UFS partition Message-Id: <20131204111541.97550134.freebsd@edvax.de> In-Reply-To: <20131204155907.38ab9f72@X220.ovitrap.com> References: <20131204155907.38ab9f72@X220.ovitrap.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Dec 2013 10:16:06 -0000 On Wed, 4 Dec 2013 15:59:07 +0800, Erich Dollansky wrote: > Hi, > > does anybody know how small a partition for UFS can get? > > I would need a very small partition of even below 1.44 MB. That should be possible by applying specific options to newfs for fine-tuning. The size of the "administrative structures" can be controlled by tuning -S, -b and -f. Also -o, -r and -m will have an effect here. Note that -s is given in sectors. Creating a UFS volume directly on a device should leave all the control to you, using newfs. If you need to create a partition for it (GPT via gpart, MBR via gpart, MBR via fdisk and bsdlabel) things will probably get more complicated because more "overhead" will be involved. In a "normal" case, newfs will automatically detect the size of what the file system is going to be created on (e. g. da0p1, da0s1, or da0) and will span across the usable space automatically, so maybe a combination of "create a small partition somehow" and "make UFS use the partition optimally" would be a possible way to go. See "man newfs" and "man tunefs" for details, as well as the documentation of possibly involved partitioning tools. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...