zoukankan      html  css  js  c++  java
  • 虚拟机Oracle VM VirtualBox linux系统如何访问windows共享文件夹

    1、 在本机系统设置一个共享文件夹,用于与Ubuntu交互的区域空间。

     
      clip_image001

    2、右击状态栏上共享文件夹图标或菜单栏“设备-共享文件夹”,打开共享文件夹设置,如图示

    clip_image002 clip_image003

    3、点击共享文件夹设置框,右上角的添加按钮

    clip_image004

    clip_image005

    选择之前本机设置的共享文件夹

    clip_image006

    此时一定不可以勾选自动挂载

    clip_image007

    clip_image008

    4、设置好共享名后,进入Linux系统,打开终端,先执行命令,在挂载点目录添加“Windows_Share”目录,接着执行" mount -t vboxsf VirtureBox_Share /mnt/Windows_Share/",就能完成共享文件夹的设置。

    [oracle@ODIGettingStarted ~]$ su
    Password: 
    [root@ODIGettingStarted oracle]# mkdir /mnt/Windows_Share
    [root@ODIGettingStarted oracle]# mount -t vboxsf VirtureBox_Share /mnt/Windows_Share/
    [root@ODIGettingStarted oracle]#

    5、设置完成,可以创建几个文件,测试一下

    (测试方法:

    1. 在本地C:SoftwareOracleVirtureBox_Share创建一个文件,到mnt/ Windows_Share/目录 查看。

    2.在mnt/Windows_Share/目录创建一个文件,在本机C:SoftwareOracleVirtureBox_Share进行查看)

    复制代码
    [root@ODIGettingStarted oracle]# cd /mnt/Windows_Share/
    
    [root@ODIGettingStarted Windows_Share]# ls
    
    window创建.txt
    
    [root@ODIGettingStarted Windows_Share]# touch linux.txt
    
    [root@ODIGettingStarted Windows_Share]# ls
    
    linux.txt window创建.txt
    
    [root@ODIGettingStarted Windows_Share]#
    复制代码

    clip_image009clip_image010

    6、设置自动挂载

    [oracle@ODIGettingStarted ~]$ su
    
    Password: 
    
    [root@ODIGettingStarted oracle]#vim /etc/fstab

    添加

    VirtureBox_Share /mnt/Windows_Share/ vboxsf rw,gid=110,uid=1100,auto 0 0

    clip_image011

    7、卸载挂载点命令:

    umount -f /mnt/share

    原文地址:

    VirtualBox内Linux系统怎样与Windows共享文件夹

  • 相关阅读:
    切割图像(一)概要
    无锁队列--基于linuxkfifo实现
    c++ virturn function -- 虚函数
    c friend -- 友元
    c++ anonymous union,struct -- 匿名联合体和机构体
    c++ anonymous namespace -- 匿名空间
    c++ inheritance -- 继承
    c++ 类名和enum时重复时要在类名前加class::
    c vs c++ in strcut and class
    C++ operator overload -- 操作符重载
  • 原文地址:https://www.cnblogs.com/dpf-learn/p/6143084.html
Copyright © 2011-2022 走看看