zoukankan      html  css  js  c++  java
  • 如何将U盘内文件拷入VMware Linux CentOS6.5虚拟机

    之前在Linux CentOS下安装Oracle这篇随笔中我提到要将下载到的安装文件解压缩

    那么,问题来了!

    如何把下载到的文件拷入虚拟机中呢?

    我是这样做的:

    1、将下载到的文件拷入U盘

    2、以root用户身份,使用fdisk -l命令查询当前所有分区:

    [root@localhost ~]# fdisk -l

    Disk /dev/sda: 42.9 GB, 42949672960 bytes255 heads, 63 sectors/track, 5221 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

     Device Boot Start End Blocks Id System

    /dev/sda1 * 1 38 305203+ 83 Linux
    /dev/sda2 39 4964 39568095 83 Linux
    /dev/sda3 4965 5221 2064352+ 82 Linux swap / Solaris
    [root@localhost ~]# 

    3、插入U盘,再使用fdisk -l命令:

    [root@localhost ~]# fdisk -l

    Disk /dev/sda: 42.9 GB, 42949672960 bytes
    255 heads, 63 sectors/track, 5221 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 38 305203+ 83 Linux
    /dev/sda2 39 4964 39568095 83 Linux
    /dev/sda3 4965 5221 2064352+ 82 Linux swap / Solaris

    Disk /dev/sdb: 7948 MB, 7948206080 bytes
    81 heads, 10 sectors/track, 19165 cylinders
    Units = cylinders of 810 * 512 = 414720 bytes

    Device Boot Start End Blocks Id System
    /dev/sdb1 11 19166 7757824 b W95 FAT32

     然后就可以看到多了一个分区:Disk /dev/sdb,这个就是刚刚插入的U盘啦。

    4、创建一个目录,使用mount命令将U盘挂载到该目录下:

    首先,在/mnt下创建一个usb目录:

    [root@localhost ~]#mkdir /mnt/usb

    使用mount命令将U盘挂载到usb目录:

    [root@localhost ~]#mount /dev/sdb /mnt/usb

     5、最后就可以使用cp命令将U盘里的文件拷到虚拟机里啦~

  • 相关阅读:
    html5与css交互 API 《一》classList
    HTML5标签速查
    html5中常被忘记的标签,属性
    html5不熟悉的标签全称
    基于HTML5的网络拓扑图(1)
    HTML5 Canvas绘制效率如何?
    前端性能优化(Application Cache篇)
    Android独立于Activity或者Fragment的LoadingDialog的实现
    android常用设计模式的理解
    android使用android:ellipsize="end"无效的解决方法
  • 原文地址:https://www.cnblogs.com/ivychang/p/5648045.html
Copyright © 2011-2022 走看看