Skip to main content
English
Source Link
tink
  • 7.8k
  • 2
  • 27
  • 33

How can I determine used space of a block device that has no filesystem on it? If it helps, such device is managed via lvm.

I understand, that the concept of "used space" on a device without filesystem isn't a term, but what I mean underby "used space of a block device with no filesystem" is "number of blocks that differ from what was initially allocated when that block device was created".

How can I calculate it? Maybe there is some daemon that supports itthis? Or is my concept of used space of a block device with no filesystem is ill-formed and OS / hard-drives / SSD's may write some weird data to the block-device if there areis no filesystem which would impact the measurement?

How can I determine used space of a block device that has no filesystem on it? If it helps, such device is managed via lvm

I understand, that concept of "used space" on a device without filesystem isn't a term, but what I mean under "used space of a block device with no filesystem" is "number of blocks that differ from what was initially allocated when that block device was created".

How can I calculate it? Maybe there is some daemon that supports it? Or is my concept of used space of a block device with no filesystem is ill-formed and OS / hard-drives / SSD's may write some weird data to the block-device if there are no filesystem which would impact the measurement?

How can I determine used space of a block device that has no filesystem on it? If it helps, such device is managed via lvm.

I understand that the concept of "used space" on a device without filesystem isn't a term, but what I mean by "used space of a block device with no filesystem" is "number of blocks that differ from what was initially allocated when that block device was created".

How can I calculate it? Maybe there is some daemon that supports this? Or is my concept of used space of a block device with no filesystem ill-formed and OS / hard-drives / SSD's may write some weird data to the block-device if there is no filesystem which would impact the measurement?

edited tags
Link
Hauke Laging
  • 94.8k
  • 21
  • 133
  • 185
Source Link

Determine used space of a block device with no filesystem

How can I determine used space of a block device that has no filesystem on it? If it helps, such device is managed via lvm

I understand, that concept of "used space" on a device without filesystem isn't a term, but what I mean under "used space of a block device with no filesystem" is "number of blocks that differ from what was initially allocated when that block device was created".

How can I calculate it? Maybe there is some daemon that supports it? Or is my concept of used space of a block device with no filesystem is ill-formed and OS / hard-drives / SSD's may write some weird data to the block-device if there are no filesystem which would impact the measurement?