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