我制作了Linux分区映像(ext4)。问题在于分区很大(50GB),但是其上的数据却是3GB或4GB。
如何从该图像中删除可用空间,使其只有3-4GB?
感谢您的回答。
我在这里找到答案。https://superuser.com/questions/610819/how-to-resize-img-file-created-with-dd
e2fsck -f -y xxx.img resize2fs -M xxx.img
非常简单,可以使用。