linux下U盘挂载失败的解决

错误:mount: mounting /dev/usbdev1.8 on /mnt/usb/udisk/ failed: Block device required

以上错误是由于内核配置没设好。要把如下的配置给勾上。


Support for hot-pluggable devices


│ │ Device Drivers ---> 
│ │ Generic Driver Options ---> 
│<*> Hotplug firmware loading support 
│ │ Block devices ---> 
│ │ <*> Low Performance USB Block driver 
│ │ SCSI device support --->    
│ │ <*> SCSI generic support  

Probe all LUNs on each SCSI device 
│ │ USB support ---> 
│ │<*> Support for Host-side USB


USB device filesystem 
│ │<*> OHCI HCD support 
│ │<*> USB Mass Storage support 


│ │ File systems ---> 
│ │ DOS/FAT/NT Filesystems ---> 
  │ ┌───────────────────────────────────────────────────────────────────────────┐ │  
  │ │                      <*> MSDOS fs support                                                                        │ │  
  │ │                      <*> VFAT (Windows-95) fs support                                                            │ │  
  │ │                      (437) Default codepage for FAT                                                              │ │  
  │ │                      (iso8859-1) Default iocharset for FAT                                                       │ │  
  │ │                      <*> NTFS file system support                                                                │ │  
  │ │                      [*]   NTFS debugging support                                                                │ │  
  │ │                      [*]   NTFS write support 


1、提示

Unable to load NLS charset  cp437

FAT: codepage cp437 not found

则进入

File systems--》
                Native language support--》
                    <*>   Codepage 437 (United States, Canada)

选上即可,若

2、再提示:

Unable to load NLS charset iso8859-1                                            
                                                                                
FAT: IO charset iso8859-1 not found

则进入:
File systems--》
                Native language support--》
                    <*>   NLS ISO 8859-1  (Latin 1; Western European Languages) 

选上即可!


编译烧录以后插入U盘就会在dev目录下生成sda、sda1两个文件。正确挂载U盘:

mount -t vfat /dev/sda1 /mnt

你可能感兴趣的:(linux下U盘挂载失败的解决)