如何將隨身碟內檔案拷入VMware Linux CentOS6.5虛擬機器

來源:互聯網
上載者:User

標籤:

之前在Linux CentOS下安裝Oracle這篇隨筆中我提到要將下載到的安裝檔案解壓縮

那麼,問題來了!

如何把下載到的檔案拷入虛擬機器中呢?

我是這樣做的:

1、將下載到的檔案拷入隨身碟

2、以root使用者身份,使用fdisk -l命令查詢當前所有分區:

[[email protected] ~]# 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
[[email protected] ~]# 

 

3、插入隨身碟,再使用fdisk -l命令:

[[email protected] ~]# 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,這個就是剛剛插入的隨身碟啦。

4、建立一個目錄,使用mount命令將隨身碟掛載到該目錄下:

首先,在/mnt下建立一個usb目錄:

[[email protected] ~]#mkdir /mnt/usb

使用mount命令將隨身碟掛載到usb目錄:

[[email protected] ~]#mount /dev/sdb /mnt/usb

 

 5、最後就可以使用cp命令將隨身碟裡的檔案拷到虛擬機器裡啦~

如何將隨身碟內檔案拷入VMware Linux CentOS6.5虛擬機器

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.