enlarge a filesystem
Matthew Seaman
m.seaman at infracaninophile.co.uk
Sat Sep 10 08:17:36 UTC 2011
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.
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matthew at infracaninophile.co.uk Kent, CT11 9PW
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20110910/4f5bf81a/signature.pgp
More information about the freebsd-questions
mailing list