Is there any way to remove free space of a partition ?
I want to build embedded os and i created disk image with dd command and patition this disk with fdisk .
my problem is , disk size is too big , I wan to create fixed size partition .
I mean my operating system rootfs is for example 200M and size of partition is for example 210M . How to remove 10M free space of this partition ?
tune2fs -l
and multiply theBlock count
value withBlock size
to get the exact size the filesystem occupies on its partition in bytes. – telcoM Mar 04 '19 at 08:31df
, most of the discrepancy between that and the partition size of 210M might be because of this. – telcoM Mar 04 '19 at 08:33