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=
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

Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post

How to Make Website WCAG Compliant?

Next Post

Link download Kali Linux 2020.1 (ISO + Torrent)

Related Posts