Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Sep 2011 09:17:23 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Jim Pazarena <fquest@paz.bz>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: enlarge a filesystem
Message-ID:  <4E6B1D13.4090109@infracaninophile.co.uk>
In-Reply-To: <4E6B0EFD.1070007@paz.bz>
References:  <4E6B0EFD.1070007@paz.bz>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigDB05EF504E1AD0E13D95E124
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%
>=20
> I need the space on da1s1e.
>=20
> 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.

	Cheers,

	Matthew


--=20
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matthew@infracaninophile.co.uk               Kent, CT11 9PW


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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5rHRsACgkQ8Mjk52CukIz/uACcCIvZNztvDjbjSrv6RGsaQ8Rb
ZwcAnijY3si6IbRDbhxGnJC04+jK7F6S
=Rs51
-----END PGP SIGNATURE-----

--------------enigDB05EF504E1AD0E13D95E124--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?4E6B1D13.4090109>