Access points simplify application access to NAS file systems by providing application-specific entry points with enforced permissions and root directories. This guide shows how to mount a General-purpose NAS NFS file system using an access point from a Linux ECS instance.
Prerequisites
-
A General-purpose NFS file system: Active and created in your region. See Create a file system.
-
An access point: Configured with appropriate permissions. See Create an access point.
-
A Linux ECS instance: Must be in the same region as the file system with Internet access (EIP or public IP) to download the NAS client. See Creation methods.
Mount via access point
-
Connect to the ECS instance. See Connection method overview.
ImportantEnsure your ECS instance has an EIP or public IP address to download the NAS client.
-
Install the NAS client.
Alibaba Cloud Linux
-
Download the NAS client.
wget https://aliyun-encryption.oss-cn-beijing.aliyuncs.com/aliyun-alinas-utils-1.3-0.20241223174338.6bfadb.al7.noarch.rpm -
Install the NAS client.
sudo yum install aliyun-alinas-utils-*.rpm -
Verify installation.
which mount.alinasA returned path (e.g.,
/usr/bin/mount.alinas ) indicates successful installation.
CentOS
-
Download the NAS client.
-
CentOS 7.x
wget https://aliyun-encryption.oss-cn-beijing.aliyuncs.com/aliyun-alinas-utils-1.3-0.20241223174338.6bfadb.el7.noarch.rpm -
CentOS 8.x
wget https://aliyun-encryption.oss-cn-beijing.aliyuncs.com/aliyun-alinas-utils-1.3-0.20241223174338.6bfadb.el8.noarch.rpm
-
-
Install the NAS client.
sudo yum install aliyun-alinas-utils-*.rpm -
Verify installation.
which mount.alinasA returned path indicates successful installation.

Red Hat Enterprise Linux
-
Download the NAS client.
-
Red Hat Enterprise Linux 7.x
wget https://aliyun-encryption.oss-cn-beijing.aliyuncs.com/aliyun-alinas-utils-1.3-0.20241223174338.6bfadb.el7.noarch.rpm -
Red Hat Enterprise Linux 8.x
wget https://aliyun-encryption.oss-cn-beijing.aliyuncs.com/aliyun-alinas-utils-1.3-0.20241223174338.6bfadb.el8.noarch.rpm
-
-
Install the NAS client.
sudo yum --disablerepo=rhui-rhel-7-server-rhui-extras-debug-rpms install aliyun-alinas-utils-*.rpm -
Verify installation.
which mount.alinasA returned path indicates successful installation.

Ubuntu and Debian
-
Download the NAS client.
wget https://aliyun-encryption.oss-cn-beijing.aliyuncs.com/aliyun-alinas-utils-1.3-0.20241223174338.6bfadb.deb -
Install the NAS client.
sudo apt update sudo dpkg -i aliyun-alinas-utils-*.deb sudo apt-get install -f sudo dpkg -i aliyun-alinas-utils-*.deb -
Verify installation.
which mount.alinasA returned path indicates successful installation.

-
-
Mount the file system.
Without RAM policy
-
NFSv3
sudo mount -t alinas -o tls,vers=3 <access-point>:/ /mnt -
NFSv4.0
sudo mount -t alinas -o tls,vers=4.0 <access-point>:/ /mntParameter descriptions:
Parameter
Description
tls
Enables Transport Layer Security (TLS). Required for access point connections.
<access-point>:/
Format: <Domain name of the access point>:<Relative path of the access point>. Replace with actual values.
-
Domain name of the access point: Log on to the NAS console. Choose . On the File System List page, click Manage in the Actions column. On the Mount Targets page, click the Access Point tab to view the domain name. See View the domain name of an access point. Example:
ap-BLC2mN****.9e7de4b923-efr27.cn-zhangjiakou.nas.aliyuncs.com. -
Relative path of the access point: Enter
/.NoteExample: If the access point root directory is
/test, using/mounts directly to/test. Using a relative path/path/to/dirmounts to/test/path/to/dir. Ensure/test/path/to/direxists before mounting.
/mnt
Mount directory on the ECS instance.
Must be an existing subdirectory such as /mnt.
-
With RAM policy
-
Configure RAM credentials.
-
Create the credentials file.
touch /etc/aliyun/alinas/.credentials -
Add your credentials.
vi /etc/aliyun/alinas/.credentials-
RAM user
[NASCredentials] accessKeyID = your_accesskey_id accessKeySecret = your_accesskey_secretReplace
your_accesskey_idandyour_accesskey_secretwith your credentials. Ensure the access point client policy is attached to the RAM user. See (Optional) Configure a policy for the access point client and How do I obtain an AccessKey pair? -
RAM role
[NASCredentials] accessKeyID = your_accesskey_id accessKeySecret = your_accesskey_secret securityToken = your_security_tokenReplace
your_accesskey_id,your_accesskey_secret, andyour_security_tokenwith your RAM role credentials. Ensure the access point client policy is attached to the role. See (Optional) Configure a policy for the access point. Call AssumeRole to obtain the STS token and credentials.
-
-
-
Mount the NFS file system.
-
NFSv3
sudo mount -t alinas -o tls,vers=3,ram <access-point>:/ /mnt -
NFSv4.0
sudo mount -t alinas -o tls,vers=4.0,ram <access-point>:/ /mntParameter descriptions:
Parameter
Description
tls
Enables TLS. Required for access point connections.
ram
Uses RAM credentials from
/etc/aliyun/alinas/.credentials. To use a different path, addram_config_file=<path>to the mount options.<access-point>:/
Indicates <Domain name of the access point>:<Relative path of the access point>. Replace the variables with the actual values.
-
Domain name of the access point: Log on to the NAS console. Choose . On the File System List page, click Manage in the Actions column. On the Mount Targets page, click the Access Point tab to view the domain name. See View the domain name of an access point. Example:
ap-BLC2mN****.9e7de4b923-efr27.cn-zhangjiakou.nas.aliyuncs.com. -
Relative path of the access point: Enter
/.NoteFor example, when you create an access point, if you set the root directory of the access point to
/test, the access point is directly mounted to the/testdirectory of the NAS file system by using/. If you set the value to another relative path/path/to/dir, the access point is mounted to the/test/path/to/dirdirectory of the NAS file system. Make sure that the/test/path/to/dirdirectory already exists in the NAS file system.
/mnt
The mount directory that resides on the current ECS instance.
The value is a subdirectory such as /mnt of a Linux ECS instance. Make sure that the subdirectory exists in the on-premises file system.
-
-
-
-
Verify the mount.
Check mounted file systems:
mount -lExpected output: Similar output indicates successful mounting. Use
df -hto check capacity.
If mounting fails, see Troubleshoot mount issues for access points.
-
Test file system access.
Verify read and write access by creating test files and directories:
mkdir /mnt/dir1 mkdir /mnt/dir2 touch /mnt/file1 echo 'some file content' > /mnt/file2 ls /mnt -
Optional. Configure automatic mounting at startup.
Configure /etc/fstab to mount automatically at boot. Manual mounts disconnect when the instance restarts.
-
Edit the fstab file.
sudo nano /etc/fstabAdd the mount configuration:
-
Without RAM policy:
access-point:/ /mnt alinas _netdev,tls,vers=3 0 0 -
With RAM policy:
access-point:/ /mnt alinas _netdev,tls,vers=3,ram 0 0See Mount parameters. Key parameters used in the preceding examples:
Parameter
Description
_netdev
Prevents mounting before network initialization. Required for network file systems.
vers
NFS protocol version.
-
vers=3: Uses NFSv3.
-
vers=4.0: Uses NFSv4.
0 (the first value after ram)
Controls dump command backups. Non-zero enables backup. Default is 0 (no backup) for NAS.
0 (the second value after ram)
Controls fsck check order at startup. Default is 0 (no check) for NAS.
-
-
-
Run
rebootto restart the instance.NoteVerify manual mounting succeeds before restarting to avoid startup failures. After reboot, run
df -hto verify automatic mounting.
-
Troubleshoot mount issues for access points
What do I do if mount: unknown filesystem type 'alinas' is returned when I mount a file system?
Reinstall the client alinas-utils. See Install the NAS client.
What do I do if mount.nfs: an incorrect mount option was specified is returned when I mount a file system?
Cause
The mount command contains incorrect parameters or the NAS client version is outdated.
Solution
Verify mount command parameters. See Mount the NFS file system.
Check the NAS client version:
rpm -qa | grep alinas
If the version is earlier than 1.1-8, upgrade to the latest version.
What do I do if mount.nfs: Unknown error 521 is returned when I mount a file system?
Cause
-
The access point domain name is incorrect.
-
The permission group configuration is incorrect.
-
(With RAM policy) RAM credentials are missing or incorrect in .credentials.
-
The STS token has expired.
Solution
Verify the access point domain name in your mount command. See View the domain name of an access point.
Check permission group settings in the NAS console: File System List > select your file system > Manage > Mount Targets > Access Point tab > Manage. See Manage permission groups.
If using RAM policy:
Verify the mount command includes the ram parameter:
# NFSv3
sudo mount -t alinas -o tls,vers=3,ram <access-point>:/ /mnt
# NFSv4.0
sudo mount -t alinas -o tls,vers=4.0,ram <access-point>:/ /mnt
Verify AccessKey credentials in /etc/aliyun/alinas/.credentials. See Configure the RAM information.
Verify the RAM user has nas:ClientMount permission and the client policy is correctly configured. See Configure a policy for the access point client.
If using STS tokens, verify the token has not expired.
Next steps
-
Unmount a file system. See Unmount from a Linux ECS instance.
-
Configure directory quotas. See Manage directory quotas.
-
Enable an NFS access control list (ACL). See File Storage NAS NFS ACLs.
-
Back up data in a file system. See Back up a General-purpose NAS file system.