User Tools

Site Tools


filesystem:determine_file_systems_type

This is an old revision of the document!


Filesystem - Determine File Systems Type

Using **dt**.

df -T /

Result:

Filesystem                  Type  1K-blocks       Used Available Use% Mounted on
/dev/mapper/ubuntu--vg-root ext4 1920299296 1659133892 163549740  92% /

Using **fsck**.

fsck -N /

Result:

fsck from util-linux 2.31.1
[/sbin/fsck.ext4 (1) -- /] fsck.ext4 /dev/mapper/ubuntu--vg-root 

Using **lsblk**.

The lsblk command is used for displaying the block devices in a Linux machine. You can add the -f flag for telling lsblk to show the file system type.

lsblk -f

Result:

NAME                  FSTYPE      LABEL UUID                                   MOUNTPOINT
loop0                 squashfs                                                 /snap/core/7917
loop1                 squashfs                                                 /snap/gnome-characters/359
loop2                 squashfs                                                 /snap/netbeans/18
loop3                 squashfs                                                 /snap/pycharm-community/167
loop4                 squashfs                                                 /snap/core18/1265
loop5                 squashfs                                                 /snap/core/8039
loop6                 squashfs                                                 /snap/gnome-3-26-1604/97
loop7                 squashfs                                                 /snap/gnome-3-28-1804/91
loop8                 squashfs                                                 /snap/core18/1223
loop9                 squashfs                                                 /snap/gtk-common-themes/1313
loop10                squashfs                                                 /snap/gnome-calculator/536
loop11                squashfs                                                 /snap/gnome-3-28-1804/110
loop12                squashfs                                                 /snap/pycharm-community/163
loop13                squashfs                                                 /snap/gnome-characters/367
loop14                squashfs                                                 /snap/gnome-system-monitor/111
loop15                squashfs                                                 /snap/gnome-3-26-1604/98
loop16                squashfs                                                 /snap/gnome-logs/73
loop17                squashfs                                                 /snap/gtk-common-themes/1353
loop18                squashfs                                                 /snap/gnome-system-monitor/107
loop19                squashfs                                                 /snap/gnome-logs/81
loop20                squashfs                                                 /snap/netbeans/10
loop21                squashfs                                                 /snap/gnome-calculator/544
sda                                                                            
├─sda1                vfat              6FE9-28C1                              /boot/efi
└─sda2                LVM2_member       CbUWCI-RGrO-xTVQ-mrNL-YVHf-k8aq-ueMTgd 
  ├─ubuntu--vg-root   ext4              dcf9c103-2998-4698-aec6-b524aa1db1f0   /
  └─ubuntu--vg-swap_1 swap              618aa54e-e6f1-4c22-826d-23bd981be108   [SWAP]

Using **mount**.

mount | grep "^/dev"

Result:

/dev/mapper/ubuntu--vg-root                         on      /                                                                                                       type                                 ext4             (rw,relatime,errors=remount-ro,data=ordered)
/dev/sda1                                           on      /boot/efi                                                                                               type                                 vfat             (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)

Using **blkid**.

blkid /dev/sda1

Result:

/dev/sda1: UUID="6FE9-28C1" TYPE="vfat" PARTUUID="8e53314c-0814-46cd-9f13-c2bb2b7a14b6"
filesystem/determine_file_systems_type.1574625053.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki