CIFS shares show up in "df -l" output, which should exclude network mounts

Solution Verified - Updated -

Issue

  • The df -l command is supposed to exclude network shares:
  -l, --local
              limit listing to local file systems
  • However it does not always exclude CIFS shares:
 # df -kP
 Filesystem                      1024-blocks     Used Available Capacity Mounted on
 /dev/mapper/vg_unused-lv_root       8813300  1382648   6982960      17% /
 tmpfs                                251128        0    251128       0% /dev/shm
 /dev/vda1                            495844    56354    413890      12% /boot
 \\server.usersys.redhat.com/cifs   51606140 35952804  13031896      74% /mnt

 # df -kPl
 Filesystem                      1024-blocks     Used Available Capacity Mounted on
 /dev/mapper/vg_unused-lv_root       8813300  1382648   6982960      17% /
 tmpfs                                251128        0    251128       0% /dev/shm
 /dev/vda1                            495844    56354    413890      12% /boot
 \\server.usersys.redhat.com/cifs   51606140 35952804  13031896      74% /mnt

Environment

  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content