How to determine filesystem size on a device?
Code:
[user1@localhost myvg]$ sudo lvdisplay Note: The filesystem size attached to logical volume, /dev/myvg/mylv, is NOT necessary the same as the attached filesystem on the mylv. For example, I can shrink the filesystem on mylv like so: sudo resize2fs /dev/myvg/mylv 60M I could use this: Quote:
But I am looking for generic command that can self-discover the filesystem type and spit out filesystem info. |
On Fedora anyway df will show logical volumes as well as disk partitions.
|
Quote:
Code:
parted -l Code:
df -ahT Hope that helps. Good luck. m.m. |
Quote:
|
The total block count reported by df is the number of allocatable data blocks in the filesystem. It does not include the metadata overhead, and will be smaller than the "Block count:" reported by tune2fs, which is truly the total size.
"fsadm -v -n resize {device}" will report both the current and maximum size for the filesystems it supports. |
Quote:
Same goes for: df -ahT And command: parted -l show raw size of partition. How do I determine filesystem allocated size on a partition or device without the device being mounted? |
Quote:
Quote:
|
All times are GMT -5. The time now is 01:47 PM. |