PXA270PR实验箱下U盘实验,linux2.4是支持usb2.0接口的U盘的。
首先cat /proc/partitions
查看设备号,然后在/dev下建立块设备节点
mknod /dev/usb b 8 1
挂载相应分区mount /dev/usb /tmp/
即可在/tmp下访问U盘。如下:
[root@OURSELEC /]# cat /proc/partitions
major minor #blocks name rio rmerge rsect ruse wio wmerge wsect wuse runni
ng use aveq
8 0 1974271 scsi/host0/bus0/target0/lun0/disc 1 3 8 120 0 0 0 0 0 120
120
8 1 1974240 scsi/host0/bus0/target0/lun0/part1 0 0 0 0 0 0 0 0 0 0 0
31 0 256 mtdblocka 0 0 0 0 0 0 0 0 0 0 0
31 1 2048 mtdblockb 0 0 0 0 0 0 0 0 0 0 0
31 2 16384 mtdblockc 4 0 6 0 0 0 0 0 0 0 0
31 3 14080 mtdblockd 0 0 0 0 0 0 0 0 0 0 0
[root@OURSELEC /]# mknod /dev/usb b 8 1
[root@OURSELEC /]# mount /dev/usb /tmp/
VFS: Can't find ext3 filesystem on dev sd(8,1).
VFS: Can't find ext2 filesystem on dev sd(8,1).
[root@OURSELEC /]# cd /tmp/
[root@OURSELEC tmp]# ls
v.wma a.txt tek0001.bmp
卸载U盘命令为umount,如下:
[root@OURSELEC /]# umount /tmp/
[root@OURSELEC /]# cd /tmp/
[root@OURSELEC tmp]# ls
[root@OURSELEC tmp]#