RHEL5 query the unknown File System Method on the device

Source: Internet
Author: User
Article Title: RHEL5 query the unknown file system method used on the device. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

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 ~] #

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.