PCEVA,PC绝对领域,探寻真正的电脑知识
打印 上一主题 下一主题
开启左侧

wndr3800到了,关于使用问题

[复制链接]
跳转到指定楼层
1#
点击数:2993|回复数:3
买的wndr3800到了,弄好了adb去广告,但是接上移动硬盘,开启samba只能看到新建的openwrt文件夹,以前的文件看不见。
之前用的小米路由器就可以全盘共享。




本帖子中包含更多资源

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

x
2#
qhdxy 发表于 2016-4-30 14:58 | 只看该作者
根据你描述的内容来看,最简单的解决办法是把硬盘里的东西再放进新建的openwrt这个目录就行了
3#
sun3797 发表于 2016-7-4 21:20 | 只看该作者
已经有了挂载的硬件位置,但没有分配挂在路径位置,修改一下让openwrt启动自动挂载到mount下!!
在/etc/hotplug.d/block/目录下找到XXX-mount这个文件,加入以下:

blkdev=`dirname $DEVPATH`
if [ `basename $blkdev` != "block" ]; then

    device=`basename $DEVPATH`
    case "$ACTION" in
        add)
                mkdir -p /mnt/$device
                # vfat & ntfs-3g check
                if  [ `which fdisk` ]; then
                        isntfs=`fdisk -l | grep $device | grep NTFS`
                        isvfat=`fdisk -l | grep $device | grep FAT`
                        isfuse=`lsmod | grep fuse`
                        isntfs3g=`which ntfs-3g`
                else
                        isntfs=""
                        isvfat=""
                fi

                # mount with ntfs-3g if possible, else with default mount
                if [ "$isntfs" -a "$isfuse" -a "$isntfs3g" ]; then
                        ntfs-3g -o nls=utf8 /dev/$device /mnt/$device
                elif [ "$isvfat" ]; then
                        mount -t vfat -o iocharset=utf8,rw,sync,umask=0000,dmask=0000,fmask=0000 /dev/$device /mnt/$device
                else
                        mount /dev/$device /mnt/$device
                fi
  if [ -f /dev/${device}/swapfile ]; then
   mkswap /dev/${device}/swapfile
   swapon /dev/${device}/swapfile
  fi
                ;;
        remove)
  if [ -f /dev/${device}/swapfile ]; then
   swapoff /dev/${device}/swapfile
  fi
                umount /dev/$device
                ;;
    esac

fi

之后就可以自动挂载了!
4#
sun3797 发表于 2016-7-4 21:25 | 只看该作者
openwrt的挂载硬盘,与自动挂载的步骤可以参见我的微博:http://blog.sina.com.cn/s/blog_7b9016170102vhr9.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部