See Filesystems In Linux

How do I see filesystem status in Linux?

You can use the following commands to see current status of file systems in Linux.

mount command

To display information about mounted file systems, enter:
$ mount | column -t
Sample outputs:

/dev/sda5         on  /                            type  ext3                   (rw,errors=remount-ro)
proc              on  /proc                        type  proc                   (rw,noexec,nosuid,nodev)
none              on  /sys                         type  sysfs                  (rw,noexec,nosuid,nodev)
none              on  /sys/fs/fuse/connections     type  fusectl                (rw)
none              on  /sys/kernel/debug            type  debugfs                (rw)
none              on  /sys/kernel/security         type  securityfs             (rw)
none              on  /dev                         type  devtmpfs               (rw,mode=0755)
none              on  /dev/pts                     type  devpts                 (rw,noexec,nosuid,gid=5,mode=0620)
none              on  /dev/shm                     type  tmpfs                  (rw,nosuid,nodev)
none              on  /var/run                     type  tmpfs                  (rw,nosuid,mode=0755)
none              on  /var/lock                    type  tmpfs                  (rw,noexec,nosuid,nodev)
none              on  /lib/init/rw                 type  tmpfs                  (rw,nosuid,mode=0755)
binfmt_misc       on  /proc/sys/fs/binfmt_misc     type  binfmt_misc            (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon  on  /home/vivek/.gvfs            type  fuse.gvfs-fuse-daemon  (rw,nosuid,nodev,user=vivek)
nas01:/mp3        on  /nfs                         type  nfs                    (rw,addr=192.168.3.1)
none              on  /proc/fs/vmblock/mountPoint  type  vmblock                (rw)

df command

To find out file system disk space usage, enter:
$ df
$ df -H

Sample outputs:

Filesystem             Size   Used  Avail Use% Mounted on
/dev/sda5              477G   167G   285G  37% /
none                   4.2G   402k   4.2G   1% /dev
none                   4.2G   2.1M   4.2G   1% /dev/shm
none                   4.2G   312k   4.2G   1% /var/run
none                   4.2G      0   4.2G   0% /var/lock
none                   4.2G      0   4.2G   0% /lib/init/rw
nas01:/mp3             6.0T   127G   5.8T   3% /nfs

du Command

Use the du command to estimate file space usage, enter:
$ du
$ du /home
$ du -ch /home

List the Partition Tables

Type the fdisk command as follows (must be run as root):
# fdisk -l
# fdisk -l /dev/sda

Sample outputs:

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf0000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1992    15998976   82  Linux swap / Solaris
/dev/sda2            1993       60802   472384513    5  Extended
/dev/sda5            1993       60802   472384512   83  Linux

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 0 comments... add one


CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
0 comments… add one

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum