找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 3796|回复: 14

openwrt无法共享硬盘,不知道哪里出问题了

[复制链接]
发表于 2019-11-21 19:33 | 显示全部楼层 |阅读模式
设置如下图

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-11-21 20:13 | 显示全部楼层
你sda1都没有成功挂载好不好
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-11-21 20:20 | 显示全部楼层
wulishui 发表于 2019-11-21 20:13
你sda1都没有成功挂载好不好

请问一下是哪里设置有问题吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-21 20:25 | 显示全部楼层
往上面看!重要的地方你偏偏没抓取出来。

点评

大神能不能说具体点,这个折腾我好久了,万分感谢  详情 回复 发表于 2019-11-21 20:29
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-11-21 20:29 | 显示全部楼层
wulishui 发表于 2019-11-21 20:25
往上面看!重要的地方你偏偏没抓取出来。

大神能不能说具体点,这个折腾我好久了,万分感谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-21 20:42 | 显示全部楼层
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-11-21 20:56 | 显示全部楼层
boboa 发表于 2019-11-21 20:42
http://m.right.com.cn/m/post/976519?isHideTitle=0&from=apph5自己看链接

看到你的回复了,那个链接打不开了,不知道修改的两个配置在哪里

点评

15-automount如下:然后重启动路由 #!/bin/ash case "$ACTION" in add) for i in $(ls /dev/ | grep 'sd[a-z][1-9]') do mkdir -p /mnt/$i mount -o iocharset=utf8,rw /dev/$i /mnt/$i if  详情 回复 发表于 2019-11-21 22:32
估计帖子没了,SCP登录/etc/hotplug.d/block,修改10-mount,如下: #!/bin/ash case "$ACTION" in add) for i in $(ls /dev/ | grep 'sd[a-z][1-9]') do mkdir -p /mnt/$i mount -o iocharset=  详情 回复 发表于 2019-11-21 22:30
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-21 22:30 | 显示全部楼层
该昵称已被注册 发表于 2019-11-21 20:56
看到你的回复了,那个链接打不开了,不知道修改的两个配置在哪里

估计帖子没了,SCP登录/etc/hotplug.d/block,修改10-mount,如下:
#!/bin/ash

case "$ACTION" in
        add)
                for i in $(ls /dev/ | grep 'sd[a-z][1-9]')
                do
                        mkdir -p /mnt/$i
                        mount -o iocharset=utf8,rw /dev/$i /mnt/$i
                        if [ $? -ne 0 ]
                        then
                                mount -o rw /dev/$i /mnt/$i
                        fi
                done
                ;;
        remove)
                MOUNT=`mount | grep -o '/mnt/sd[a-z][1-9]'`
                for i in $MOUNT
                do
                        umount $i
                        if [ $? -eq 0 ]
                        then
                                rm -r $i
                        fi
                done
                ;;
esac

点评

大神这个要怎么使用吗?我挂载了也是失败  详情 回复 发表于 2020-11-17 10:34
这个找到了,另外一个文件路由器里面没有  详情 回复 发表于 2019-11-22 08:39
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-21 22:32 | 显示全部楼层
该昵称已被注册 发表于 2019-11-21 20:56
看到你的回复了,那个链接打不开了,不知道修改的两个配置在哪里

15-automount如下:然后重启动路由
#!/bin/ash

case "$ACTION" in
        add)
                for i in $(ls /dev/ | grep 'sd[a-z][1-9]')
                do
                        mkdir -p /mnt/$i
                        mount -o iocharset=utf8,rw /dev/$i /mnt/$i
                        if [ $? -ne 0 ]
                        then
                                mount -o rw /dev/$i /mnt/$i
                        fi
                done
                ;;
        remove)
                MOUNT=`mount | grep -o '/mnt/sd[a-z][1-9]'`
                for i in $MOUNT
                do
                        umount $i
                        if [ $? -eq 0 ]
                        then
                                rm -r $i
                        fi
                done
                ;;
esac

点评

感谢大神,新建一个文件就可以了,问题解决了  详情 回复 发表于 2019-11-22 09:11
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-22 07:59 | 显示全部楼层
boboa 发表于 2019-11-21 22:32
15-automount如下:然后重启动路由
#!/bin/ash

大佬可以单独发个帖,相信还有很多小白不懂怎么搞
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-11-22 08:39 | 显示全部楼层
boboa 发表于 2019-11-21 22:30
估计帖子没了,SCP登录/etc/hotplug.d/block,修改10-mount,如下:
#!/bin/ash

这个找到了,另外一个文件路由器里面没有
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-11-22 09:11 | 显示全部楼层
boboa 发表于 2019-11-21 22:32
15-automount如下:然后重启动路由
#!/bin/ash

感谢大神,新建一个文件就可以了,问题解决了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-1-1 14:46 来自手机 | 显示全部楼层
学习一下,谢谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-4-16 18:28 | 显示全部楼层
wulishui 发表于 2019-11-21 20:13
你sda1都没有成功挂载好不好

我也是添加到挂载点了,但是不在已挂载上显示啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-11-17 10:34 | 显示全部楼层
boboa 发表于 2019-11-21 22:30
估计帖子没了,SCP登录/etc/hotplug.d/block,修改10-mount,如下:
#!/bin/ash

大神这个要怎么使用吗?我挂载了也是失败
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-25 03:41

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表