1

Long-term performance of a resized ext4 filesystem

view story
linux-howto

http://stackoverflow.com – In order to replicate a filesystem from a master image (for OS preinstallation purposes), I'm faced with two alternatives: Use dd to dump the master image to the destination device and then expand the filesystem with resize2fs. Create a new filesystem on the destination device and then copy the files using cpio, rsync or something equivalent. As it can be deduced, the destination partition is always larger than the master image. Also, the starting sector of the filesystem to be expanded will be the same, as the master image is not just a filesystem but a whole loopback device; so the whol (HowTos)