Ubuntu vmwarevm mounts a small data transfer record from a mobile device, ubuntuvmware

Source: Internet
Author: User

Ubuntu vmwarevm mounts a small data transfer record from a mobile device, ubuntuvmware
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/* To find your mobile device name, for example, I am/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-lhFilesystem Size Used Avail Use % Mounted on/dev/sdb3 125G 3.3G 115G 3% // dev/sdb1 99 M 12 M 82 M 13%/boottmpfs 3.9G 0 3.9G 0%/dev/shm/dev/sda1 275G 72G 189G 28%/media/usb is the/dev/sda1. When umount command is used, umount/media/usb or umount/dev/sda1 will prompt that the device is busy: umount device is busy. Solution: [root @ ubuntu: ~] # Fuser-km/media/usb [root @ ubuntu: ~] # Df-lhFilesystem Size Used Avail Use % Mounted on/dev/sdb3 125G 3.3G 115G 3% // dev/sdb1 99 M 12 M 82 M 13%/boottmpfs 3.9G 0 3.9G 0%/dev/shm/dev/sda1 275G 72G 189G 28%/media/usb [root @ ubuntu: ~] # Umount/media/usb [root @ ubuntu: ~] # Df-lhFilesystem Size Used Avail Use % Mounted on/dev/sdb3 125G 3.3G 115G 3% // dev/sdb1 99 M 12 M 82 M 13%/boottmpfs 3.9G 0 3.9G 0%/dev/shm succeeded in umount.

Command:
Purpose: display the available space of the specified disk file. Parameter:-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.

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










I don't know what to do if you know how to use ubuntu in vmware.

Sudo mount/mnt/cdrom
This command is problematic. The usage of mount should be:
Mount/dev/cdrom/mnt/cdrom
/Dev/cdrom is the device file in linux, which corresponds to the optical drive on the physical disk.
/Mnt/cdrom is the folder to which you want to mount the optical drive. After mounting, access the file through this folder.
Sudo mount/mnt/cdrom does not specify the device file corresponding to the optical drive. By default, the system searches for/mnt/cdrom by fstab and mtab. Of course not found

The USB flash drive inserted into the virtual machine's Removable device is hooked, but how can the ubuntu system installed on the virtual machine not find the USB flash drive?

Go to/media to see if there are any folders. If yes, open it to see if it is your USB flash drive. You can also open the file manager and check whether your USB flash drive is available in those file systems on the left. If Ubuntu can recognize it, it will be displayed in unity on the left.

If none of them exist, they are not identified.

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.