View the file system format used in Linux

Source: Internet
Author: User
Tags what file system

Environment: centos 5.5 final

Common Linux file systems include: JFS, reiserfs, ext, ext2, ext3, iso9660, XFS, Minx, msdos, umsdos, vfat, NTFS, HPFs, NFS, SMB, sysv, Proc, etc.
So old. If you dig the root problem, it will be out of my personal range.

What file system does your system support. Ask your system.

One: CAT/proc/filesystems 《This method is to be determined

"

It is not very difficult to use this list. However, we can see ext2 and ext3 in it.

Two types: Enter/lib/modules/2.6.18-194. EL5/kernel/fs, and then use the LS command. The LS-l list is better-looking :)

The 2.6.18-194. EL5 in the path is tested by yourself due to different versions. Use Ubuntu 8.04.2 on Unix-center as the column. If this method is used, enter any one of the three directories (2.6.22-14-generic 2.6.24-21-generic 2.6.24-22-generic) under/lib/modules, the kernel/fs path after ^ _ * remains unchanged. After entering, execute ls.

 

 

 

View the file format of your system (in centos 5.5 final environment)

1. CAT/etc/fstab. As follows:


 

Ii. df-t-h

 

 

Use DF-t only. In this way, the file system format can be listed. However, the subsequent capacity display is not very nice. As shown in:

 


 

Iii. Parted (root permission required)

 

Parted, and then execute P (print)

 

 

 

 

Compare several viewing methods. It seems that DF is more convenient and intuitive. Parted is a partition tool in GNU. Viewing a file system is only one of the functions. The man DF view shows that the description is as follows:

DF-report file system disk space usage

 

There is a parameter T.

-T, -- print-type

Print file system type // is the required function. Hey

 

You can also list the specified file system types:

 

-T, -- type = Type

Limit listing to file systems of type

 


In this environment, DF -- type = ext3

. Execution result

 

 


Also, this parameter is the opposite of-t. It feels like selecting and reselect. Hoho :)

 

-X, -- exclude-type = Type

Limit listing to file systems not of type

 

 


Then the DF statement is written. Hey

End :)

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.