Attach a USB flash drive to Ubuntu

Source: Internet
Author: User

Ubuntu does not have the RPM command
1: Click VMware and move the focus to VMware.
2. Insert a USB flash drive and the system will automatically identify it (as long as the VM is equipped with a USB driver)
3. Create a mount directory. Generally, # mkdir/mnt/udisk
At this time, he will automatically detect and use fdisk-L to take a look ,,
[Root @ yyl-0377 root] # fdisk-l

Disk/dev/SDA: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 Cylinders
Units = cylinders of 16065*512 = 8225280 bytes

Device boot start end blocks ID system
/Dev/sda1*1 574 4610623 + 83 Linux
/Dev/sda2 575 652 626535 82 Linux swap

Disk/dev/SDB: 130 MB, 130416640 bytes
8 heads, 32 sectors/track, 995 Cylinders
Units = cylinders of 256*512 = 131072 bytes

Device boot start end blocks ID system
/Dev/sdb1*1 995 127344 B Win95 FAT32

4. The device name in the last line is the most critical.
Mount # Mount/dev/sdb1/mnt/udisk
Then enter/mnt/udisk.
Then you can perform read and write operations.
# Umount-L/dev/sdb1

========================================================== ======
========================================================== ======
Supplement:

I have been troubled by this problem for a long time and studied the n method. Now I will tell you how to solve it ..
I have read many articles, but they are not completely written .. It seems that only research by yourself is correct. Practice !!!

The ultimate method of using USB flash drives, V disks, and mobile hard disks

1. Use lsmod to check whether USB-storage, USB-uhci, sd_mod, and scsi_mod are loaded.
2. If you compile your own kernel and all these are compiled, you do not need to load it.
3. Use dmesg | grep USB to check whether the USB-related stuff is loaded.
4. Use fdisk-L/dev/SDA (SDB/SDC/SDD) to check which device is connected. If you use a SCSI hard disk, this is generally SDB. If you use an IDE hard disk, it is generally SDA.
5. If you receive a message similar to fdisk-L/dev C (your hard disk), congratulations. You can use:
Mount-T vfat/dev/sda1/mnt/USB to mount the USB disk.
6. This is the key point. If you still haven't succeeded, then. Load the module as follows:
Modprobe USB-storage
Modprobe USB-uhci
Modprobe sd_mod
Modprobe scsi_mod
Then use fdisk to check out
If not, load another module.
Modprobe UB-OHCI
This is very important. I have studied it for a long time before I found that this module can be used.
Then you can use it. If the problem persists, check whether your disk is plugged in or the USB is damaged !!
If it still doesn't work, post a question !!
If the problem persists, find a basic book.
Thank you for choosing USB.
 

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.