Notes VirtualBox in Ubuntu system mount USB drive and copy folder May 6, 2015

Source: Internet
Author: User

1. In a Linux system such as Ubuntu to identify a USB flash drive, sometimes we do not know which folder, and do not know how to view its contents, in general, we will attach it to the directory/media, first of all to see what the system has memory, and then can see our USB stick is which settings file, Then mount it with Mount, with the following command:


Fdisk-l

Sodu mount-t Vfat/dev/sdb4/media

To cancel the mount:

umount/media/

* Note that when you cancel the mount, make sure that you are not in the/media directory, CD/, and then Umount.


2. The command to copy files or folders in a Linux system such as Ubuntu is CP, and sometimes we receive the following error when we CP:

cp:omitting directory "/A/B/C"

The/a/b/c here is the folder you want to copy, the reason for this error is that there is a folder in the C directory, if there is no folder under C will not appear this error.

If you want to replicate successfully, you can use the following command, even if there are folders in the C directory that you can copy successfully:

Cp-r/a/b/c/media/

* Here-R means the meaning of cyclic copying!

Notes VirtualBox in Ubuntu system mount USB drive and copy folder May 6, 2015

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.