How to count number of mounts for a block device

Lintrollin

New Member
Joined
Mar 1, 2021
Messages
1
Reaction score
0
Credits
15
Hello new member here, I was wondering if there is a way to count the number of times block devices are mounted in the system. For DRBD resources for example, each resource is mounted once, is there an easy way to see how many times these resources (dev/drbdXX) have been mounted, like a command that would print a number?
Was thinking tune2fs -l | grep /dev/drbd* which might show mount count?
or a way to search the logs and count the number of times these resources have been mounted. Any help would be appreciated! Be easy on me I'm still mostly a beginner lol
 


how about just "mount"

or df -h
 

Members online


Top