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

  • 相关阅读:
    简易高重用的jdbcutils工具封装实现类以及简易连接池实现
    http header 具体解释
    zoj 3888 Twelves Monkeys 二分+线段树维护次小值
    hyperLink的定制
    document.body.clientHeight的取值
    在循环中创建网页元素的问题
    mongo db 启动停止
    myeclipse 2014破解
    weblogic 集群部署时上传jsp不更新问题
    Spring classPath:用法
  • 原文地址:https://www.cnblogs.com/mhc-fly/p/8831643.html
Copyright © 2011-2022 走看看