File system format for viewing disk partitions under Linux

Source: Internet
Author: User

Df-t can only view the partitions and file system types that are already mounted.

Filesystem Type 1k-blocks used Available use% mounted on
/DEV/SDA1 ext4 20642428 3698868 15894984 19%/
Tmpfs Tmpfs 32947160 0 32947160 0%/dev/shm


Fdisk-l can display all mounted and non-mounted partitions, but does not display the file system type.

disk/dev/sda:299.4 GB, 299439751168 bytes
255 heads, Sectors/track, 36404 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk IDENTIFIER:0X000576DF

Device Boot Start End Blocks Id System
/DEV/SDA1 * 1 2611 20971520 Linux
/dev/sda2 2611 3134 4194304, Linux Swap/solaris
/dev/sda3 3134 36404 267248282-up Linux


Parted-l can view the file system types that are not mounted, and which partitions are not yet formatted.

Model:lsi mr9240-8i (SCSI)
Disk/dev/sda:299gb
Sector size (logical/physical): 512b/512b
Partition Table:msdos

Number Start End Size Type File system Flags
1 1049kB 21.5GB 21.5GB primary ext4 boot
2 21.5GB 25.8GB 4295MB primary linux-swap (v1)
3 25.8GB 299GB 274GB primary ext4


Lsblk-f can also view the file system types that are not mounted.

NAME fstype LABEL UUID mountpoint
Sda
|-SDA1 ext4 c4f338b7-13b4-48d2-9a09-8c12194a3e95/
|-sda2 swap 21ead8d0-411f-4c23-bdca-642643aa234b [swap]
'-sda3 ext4 2872b14e-45va-461e-8667-43a6f04b7bc9

File system format for viewing disk partitions under Linux

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.