Operation Manual: USB flash drive attached to Linux

Source: Internet
Author: User

As time passes by, technology is developing rapidly. With the increasingly mature and stable linux system and its unique advantages of open source code, linux has been widely used in the world. The problem also arises. Today we will mainly discuss the problem of mounting a USB flash drive on a Linux system.

Mount a USB flash drive
Like a USB-based mobile hard drive, USB flash drives are also treated as SCSI devices for linux systems. The usage is exactly the same as that of a mobile hard disk. Before inserting a USB flash drive, use fdisk-l or more/proc/partitions to view the hard disk and hard disk partition of the system.

 
 
  1. [root at pldyrouter root]# fdisk -l  
  2. Disk /dev/sda: 73 dot 4 GB, 73407820800 bytes  
  3. 255 heads, 63 sectors/track, 8924 cylinders  
  4. Units = cylinders of 16065 * 512 = 8225280 bytes  
  5. Device Boot Start End Blocks Id System  
  6. /dev/sda1 1 4 32098+ de Dell Utility  
  7. /dev/sda2 * 5 2554 20482875 7 HPFS/NTFS  
  8. /dev/sda3 2555 7904 42973875 83 Linux  
  9. /dev/sda4 7905 8924 8193150 f Win95 Ext'd (LBA)  
  10. /dev/sda5 7905 8924 8193118+ 82 Linux swap 

After the USB flash drive is inserted, use fdisk-l or more/proc/partitions to view the hard disk and hard disk partition of the system.

 
 
  1. [root at pldyrouter root]# fdisk -l  
  2. Disk /dev/sda: 73 dot 4 GB, 73407820800 bytes  
  3. 255 heads, 63 sectors/track, 8924 cylinders  
  4. Units = cylinders of 16065 * 512 = 8225280 bytes  
  5. Device Boot Start End Blocks Id System  
  6. /dev/sda1 1 4 32098+ de Dell Utility  
  7. /dev/sda2 * 5 2554 20482875 7 HPFS/NTFS  
  8. /dev/sda3 2555 7904 42973875 83 Linux  
  9. /dev/sda4 7905 8924 8193150 f Win95 Ext'd (LBA)  
  10. /dev/sda5 7905 8924 8193118+ 82 Linux swap  
  11. Disk /dev/sdd: 131 MB, 131072000 bytes  
  12. 9 heads, 32 sectors/track, 888 cylinders  
  13. Units = cylinders of 288 * 512 = 147456 bytes  
  14. Device Boot Start End Blocks Id System  
  15. /dev/sdd1 * 1 889 127983+ b Win95 FAT32  
  16. Partition 1 has different physical/logical endings:  
  17. phys=(1000, 8, 32) logical=(888, 7, 31) 

The system has a SCSI hard disk/dev/sdd and a disk partition/dev/sdd1./dev/sdd1 is the USB flash drive to be attached.
# Mkdir-p/mnt/usb

Note: create a directory for mount point)
# Mount-t vfat/dev/sdd1/mnt/usb

Note: You can now access the usb flash drive through/mnt/usb. If the Chinese character file name is garbled or not displayed, use the following command.
# Mount-t vfat-o iocharset = cp936/dev/sdd1/mnt/usb

After reading this article, you should be able to learn how to mount a USB flash drive on a Linux system.

  1. Analysis on Suse Linux under vm
  2. Preschool guidance: SUSE Linux
  3. Abbreviations in SUSE Linux
  4. Operation Manual: Install the RDAC driver in SUSE
  5. Your Chameleon: Open Suse

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.