How to get started with this program:

1. Type './configure'. This will configure ext2resize.

2. Type 'make'. This will compile ext2resize.

3. Create a filesystem to play with (as a file). It is necessary for
   you to make the file you will make the filesystem in bigger than
   the filesystem you are going to create, else you will not be able
   to grow it. (that's why count=16385)
 [john@yourbox ext2resize]$ dd if=/dev/zero of=testfilesystem bs=1k count=16385
 8193+0 records in
 8193+0 records out
 [john@yourbox ext2resize]$ /sbin/mke2fs testfilesystem 8193
 mke2fs 1.10, 24-Apr-97 for EXT2 FS 0.5b, 95/08/09
 testfilesystem is not a block special device.
 Proceed anyway? (y,n) y
 Linux ext2 filesystem format
 Filesystem label=
 2048 inodes, 8193 blocks
 409 blocks (4.99%) reserved for the super user
 First data block=1
 Block size=1024 (log=0)
 Fragment size=1024 (log=0)
 1 block group
 8192 blocks per group, 8192 fragments per group
 2048 inodes per group

 Writing inode tables: done
 Writing superblock and filesystem accounting information: done
 [john@yourbox ext2resize]$

4. Now, resize it! Let's enlarge it to 10000 blocks:

 [john@yourbox ext2resize]$ ./ext2resize testfilesystem 10000
 [john@yourbox ext2resize]$

Now you have a resized filesystem!


Lennert Buytenhek
<lbuijten@cs.leidenuniv.nl>
