Get BLKID of an unmounted volume in go
问题 I am trying to find out if there is a way to get details of blkid of an unmounted volume, through some native golang library. I am particularly interested in fstype of the volume 回答1: I don't think there is a native library - I couldn't find one. I think you've got 3 choices Shell out to the blkid utility Write a cgo interface to libblkid Trawl through the libblkid source and re-implement it in go 1 is very easy. 2 is harder. 3 might be easy depending on exactly which feature of blkid you