See Filesystems In Linux

Cpanel/Whm License $3/mo Plesk License $10/mo Cloudlinux License $5/mo

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

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.

Related posts

Zuckerberg to Study Crypto in Quest to Fix Facebook

SXI ADMIN

Zooko Wilcox Envisions ‘Ambitious’ Changes for Zcash Cryptocurrency

SXI ADMIN

ZombieChain Comes Alive: Can Ethereum Sidechains Save the Dapps?

SXI ADMIN

ZoKrates Seeks to Bring Best of Zcash to Ethereum with Devcon Debut

SXI ADMIN

Zk-Starks? New Take on Zcash Tech Could Power Truly Private Blockchains

SXI ADMIN

Zk-Snarks Everywhere: Ethereum Privacy Tech Hits Tipping Point

SXI ADMIN

ZipZap to Offer Cash-for-Bitcoin Service at 28,000 UK Locations

SXI ADMIN

ZipZap Resumes Cash-to-Bitcoin Services for UK Shoppers

SXI ADMIN

ZipZap Raises $1.1 Million to Grow Global Bitcoin Payments Network

SXI ADMIN

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More