U盘实验,linux2.4.21是支持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
.wma ????????.txt tek0001.bm
卸载U盘命令为umount,如下:
[root@OURSELEC /]# umount /tmp/
[root@OURSELEC /]# cd /tmp/
[root@OURSELEC tmp]# ls
[root@OURSELEC tmp]#
阅读(1040) | 评论(0) | 转发(0) |