mywiki:linux:mount_filesystem
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| mywiki:linux:mount_filesystem [2021/07/10 14:28] – created shaoguoh | mywiki:linux:mount_filesystem [2022/04/02 17:29] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ====== NFS ====== | ====== NFS ====== | ||
| + | refer to https:// | ||
| + | ===== Mounting a remote file system via CLI command ===== | ||
| + | sudo mount host:/ | ||
| + | |||
| + | For example: | ||
| + | < | ||
| + | sudo mount 10.226.45.1:/ | ||
| + | </ | ||
| + | |||
| + | umount: sudo umount / | ||
| + | |||
| + | ===== Mounting a remote file system on startup ===== | ||
| + | < | ||
| + | # file: /etc/fstab | ||
| + | host_ip:/ | ||
| + | |||
| + | </ | ||
| ====== sshfs ====== | ====== sshfs ====== | ||
| + | refer to https:// | ||
| + | |||
| + | ===== Mounting a remote file system via CLI command ===== | ||
| + | sshfs [user@]host_server: | ||
| + | |||
| + | For example: | ||
| + | < | ||
| + | sshfs chris@10.226.45.1:/ | ||
| + | </ | ||
| + | |||
| + | umount: fusermount -u ~/mnt | ||
| + | |||
| ===== Mounting a remote file system on startup ===== | ===== Mounting a remote file system on startup ===== | ||
| < | < | ||
| # file: /etc/fstab | # file: /etc/fstab | ||
| - | user_id@host_server:/ | + | user@host_server:/ |
| + | |||
| + | user@host_server:/ | ||
| </ | </ | ||
mywiki/linux/mount_filesystem.1625898493.txt.gz · Last modified: (external edit)
