Subject: Re: Shrinking a partition
To: Rakhesh Sasidharan <rakhesh@cse.iitd.ernet.in>
From: Mipam <mipam@ibb.net>
List: netbsd-help
Date: 02/05/2001 16:55:07
On Mon, Feb 05, 2001 at 10:14:31PM +0530, Rakhesh Sasidharan wrote:
> I have a 10 GB partition, of which around 8 GB is used.  Now, I have to
> shrink that partition to 9GB due to certain reasons (more specifically,
> remove 1 GB from the end of the disk). I edited my disklabel, and reduced
> the size to 9GB, and (surprisingly) things seem to work alright.  Is this
> OK, or could I run into probs later on ?  Or is there some way to move all
> the data to the beginning of the partition, and then do the above ? (It is
> an ext2fs partition, on an i386; and I also have Linux installed, if
> that might help).

Other answers have allrdy been given on this.
You changed the partition, but you didnt change the filesystem accordingly.
So as Manuel and Jeremy allrdy mentioned it's very likely you'll have a problem
soon.
However, there is a proprietary program to shrink extended 2 partitions
which'll also adjust the fs accordingly, its called partition magic.
Had to work with it years ago, and i heared a year ago it succesfully
dealt with ext2 partitions as well.
I also heared of partit from GNU which could do the same.
However,i dont know if that's yet stable or not.
Hope it helps,

Mipam.