To check the size of a block device in MB:
blockdev –getsize64 bdev1 | awk ‘{x=$1/1048576; print x; print “MB”}’
To check if a Block device is in use:
fuser -vam /dev/bdev1
To check the size of a block device in MB:
blockdev –getsize64 bdev1 | awk ‘{x=$1/1048576; print x; print “MB”}’
To check if a Block device is in use:
fuser -vam /dev/bdev1