I have created an 200MB ext3 using the following commands.
dd if=/dev/zero of=./system.img bs=1000000 count=200
mkfs.ext2 ./system.img
tune2fs -j ./system.img
How can I resize it to 50MB and 300MB? The problem is I have only some binaries in my system. They are : badblocks,e2fsck, mke2fs, mke2fs.bin, parted, resize2fs, tune2fs
Best Answer
First, run a filesystem check,
e2fsck -f ./system.img
. Without this, it may proceed to enlarge the raw file, but fail to make any meaningful changes to the filesystem.To reduce the size of the file system:
To enlarge:
resize2fs automatically adjusts the file size for you.