How to count number of mounts for a block device

Lintrollin

New Member
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
 


$100 Digital Ocean Credit
Get a free VM to test out Linux!

Staff online

Members online


Top