上次的补充 linux arm9200

来源:百度知道 编辑:UC知道 时间:2024/06/15 14:34:51
我是基于linux2.6.19在arm9200上开发的程序。现在主要是对好多u盘都不能mount上去。插上u盘提示usb 1-1: new full speed USB device using at91_ohci and address 13
usb 1-1: Product: Miniking Device
usb 1-1: Manufacturer: aigo
usb 1-1: SerialNumber: LBM9Q2O8
usb 1-1: configuration #1 chosen from 1 choice
scsi6 : SCSI emulation for USB Mass Storage devices
scsi 6:0:0:0: Direct-Access aigo Miniking 8.01 PQ: 0 ANSI: 2
SCSI device sda: 7878654 512-byte hdwr sectors (4034 MB)
sda: Write Protect is off
sda: assuming drive cache: write through
SCSI device sda: 7878654 512-byte hdwr sectors (4034 MB)
sda: Write Protect is off
sda: assuming drive cache: write through
sda:<7>usb-storage: queuecommand called
sda1
sd 6:0:0:0: Attached scsi removable disk sda

再调用mount( dev_path, mount_point, "vfat", 0, 0 )
(第一个参数为我的u盘目录 第二个为挂接点)
提示为
#FAT: invalid media value (0x00)
VFS: Can't find a valid FAT files

#FAT: invalid media value (0x00)
VFS: Can't find a valid FAT filesystem on dev sda.
FAT: invalid media value (0x00)
VFS: Can't find a valid FAT filesystem on dev sda.

没有 FAT 文件系统在 sda ……
sda 而不是 sda1 ?

unknown partition table
sd 4:0:0:0: Attached scsi removable disk sdb

未知的分区表
sd 4:0:0:0: 插入 SCSI 可移动磁盘 sdb

你反而可以挂载
但注意 sda 的时候,显示的是 sda1 ,也就是说识别了分区表。

U 盘的文件系统可以有分区表的。这样 U 盘就是 HDD 类似的存储方式。没有分区表就是软盘方式的使用。