Skip to main content

Mounting a Synology NAS


เปิดใช้งาน NFS บน Synology NAS

 

Mount

https://dyclassroom.com/reference-linux/linux-commands-working-with-files-and-directories

สร้าง folder เพื่อใช้ mount

mkdir /mnt/media/mediaserver


ทดลอง mount

# ถ้า folder มีช่องว่างให้ใส่ ''
mount 192.168.1.100:/volume1/'Media Server' /mnt/media/mediaserver


สร้างไฟล์เก็บค่าเพื่อให้ทำงานตอน boot ทุกครั้งโดยใช้ nano เข้าไปใน

nano /etc/fstab


เพิ่มคำสั่ง mount

# <file system>     <dir>    			<type>   <options>  <dump>	<pass>
192.168.1.100:/volume1/Media /mnt/media  nfs      defaults    0       0

กด ctrl+x เพื่อปิด หลังจากนั้นกด y เพื่อเซฟทับ และ enter เพื่อตกลง



mount drive ด้วยคำสั่ง

mount -a


https://acceptdefaults.com/2020/03/16/mounting-a-synology-share-in-ubuntu/
https://linuxize.com/post/how-to-mount-an-nfs-share-share-in-linux/
https://forum.proxmox.com/threads/vm-and-lxc-mount-cifs-problem-solved.64157/