• linux命令: mount


    mount使用示例:

    #mkdir -p /mnt/usbhd1 注:建立目录用来作挂接点(mount point) 

    #mount -t ntfs /dev/sdc1 /mnt/usbhd1 

    (-t ntfs )是可选项。

    1. man mount:

    SYNOPSIS
    mount [-lhV]

    mount -a [-fFnrsvw] [-t vfstype] [-O optlist]

    mount [-fnrsvw] [-o option[,option]...] device|dir

    mount [-fnrsvw] [-t vfstype] [-o options] device dir

    2. 用mount挂载远程服务器网络硬盘 http://blog.csdn.net/longyi_java/article/details/8696887

    环境:

    服务器:192.168.20.204

    客户端:192.168.20.203

    1. 在服务器配置/etc/export  添加可以共享的文件夹和允许的客户端地址

    /home/dir 192.168.20.203(rw,no_root_squash,async)

    要加上no_root_squash,async,不然会出现reason given by server: Permission denied

    重启nfs服务器

    service nfs restart

    2. 在客户端运行

    mkdir -p /mnt/dir    创建挂载点

    mount -t nfs 192.168.20.204:/home/dir /home/dir

    一定要先创建挂载点,不然会出现mount point does not exist的错误

    3. RPC Error: Program not registered错误

    服务没启动。。

    运行service nfs restart

  • 相关阅读:
    Poj-1088-滑雪
    Poj-2250-Compromise
    CF
    KMP算法
    01背包
    NY 269 VF
    PHP--1+2+3……100=?
    PHP企业发放的奖金--if...elseif...
    2019年中级考试题(附答案)
    PHP的IF条件语句-- 输入一个数字进行判断等级
  • 原文地址:https://www.cnblogs.com/mylinux/p/5148066.html
Copyright © 2020-2023  润新知