• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Linux OS Service ‘NetFS’

by admin

Service Name

NetFS

Description

NetFS is a boot-time script used to mount or unmount Network File System (NFS), Samba (SMB/CIFS), and Netware (NCP) file systems. The script is run once at boot time to scan for network-related file system mounts: nfs, smb, cifs, or ncp types.

Service administration

To view the options available for administrating the netfs service use the service command without any options.

# service netfs
Usage: /etc/init.d/netfs {start|stop|restart|reload|status}

The chkconfig tool can be used to determine or set the levels of startup.

# /sbin/chkconfig --list netfs
netfs           0:off   1:off   2:off   3:on    4:on    5:on    6:off

The netfs script is executed only if the networking subsystem is enabled.

umount all NFS/CIFS/SMB filesystems using NetFS service

NetFS provides a simple way to unmount all networked file systems while leaving all local networking services. For example to umount all the network filesystems mounted stop the NetFS service.

# service netfs stop

To view the status of the network mount points use the below command:

# service netfs status
Configured NFS mountpoints: 
/nfs_data
Active NFS mountpoints: 
/nfs_data

Filed Under: Linux, Linux Services

Some more articles you might also be interested in …

  1. cpio: command not found
  2. How to disable NetworkManager on CentOS / RHEL 7
  3. Configuring Persistent Storage in CentOS/RHEL 5,6 for Single Path using udev rules
  4. partx Command Examples in Linux
  5. How to change the Default Log Directory(/var/log) in Rsyslog for CentOS/RHEL 6,7
  6. How to create and mount filesystems in Linux
  7. nmap Command Examples in Linux
  8. a2dissite: command not found
  9. envsubst: command not found
  10. lscpu: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright