|
楼主 |
发表于 2019-4-3 17:12
来自手机
|
显示全部楼层
本帖最后由 moleboy 于 2019-4-3 19:31 编辑
挂载点 看不到usb移动硬盘设备 手动挂载
opkg update
opkg install kmod-usb-core
opkg install kmod-usb2 #安装usb2.0
opkg install kmod-usb-ohci #安装
usb ohci控制器驱动
opkg install kmod-usb-storage #安装usb存储设备驱动
opkg install kmod-fs-vfat #挂载FAT
opkg install ntfs-3g #挂载NTFS
opkg install mount-utils #挂载卸载工具
opkg install block-mount
opkg install fdisk #磁盘工具
opkg install kmod-nls-cp437 kmod-nls-iso8859-1 #语言支持包
opkg install luci-app-samba #SAMBA网络共享服务
/etc/init.d/samba enable #启用并开始SAMBA共享
/etc/init.d/samba restart
重启路由后键入命令
mkdir -p /mnt/sta1 mount -t ntfs-3g /dev/sda1 /mnt/sta1 #挂载 可以在页面看到已经加载成功,可以看到硬盘了 进入共享 至此,已经可以通过网络访问移动硬盘了。
下面添加开机自动挂载 用WinSCP连接路由器,
打开/etc/hotplug.d/block/10-mount文件(如果不存在请新建)
添加如下内容
#!/bin/sh
# Copyright (C) 2009 OpenWrt.org (C) 2010 OpenWrt.org.cn
blkdev=`dirname $DEVPATH` if [ `basename $blkdev` != "block" ]; then device=`basename $DEVPATH` case "$ACTION" in add)
|
|