mini2440的U盘挂载

2011.12.26


U盘未用qt的情况下,插入U盘,调试串口会输出

usb 1-1: new full speed USB device using s3c2410-ohci and address 3
usb 1-1: New USB device found, idVendor=1000, idProduct=2000
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: USB DISK 2.0
usb 1-1: Manufacturer:
usb 1-1: SerialNumber: B4B6010000080000
usb 1-1: configuration #1 chosen from 1 choice
scsi1 : SCSI emulation for USB Mass Storage devices
scsi 1:0:0:0: Direct-Access              USB DISK 2.0     PMAP PQ: 0 ANSI: 0 CCS


sd 1:0:0:0: Attached scsi generic sg0 type 0
sd 1:0:0:0: [sda] 3911680 512-byte logical blocks: (2.00 GB/1.86 GiB)
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sda] Assuming drive cache: write through
 sda:
sd 1:0:0:0: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sda] Attached SCSI removable disk


但是并没有实现自动挂载,挂载要手动挂载。

创建挂载目录

mkdir /mnt/udisk

[root@FriendlyARM /dev]# mount -t vfat /dev/sda /mnt/udisk
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will b
e case sensitive!


[root@FriendlyARM udisk]# ls /mnt/udisk

但是中文显示的是乱码

你可能感兴趣的:(c,cache,IO,qt,disk,filesystems)