Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Sep 2011 09:17:23 +0100
From:      Matthew Seaman <>
To:        Jim Pazarena <>
Subject:   Re: enlarge a filesystem
Message-ID:  <>
In-Reply-To: <>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 10/09/2011 08:17, Jim Pazarena wrote:
> I have a drive with two filesystems.
> /dev/da1s1d  412G  337G   42G  89%
> and
> /dev/da1s1e 130G   19M  119G   0%
> I need the space on da1s1e.
> Does FreeBSD have any mechanism to enlarge
> s1d after I delete s1e ?

These are normal FreeBSD UFS2 filesystems?  Does the s1e partition
follow the s1d partition physically on the disk -- look at the partition
layout using bsdlabel to check that?

If so, then yes.  growfs(8) is your friend.  The procedure is to edit
the disk label to remove the s1e partition and extend the s1d partition
to fill the released space.  Then use growfs to expand the filesystem to
fill up the partition.

Of course, make sure your data is very well backed up before you do
anything else.  bsdlabel and growfs are tools that work at very low
levels of the system and that can cause complete mayhem with the
slightest mistake.



Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP:     Ramsgate
JID:               Kent, CT11 9PW

Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla -



Want to link to this message? Use this URL: <>