openwrt 接入移动硬盘后……

2014-12-26 16:38:37 +08:00
 Exin
没有直接出现共享文件夹
用dmesg命令查看结果如下:
[119052.860000] usb 1-1: USB disconnect, device number 2
[119053.280000] usb 1-1: new high-speed USB device number 3 using ehci-platform
[119053.470000] usb-storage 1-1:1.0: USB Mass Storage device detected
[119053.490000] scsi1 : usb-storage 1-1:1.0
[119055.020000] scsi 1:0:0:0: Direct-Access NORELSYS 106X CC4B P Q: 0 ANSI: 6
[119055.030000] sd 1:0:0:0: Attached scsi generic sg0 type 0
[119055.030000] sd 1:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/9 31 GiB)
[119055.040000] sd 1:0:0:0: [sdb] Write Protect is off
[119055.050000] sd 1:0:0:0: [sdb] Mode Sense: 43 00 00 00
[119055.060000] sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled, do esn't support DPO or FUA
[119057.950000] sdb: sdb1
[119057.980000] sd 1:0:0:0: [sdb] Attached SCSI disk

df命令不能看到移动硬盘,
请问该如何设置使得热插拔的移动硬盘被识别?
2742 次点击
所在节点    问与答
17 条回复
mringg
2014-12-26 16:55:58 +08:00
记录貌似没报异常呃,是不是供电的原因
Exin
2014-12-26 17:10:23 +08:00
@mringg 独立供电,不是USB口供电,应该不是这个问题
yuanwb1984
2014-12-26 17:15:32 +08:00
#fdisk -l 能看到分区吧
UUID写到fstab里
或者luci里面有设置地地方
jemyzhang
2014-12-26 17:19:43 +08:00
没mount...ba
Gary
2014-12-26 18:37:32 +08:00
没mount...
Exin
2014-12-26 19:16:25 +08:00
@jemyzhang @Gary 只要重启路由器就可以识别并且mount上去。现在是df都看不到,何来mount?
zent00
2014-12-26 19:47:10 +08:00
@Exin mount 了才能用 df 查看,未挂载时你应该用 lsusb 看看有没有正确识别设备,或直接用 fdisk -l 看看硬盘的信息。
xieyudi1990
2014-12-26 19:51:50 +08:00
没有mount
Exin
2014-12-26 20:30:54 +08:00
Exin
2014-12-26 20:31:09 +08:00
@Exin 看错
Exin
2014-12-26 20:31:43 +08:00
@xieyudi1990 看错
luo362722353
2014-12-27 07:23:28 +08:00
cd /dev/sda* 看看出现了什么…你就懂了
Exin
2014-12-27 12:07:27 +08:00
@luo362722353
我尝试了sda,sda1,sdb,sdb1,都是-ash: cd: can't cd to /dev/sd**
Exin
2014-12-27 12:09:35 +08:00
@yuanwb1984
@jemyzhang
@Gary
@zent00
@xieyudi1990
现在的状态是接上后需要手动mount,请问有没有自动mount的方法?
luo362722353
2014-12-27 13:25:15 +08:00
@Exin 我给错了命令,ls /dev/sda*
Exin
2014-12-27 15:29:29 +08:00
@luo362722353 噢,这个我也尝试了。依旧没有列出硬盘里的文件
Gary
2014-12-27 18:39:07 +08:00
@Exin 在fstab里面加入设备,只要系统启动就会mount

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/156924

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX