[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help on investigating partition-related changes



Le 07/08/2016 à 14:43, Parsa Hassan Abadi a écrit :

Is there any way to see if a partition has been resized or shrunk? Any log, any
command, anything??

AFAIK there is no direct way.

The only idea which comes into my mind is to examine the contents (e.g. filesystem) metadata of the partition. If the size recorded in the metadata does not match the size of the partition, it may have been resized. Even if the contents has been resized too, some metadata may not have been updated to reflect the new size. For instance, the number of inodes in an ext2/3/4 filesystem is fixed at the creation and does not change when the filesystem is resized. So, assuming the filesystem was created with the default values you can compare the output of e2mkfs in simulation mode and the output of tune2fs -l.


Reply to: