User Tools

Site Tools


mywiki:linux:mount_filesystem

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
mywiki:linux:mount_filesystem [2021/07/10 14:28] – created shaoguohmywiki:linux:mount_filesystem [2022/04/02 17:29] (current) – external edit 127.0.0.1
Line 2: Line 2:
  
 ====== NFS ====== ====== NFS ======
 +refer to https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nfs-mount-on-ubuntu-20-04
  
 +===== Mounting a remote file system via CLI command =====
 +sudo mount host:/var/nfs/general /nfs/general
 +
 +For example:
 +<file>
 +   sudo mount 10.226.45.1:/var/nfs/general /nfs/general
 +</file>  
 +
 +umount: sudo umount /nfs/general
 +
 +===== Mounting a remote file system on startup =====
 +<file>
 +# file: /etc/fstab
 +host_ip:/home  /nfs/home  nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0
 +
 +</file>
  
  
 ====== sshfs ====== ====== sshfs ======
 +refer to https://www.redhat.com/sysadmin/sshfs
 +
 +===== Mounting a remote file system via CLI command =====
 +sshfs [user@]host_server:[dir] mountpoint [options]
 +
 +For example:
 +<file>
 +   sshfs chris@10.226.45.1:/home/chris/sharefold   ~/mnt -o reconnect
 +</file>
 +
 +umount: fusermount -u ~/mnt
 +
 ===== Mounting a remote file system on startup ===== ===== Mounting a remote file system on startup =====
 <file> <file>
 # file: /etc/fstab # file: /etc/fstab
-user_id@host_server:/xx/xx/ /yy/mount_point **sshfs**+user@host_server:/xx/xx/   /yy/mount_point sshfs 
 + 
 +user@host_server:/xx/xx/   /yy/mount_point fuse defaults,users,noauto,idmap=user,Ciphers=arcfour,Compression=no,reconnect 0 0
 </file> </file>
mywiki/linux/mount_filesystem.1625898493.txt.gz · Last modified: (external edit)