Resizing file of ext2 filesystem (initrd)
From Joyrex Wiki
Assume un-gzipped file is named initrd
- Check disk blocks:
du -m initrd 5 initrd
- Use dd to expand it:
dd if=/dev/zero of=initrd size=1M seek=5 count=15
replace the seek value with the value given by du' - Check filesystem:
e2fsck -f initrd
- Resize the filesystem:
resize2fs initrd
- Check it:
du -m initrd 20 initrd

