操作步骤:
1.PC与开发板之间串口线连接好
2.打开已配置好的超级终端或者SecureCRT
3.在TQ2440开发版的USB HOST口上 插入U盘后,超级终端提示如下信息:
[root@EmbedSky /]#
[root@EmbedSky /]#
[root@EmbedSky /]# usb 1-1: new full speed USB device using s3c2410-ohci and address 2
usb 1-1: New USB device found, idVendor=0951, idProduct=1624
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: DataTraveler G2
usb 1-1: Manufacturer: Kingston
usb 1-1: SerialNumber: 001CC0EC346CF04127E713B7
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
scsi 0:0:0:0: Direct-Access Kingston DataTraveler G2 1.00 PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 15636304 512-byte hardware sectors: (8.00 GB/7.45 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
sd 0:0:0:0: [sda] Attached SCSI removable disk
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[root@EmbedSky /]#
如上信息所示,u盘挂载设备为sda,并且是sda1.
4.创建挂载目录,目录名usb,之后浏览该目录就是浏览U盘根目录,命令如下:
[root@EmbedSky /]# mkdir /mnt/usb
5.进行挂载,U盘文件系统为FAT格式,用vfat参数,设备文件为/dev/sda,挂载命令如下:
[root@EmbedSky /]# mount -t vfat /dev/sda1 /mnt/usb
6.卸载U盘 输入命令:
[root@EmbedSky /]# umount /mnt/usb/