在嵌入式设备上找到 USB 设备但无法安装
我有一个在arm机器上运行linux 2.6.27的嵌入式设备。内核和系统工作正常 AFIK。我插入 USB 闪存驱动器,它检测到该驱动器(以下输出)。
scsi 0:0:0:0: Direct-Access Kingston DataTraveler II PMAP PQ: 0 ANSI: 0 CCS
sd 0:0:0:0: [sda] 2014208 512-byte hardware sectors (1031 MB)
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] 2014208 512-byte hardware sectors (1031 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sda] Attached SCSI removable disk
我可以看到它创建的设备节点是在 sda 下创建的,但我在 /dev/ 中找不到任何 sda 设备。但我可以在/sys/sda下看到它。我尝试使用以下命令进行安装: mount -t vfat /dev/sda/ /mnt/
这失败了,说 /dev/sda 没有找到文件(因为 /dev 中不存在该文件)。任何帮助将不胜感激。
谢谢。
I have a embedded device running linux 2.6.27 on an arm machine. The kernel and system is working correctly AFIK. I plugged in a USB flash drive and it detects the drive (following output).
scsi 0:0:0:0: Direct-Access Kingston DataTraveler II PMAP PQ: 0 ANSI: 0 CCS
sd 0:0:0:0: [sda] 2014208 512-byte hardware sectors (1031 MB)
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] 2014208 512-byte hardware sectors (1031 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sda] Attached SCSI removable disk
I can see that it creates device node is created under sda but I cant find any sda device in /dev/. But I can see it under /sys/sda. I tried mounting using the following command:
mount -t vfat /dev/sda/ /mnt/
This fails saying /dev/sda no file found (as it's not there in /dev). Any help will be appreciated.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,您需要 udev 来动态创建设备节点。如果系统上存在 udev,请检查 /etc/udev/rules.d/ 中是否有自定义规则。
As far as I know you need udev for dynamic device node creation. If udev is present on the system, check if you have custom rules at /etc/udev/rules.d/.