In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to view file system types under Linux. I hope you will get something after reading this article. Let's discuss it together.
1. Df-T command view
This is the simplest command, and the file system type is output in the Type column. You can only view mounted partitions and file system types. As follows:
[root@mylnx008 ~] # df-T / dev/sdbFilesystem Type 1K-blocks Used Available Use% Mounted on/dev/sdb xfs 315467264 4356404 311110860 / mysql [root@mylnx008 ~] # df-TFilesystem Type 1K-blocks Used Available Use% Mounted on/dev/sda2 xfs 30929148 22455300 847384873% / devtmpfs devtmpfs 1746644 0 17466444 0 / devtmpfs tmpfs 1757220 0 1757220 / dev/shmtmpfs tmpfs 1757220 24868 1732352 / runtmpfs tmpfs 1757220 01757220% / sys/fs/cgroup/dev/sda1 xfs 50858063024445556 13% / boot/dev/sdc1 ext4 1392030808699072 1234098407% / mnt/resourcetmpfs tmpfs 35144803514480% / run/user/1000/dev/ Sdb xfs 315467264 4356404 311110860 2% / mysql2 Parted-l command view
As shown below, the parted-l command outputs the file system type (File system), where the parameter l indicates that the partition information for all devices is listed.
[root@DB-Server ~] # parted-lModel: ATA ST500DM002-1BD14 (scsi) Disk / dev/sda: 500GBSector size (logical/physical): 512B/512BPartition Table: msdosNumber Start End Size Type File system Flags1 32.3kB 107MB 107MB primary ext3 boot2 107MB 500GB 500GB primary lvm3, blkid Command View
View the UUID and file system of the formatted partition. Use blkid to output the partition or the file system type of the partition and view the output of the TYPE field.
[root@DB-Server ~] # blkid/dev/mapper/VolGroup00-LogVol01: TYPE= "swap" / dev/mapper/VolGroup00-LogVol00: UUID= "1c0d5470-1503-4a18-b184-53483466d948" TYPE= "ext3" / dev/sda1: LABEL= "/ boot" UUID= "582b189c-396c-4da8-a7a3-1effaa3e4000" TYPE= "ext3" / dev/VolGroup00/LogVol00: UUID= "1c0d5470-1503-4a18-b184-53483466d948" TYPE= "ext3" / dev/VolGroup00/LogVol01: TYPE= "swap" / dev/mapper/VolGroup00-LogVol03: UUID= "f037ba1e -77a1-439a-8a10-b78c3cca68ec "SEC_TYPE=" ext2 "TYPE=" ext3 "[root@DB-Server] # blkid / dev/sda1/dev/sda1: LABEL=" / boot "UUID=" 582b189c-396c-4da8-a7a3-1effaa3e4000 "TYPE=" ext3 "4. Command lsblk-f to view
Some systems may not have this command and need to be installed. Note: lsblk-f can also view unmounted file system types
[root@mylnx008] # lsblk-fNAME FSTYPE LABEL UUID MOUNTPOINTfd0sda ├─ sda1 xfs b98659b2-5f8c-493e-9304-658905ef1391 / boot └─ sda2 xfs b7559ac5-b3a4-4b00-b98a-a2a2611806d0 / sdb xfs 6fcc5417-3c1b-4c71-aac7-344bac7654a4 / mysqlsdc └─ sdc1 ext4 1ad7da45-2366-4c4f-acd4-484600c4153a / mnt/resource
After reading this article, I believe you have a certain understanding of "how to check file system types under Linux". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.