How Linux configuration identifies a USB flash drive

Source: Internet
Author: User


1. Configuration required in kernel

[Python]View Plaincopy
  1. Device Drivers (USB drive belongs to storage device, Linux defines it as SCSI device)
  2. SCSI Device Support--->
  3.     <*> scsi device support                                                                                           
  4.     <*>   scsi disk support                                                            
  5.     usb support  --->  
  6.     <*> support for  host-side usb                                                            
  7.             [*]    USB device filesystem                                                             
  8.             ---    USB Host Controller Drivers                                                       
  9.             <*>    EHCI HCD  (Usb 2.0
  10.             <*>    OHCI HCD support                                                                 
  11.             <*>    UHCI HCD  (most intel and  via)  support                                            
  12. <*> USB Mass Storage Support
  13. File systems>
  14. DOS/FAT/NT filesystems---> (USB stick is usually in the format under Windows)
  15. <*> MSDOS FS Support
  16.         <*> vfat  (Windows-< Span class= "number" style= "margin:0px; padding:0px; Border:none; Background-color:inherit ">95
  17. <*> NTFS File system support PCOP
  1. <*>ntfs Write support
  2. native language support  --->  
  3. <*>   codepage 437   (united states,  Canada)   
  4. <*> NLS ISO 8859-1 (Latin 1; Western European Languages)

  5. 2. Mount various formats of USB flash drive, command:

    Mount/dev/sda/mnt/usb Some systems need to specify the type of file system, you can use Mount-t Vfat/dev/sda/mnt/usb

    Mount the USB device to the/MNT/USB directory: The file system is fat32mount-t Vfat/dev/sda1/mnt/udisk or if it is a different file format, such as Fat12mount-t msdos/dev/sda1/mnt/ Udisk to correctly display the possible Chinese fonts, set the input and output character type to cp936. Mount-t Vfat-o Iocharset=cp936/dev/sda1/mnt/udisk

  6. 3. Query whether there is a USB stick identification, you can use the following command:

    Generally plug in a USB stick, if identified:

    # tail-f/var/log/messages //There will be some log of the USB register.

    # Fdisk-l//can view the drive letter that can be formatted

    # Mount //See if a USB flash drive is available on the mount, command view

How Linux configuration identifies a USB flash drive

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.