Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Dec 2013 13:31:05 -0500
From:      "illoai@gmail.com" <illoai@gmail.com>
To:        Erich Dollansky <erichsfreebsdlist@alogt.com>
Cc:        "freebsd-questions@freebsd.org" <questions@freebsd.org>
Subject:   Re: Minimum size of a UFS partition
Message-ID:  <CAHHBGkqduFgWCv99ekfyY6bs9tEkktBhrP%2BXEoJq29XTNFqdEw@mail.gmail.com>
In-Reply-To: <20131204185343.232cb68e@X220.ovitrap.com>
References:  <20131204155907.38ab9f72@X220.ovitrap.com> <20131204111541.97550134.freebsd@edvax.de> <20131204185343.232cb68e@X220.ovitrap.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 4 December 2013 05:53, Erich Dollansky <erichsfreebsdlist@alogt.com> wrote:
> Hi,
>
> On Wed, 4 Dec 2013 11:15:41 +0100
> Polytropon <freebsd@edvax.de> 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.

-- 
--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHHBGkqduFgWCv99ekfyY6bs9tEkktBhrP%2BXEoJq29XTNFqdEw>