All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term


Automatically mount a file system

Last updated:2021-11-15 20:30:27

This topic describes how to configure a Linux or Windows client to automatically mount a KFS file system after the client is restarted.

Automatically mount a file system in Linux

  1. Connect to the Linux client by using VNC or remote login.
  2. Run the following command to open the fstab file. Your account must have the root privileges to run this command.

    vi /etc/fstab
  3. After the /etc/fstab file is opened, press I to go to the Insert mode and add the mount command to the file.

    Mount a file system by using NFS 3.0:

    <IP address of the mount target>:/<FSID> <Directory name> nfs nfsvers=3,nolock,proto=tcp,hard,timeo=600,retrans=2,_netdev,noresvport 0 0

    Example: /mnt nfs nfsvers=3,nolock,proto=tcp,hard,timeo=600,retrans=2,_netdev,noresvport 0 0
  4. Press Esc and run the :wq command to save the modification. After you restart the client, the file system is automatically mounted to the client.

Note If an auto mount command is added to the fstab file but the file system to be mounted does not work normally, the Linux client may fail to start due to a mount failure. To resolve this issue, you can enter the single-user mode during system startup, delete the auto mount command from the fstab file, and then restart the Linux client.

Automatically mount a file system in Windows

  1. Connect to the Windows client by using VNC or remote login. In this example, Windows Server 2012 R2 is used.
  2. Right-click This PC and choose Map Network Drive from the shortcut menu.
  3. Select Reconnect at sign-in, as shown in the following figure. 4.png
  4. Click Finish.
On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen