From owner-freebsd-questions@FreeBSD.ORG Wed Dec 4 18:31:05 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C8B3319B for ; Wed, 4 Dec 2013 18:31:05 +0000 (UTC) Received: from mail-pd0-x22e.google.com (mail-pd0-x22e.google.com [IPv6:2607:f8b0:400e:c02::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A108F15F0 for ; Wed, 4 Dec 2013 18:31:05 +0000 (UTC) Received: by mail-pd0-f174.google.com with SMTP id y13so22902525pdi.19 for ; Wed, 04 Dec 2013 10:31:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7zXfnh/H0/liytnnl8O5amvkHQ0zawhj3ONvRFqHuio=; b=axsTc2Un+kCcl7zSqnFtShlWnF/KgXA3/0JzOpgklsgBI6Mzne8Wv0Gswz5hHvATJ3 351ulyqT9+x07jwuwIjFat4Xy48VO176BJ2c7SfoSXgtQVOcDFHIHjG/CZxGa+8T18p7 QpliGcecpgGd/ljUl7NxIMgmBP0d2OLNVYCAUilaSIVk5iy6uVhnlp7iDYBpHrvEyAU6 avQuSQnIDbLIW99L3xW6Idvt38Z+bbDZm9+5PogtRIqy059tqBPyoJ4yYTqoJfAjOG0a 0tiL/4/PhwOBBeDTDvlmuNtZJ/H2GYY3KfOjGdYO1cSr2CG9/UklCbzZUydsEqVAlCGj tOZw== MIME-Version: 1.0 X-Received: by 10.66.192.198 with SMTP id hi6mr84337655pac.87.1386181865299; Wed, 04 Dec 2013 10:31:05 -0800 (PST) Received: by 10.68.239.201 with HTTP; Wed, 4 Dec 2013 10:31:05 -0800 (PST) In-Reply-To: <20131204185343.232cb68e@X220.ovitrap.com> References: <20131204155907.38ab9f72@X220.ovitrap.com> <20131204111541.97550134.freebsd@edvax.de> <20131204185343.232cb68e@X220.ovitrap.com> Date: Wed, 4 Dec 2013 13:31:05 -0500 Message-ID: Subject: Re: Minimum size of a UFS partition From: "illoai@gmail.com" To: Erich Dollansky Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Dec 2013 18:31:05 -0000 On 4 December 2013 05:53, Erich Dollansky wrote: > Hi, > > On Wed, 4 Dec 2013 11:15:41 +0100 > Polytropon wrote: > >> 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 > > with the other tip, I came to a size of 1MB for the given application. > > Erich A bit of experimentation: # mdconfig -s 2048 md0 # newfs -O 1 -b 4096 -f 4096 -i 16384 -s 4 /dev/md0 Filesystem size 0 < minimum size of 8 # newfs -O 1 -b 4096 -f 4096 -i 16384 -s 40 /dev/md0 Filesystem size 5 < minimum size of 8 # newfs -O 1 -b 4096 -f 4096 -i 16384 -s 64 /dev/md0 /dev/md0: 0.0MB (64 sectors) block size 4096, fragment size 4096 using 1 cylinder groups of 0.03MB, 8 blks, 32 inodes. super-block backups (for fsck_ffs -b #) at: 32 first cylinder group ran out of space # newfs -O 1 -b 4096 -f 4096 -i 16384 -s 80 /dev/md0 /dev/md0: 0.0MB (80 sectors) block size 4096, fragment size 4096 using 1 cylinder groups of 0.04MB, 10 blks, 32 inodes. super-block backups (for fsck_ffs -b #) at: 32 first cylinder group ran out of space # newfs -O 1 -b 4096 -f 4096 -i 16384 -s 96 /dev/md0 /dev/md0: 0.0MB (96 sectors) block size 4096, fragment size 4096 using 1 cylinder groups of 0.05MB, 12 blks, 32 inodes. super-block backups (for fsck_ffs -b #) at: 32 So, the answer is: pretty small! Cheers. -- --