Ubuntu copies data to U-Disk via command

Source: Internet
Author: User
Tags parent directory

I am now embarrassed and others say that they are familiar with Linux, their own use of Linux, also used as a desktop system, very few familiar with those Linux command results last Linux Desktop graphics interface can only use the command line, after a few nights of toss finally fix, now record

Just think of why I use Linux, but also to share with you, 1. Can concentrate on the writing code, QQ, music, a lot of computer functions have been transferred to the only mobile phone above, so that the reduction of those ads, the message interrupted, 2. The app installs less, and my little Ben can run faster in development. 3. A lot of things are open source free, not pirated things, feel better. 4. Have a lot of new century related habits, blogging, play GitHub. 5. Focus on learning. 6. Now mom and dad do not have a computer, if they buy computers I also intend to give them to use Ubuntu, teach them how to use e-mail, do not know whether readers have paid attention to Linux, her progress is rapid and obvious

-----The rain keeps falling, The atmosphere is not harmonious------------------------------------------------------------------------------------------------------------------- ------------------------------

Because there is no way to reproduce the problem, direct steps

1. Login Command Interface

2. Cat/proc/partitions

View the current partition (and then insert the USB flash drive, My computer prompted a sentence, it is probably meant to have a U-disk inserted, and can be used), to execute this command again, compared to two times the difference between the partition list, should be more than two partitions (my more, SDB and SDB4 Two, SDB space is bigger, SDB4 smaller, sdb4 to be ready to mount)

After entering the command again sudo fdisk-l/dev/sdb4 (also may be sudo fdisk-l/dev/sdb, this command is not clear) to view the file system format of your own U-disk, looked after my FAT32 's

3. Cd/mdeia

Enter in this folder

5. mkdir usb

Create a folder to close the U-disk

6. Sudo mount-t vfat/dev/sdb4/media/usb

VFAT is because the U disk is fat, USB is the folder that you just created, you can perform Unmount/media/usb to cancel the mount after use, but I pulled the U-disk directly after copying the data.

7. Compression, file too large, no way to learn compression command, of course, is also very simple,

Zip–r Develop01.zip/home/rocky/develop

My files are placed under the Develop folder,-R is to add all the folders and files below develop to the compressed file, Zip–r Develop01.zip can be used under the parent directory in develop./develop

8. Copying

CP Develop01.zip/media/usb

9. Then go to this folder and see if there's any compression package you've copied.

Cd/media/usb

Ls-lh

10. Finally I pull out the U-disk and copy the data from it.

11. End

Reference Blog: http://www.linuxidc.com/Linux/2012-06/63059.htm

Http://www.cnblogs.com/albert1017/archive/2012/10/31/2747640.html

Ubuntu copies data to the U disk by command

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.