From: Mark Kilmartin (mrk at domain renre-europe.com)
Date: Tue 05 Jun 2001 - 14:10:03 IST
AFAIK there are utils to grow a Reiserfs filesystem while it is mounted
and in use. resize_reiserfs. This won't shrink a mounted FS.
Okay a little bit of digging.
resize2fs will grom and shrink a ext2 FS not sure if it works on line.
I was looking at this a while ago and I believe that the only way to grom
ext2 FS online was tohave applied a kernel patch before hand.
Neither of the above packages will resize your partitions though.
You could take a look at parted for the partition resizing.
<danger> The other option here is to use fdisk.
There are some tricks in which you delete a partition and create a bigger
one starting at the same point.
I have never never never tried this and would never try it on important
data.
The resize2fs man page mentions this.
</danger>
MArk
On Tue, 5 Jun 2001, Tor wrote:
> AFAIK there is some utilities that can resize mounted filesystems (ext2
> anyway). Can't remember the names right now, but I came across some when
> messing with LVM.
>
> Well..As per usual sourceforge and google is your friends.
>
> But you might not want to resize mounted filesystems on a production
> server.. ;P
>
>
> > > Is it possible to resize a partition without losing all data on it ?
> > > I have 1.2 GB spare on hdb1 and would like to create a new partition
> > > about 1 GB in size on the disk.
> >
> > I'm confused - you ask about resizing a partition, and then you say that'd
> > you like to create a new partition - which is it ? If you'd simply like to
> > create a new partition then away you go. If OTOH you want to resize a
> > partition i.e. to make an existing partition bigger then you can do this
> > iff
> > the partition which you want to enlarge is contiguous with the free space.
> > Also, you can't resize a mounted partition, so if your thinking of resizing
> > / or /usr, forget it unless you boot from another medium. The ILUG BBC has
> > both ext2resize and resize_reiserfs binaries (though no manuals, so
> > you'd
> > have to read up on the tools elsewhere).
> >
> >
> >
> > Regards,
> >
> >
> > Niall
>
>
> -Tor
>
>
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:10:33 GMT