zoukankan      html  css  js  c++  java
  • centos 使用windows7 存储

    1. 在Windows7上创建一个带密码的用户,如disk

    2. 创建一个文件夹,如 D:centos-disk2

    3. 选中此文件夹,点击上方的  共享 -> 特定用户, 添加disk用户,改为 读写 权限

    4、在Linux下安装samba-client客户端

    # yum install samba-client

    5、安装cifs-utils软件包

    # yum install cifs-utils

    6、在Linux下创建一个挂载点

    # mkdir  /mnt/Windows

    7、挂载Windows上的共享目录d: edhat_disk到Linux下的/mnt/Windows目录下

    # mount -t cifs -o username=tommy  //192.168.1.123/redhat_disk /mnt/Windows

    Enter password: 111111

    8、如果挂载成功,则可以进入/mnt/Windows下,新建一个文件,看看Windows上能否看见

    9、在/etc/fstab文件中,加入该共享目录的挂载信息

    //192.168.1.123/redhat_disk      /mnt/Windows    cifs    username=tommy,password=111111  0 0

    10、到此为止,Windows上的共享目录//192.168.1.123/redhat_disk就被成功挂载到了Linux上面了,并且Linux重启后,会自动挂载该目录到/mnt/Windows目录下

    ================================

    mount -t cifs -o username=disk //109.105.4.176/centos-disk /windows/e

    mount -t cifs -o username=disk //109.105.4.176/centos-disk2 /windows/d

     

    cat /etc/fstab
    ....
    //109.105.4.176/centos-disk       /windows/e    cifs   username=disk,password=qq77aa88   0 0
    //109.105.4.176/centos-disk2      /windows/d    cifs   username=disk,password=qq77aa88   0 0

  • 相关阅读:
    nodejs dateformat date-utils
    nodejs async
    nodejs dateformat date-utils
    nodejs timer block-timer timer-ease
    linux 修改 ssh 的端口号,启动hg服务
    linux 下添加 路由
    tkprof 命令行工具用法
    通过API删除库存货位
    使用FROM个性化修改标准FORM的LOV
    批量更新 ITEM 物料属性
  • 原文地址:https://www.cnblogs.com/mhc-fly/p/8831643.html
Copyright © 2011-2022 走看看