NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: resize_ffs isn't resizing



On Wed, 10 Dec 2025, Stephen Borrill wrote:

Now to resize the filesystem:
# resize_ffs -vy /dev/rdk1
Growing fs from 15140848 blocks to 20140848 blocks

Why 20140848, not 80563392? Even if I specify 80563392 with -s, it still only grows to 20140848.


The GPT output is 512-byte sectors; the FS tools show "blocks"--2048 here, it
looks like. So, (20140848 * 2048) / 512 = 80563392 sectors--which is what GPT
says.

dumpfs concurs:
ncg     217     size    20140848        blocks  19524526
bsize   16384   shift   14      mask    0xffffc000
fsize   2048    shift   11      mask    0xfffff800

I don't gain any free space:
Filesystem      1K-blocks         Used        Avail %Cap Mounted on
root_device      29355772     29326868     -1438884 105% /


Did you run fsck after resizing?

-RVP


Home | Main Index | Thread Index | Old Index