Upload data to a mobile device using UbuntuVMware Virtual Machine

Source: Internet
Author: User
Tags vmware server
Generally, data is transmitted to VMware, except that mobile devices are mounted on the network. It is really disgusting to build the network. However, during the competition, I used the network. At that time, I remember that xen had several virtual machines and then used tomcat to build a server on the physical machine, put things in it and access and download from the virtual machine. This method is not good. It can only be transmitted unilaterally, but it is enough at that time. In fact, it is easy to mount. This article is for your convenience. Nothing new. Do not spray for the elderly. Data Transmission Operations

Cause

Generally, data is transmitted to VMware, except that mobile devices are mounted on the network.

It is really disgusting to build the network. However, during the competition, I used the network. At that time, I remember that xen had several virtual machines and then used tomcat to build a server on the physical machine, put things in it and access and download from the virtual machine. This method is not good. It can only be transmitted unilaterally, but it is enough at that time.

In fact, it is easy to mount.

This article is for your convenience. Nothing new. Do not spray for the elderly.

Data Transmission Operations

In this article, the VMware version is 7.0.

Step 1: Choose VMWare & gt; VM & gt; Removable Devices to select the desired USB flash drive or mobile hard drive.

Step 2:

Sudo-s/* enter root */

Fdisk-l/* Find your mobile device name, for example, my mobile device name is/dev/sda1 */

Mount/dev/sda1/media/usb/* Where/media/usb is where you want to attach */

Step 3: Copy data from cp/media/usb/your_data/*. */root/home/Desktop/your_data

Step 4:

Please note that the error "device is busy" is reported when you directly run the umount command.

[Root @ Ubuntu: ~] # Df-lh
Filesystem Size Used Avail Use % Mounted on
/Dev/sdb3 125 GB 3.3G 115G 3%/
/Dev/sdb1 99 M 12 M 82 M 13%/boot
Tmpfs 3.9G 0 3.9G 0%/dev/shm
/Dev/sda1 275G 72G 189G 28%/media/usb
 
This is/dev/sda1.
 
Use the umount command, umount/media/usb or umount/dev/sda1
The system will prompt that the device is busy: umount device is busy.

 
Solution:
[Root @ ubuntu: ~] # Fuser-km/media/usb
[Root @ ubuntu: ~] # Df-lh
Filesystem Size Used Avail Use % Mounted on
/Dev/sdb3 125 GB 3.3G 115G 3%/
/Dev/sdb1 99 M 12 M 82 M 13%/boot
Tmpfs 3.9G 0 3.9G 0%/dev/shm
/Dev/sda1 275G 72G 189G 28%/media/usb

[Root @ ubuntu: ~] # Umount/media/usb
[Root @ ubuntu: ~] # Df-lh
Filesystem Size Used Avail Use % Mounted on
/Dev/sdb3 125 GB 3.3G 115G 3%/
/Dev/sdb1 99 M 12 M 82 M 13%/boot
Tmpfs 3.9G 0 3.9G 0%/dev/shm
 
Umount is successful.

Popular Science df command:

Purpose: display the available space of the specified disk file.
Parameters:
-A list of all file systems
-H: Easy reading mode display
-H is equal to "-h", but the formula is 1 K = 1000, instead of 1 K = 1024.
-I: displays inode information.
The-k block is 1024 bytes.
-L only displays the local file system
-The m block is 1048576 bytes.
-- No-sync ignore the sync command
-P output format is POSIX
-- Sync: run the sync command before obtaining disk information.
-T file system type

In the above umount operation, we used df-lh: to display the available disk space of the local file system in a convenient way.

Popular fuser command:

Purpose: Identify processes using files or sockets.
Parameters:
-K kill Process
-M indicates the file system or block device where the specified file is located (in the mount State ). All processes accessing the file system are listed.
-V verbose mode

In the above umount operation, if we directly umount, the error will be reported: device is busy, first use fuser-km/media/usb to kill all processes that use this file device, and then umount

Install Ubuntu 14.04 http://www.linuxidc.com/Linux/2014-04/100473.htm with VMware Workstation 10 Virtual Machine in Windows 7

"Kernel requires an x86_64 cpu, but only detected" http://www.linuxidc.com/Linux/2014-04/99423.htm appears when CentOS x86_64 is installed in VMWare

Install Linux http://www.linuxidc.com/Linux/2014-06/103881.htm under VMware Server

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2014-09/107177.htm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.