Quantcast
Channel: Method to test if disks in system are formatted - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 3

Answer by Jan for Method to test if disks in system are formatted

$
0
0

Depending on how you access the drives, you could use blkid -o list (deprecated) on them and then parse the output.
The command outputs, among other things, a fs_type label column, that shows the filesystem.

blkid -o list has been superseded be lsblk -f.


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>