Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2008 16:15:49 +0000
From:      "Christian Walther" <cptsalek@gmail.com>
To:        jamesh@lanl.gov
Cc:        Aryeh Friedman <aryeh.friedman@gmail.com>, freebsd-questions@freebsd.org
Subject:   Re: Shrinking a partition
Message-ID:  <14989d6e0801150815h3e006d45kaa7d3b91c2ae4cd0@mail.gmail.com>
In-Reply-To: <1200408956.619.59.camel@p25dual1.lanl.gov>
References:  <bef9a7920801150445l37c35886gfc3441a2f6a85057@mail.gmail.com> <1200408956.619.59.camel@p25dual1.lanl.gov>

next in thread | previous in thread | raw e-mail | index | archive | help
On 15/01/2008, James Harrison <jamesh@lanl.gov> wrote:
> On Tue, 2008-01-15 at 07:45 -0500, Aryeh Friedman wrote:
> > After installing FreeBSD and Vista (463 GB and 30 GB respectivally) I
> > found out I don't have enough free space on my 500 GB drive on the
> > vista partition.   How do I determine how much I can shrink the
> > FreeBSD partition by safely (by just moving the end sector in
> > fdisk(1))?
>
> I'd imagine that you could use the output of df -h to see how much
> you're using on the /usr partition and then shrink appropriately.
>
AFAIK UFS (as well as other Unix FS) don't simply start writing at the
beginning of a filesystem and continue until the end is reached. It's
possible that data is written near the end of a filesystem nearly
instantly after the first mount.
To make sure that you don't loose any data I'd dump the FS to a save
place and restore it afterwards using a LiveCD.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14989d6e0801150815h3e006d45kaa7d3b91c2ae4cd0>