& Nbsp; you can use the blkid command to query the file system type used on the device. Blkid is used to query information such as the file system type, LABEL, and UUID used by system block devices (including swap partitions. To use this command, you must install the e2fsprogs package. & Nbsp; for example, view/dev/s
You can use the blkid command to query the file system type used on the device. Blkid is used to query information such as the file system type, LABEL, and UUID used by system block devices (including swap partitions. To use this command, you must install the e2fsprogs package.
For example, to view the file system type used by the/dev/sda1 device, run the following command:
[Root @ cluster ~] # Blkid/dev/sda1
/Dev/sda1: LABEL = "/boot" UUID = "c19b003b-d9c1-474a-a043-b1469df189e0" SEC_TYPE = "ext2" TYPE = "ext3"
[Root @ cluster ~] #
Directly use blkid to list the types of mounted file systems in the current system, as shown below:
[Root @ cluster ~] # Blkid
/Dev/sda3: TYPE = "swap" LABEL = "SWAP-sda3"
/Dev/sda2: LABEL = "/" UUID = "eeaa7a8a-5ef5-4da0-9388-1e8b42b65125" SEC_TYPE = "ext2" TYPE = "ext3"
/Dev/sda1: LABEL = "/boot" UUID = "c19b003b-d9c1-474a-a043-b1469df189e0" SEC_TYPE = "ext2" TYPE = "ext3"
/Dev/hdc: LABEL = "RHEL/5.2 i386 DVD" TYPE = "iso9660"
[Root @ cluster ~] #