找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 6182|回复: 27

[N1盒子] 斐讯N1Samba挂载局域网存储,突破USB2.0限制

[复制链接]
本帖最后由 lu478gang 于 2021-6-6 18:15 编辑

斐讯N1Samba挂载局域网存储,突破USB2.0限制
(条件:局域网存储有usb3.0端口,有千兆网口)
有两种方法可以实现:一、远程挂载samba目录,二、远程挂载NFS目录
使用NFS服务 远程挂载也是非常稳定的!!



把局域网内的nas加载到斐讯n1的目录下,甚至可以是斐讯下载软件的数据目录download目录,突破usb2.0的传输速度限制,通过局域岗的千兆网卡速度来传输数据:

首先创建挂载目录:

mkdir -p /media/sandisk
chmod -R 777 /media/sandisk
mount -t cifs //192.168.1.XX/xx /media/sandisk -o username=XXX,password=XXX,iocharset=utf8
最后一行添加到开机启动:找到 /etc/rc.local 添加配置

在尾部,将刚才挂载远程nas的第一和第三个命令附加上  这要就完成了开机自动挂载的设置,
然后我们还可以 把这个远程挂载的目录,直接再通过N1的samba服务器分享出去,就像N1的本地samba共享目录一样被使用。
如果局域网上有多个nas可以整合起来,放到一起共享。

想卸载的话:umount -t cifs /media/sandisk


我的恩山、我的无线 The best wifi forum is right here.
有nas干嘛还要加个N1 多此一举

点评

价值还是有的。比如:NAS运算能力低时  详情 回复 发表于 2020-5-19 16:51
说过了 突破usb2.0速度限制,达到112M/s传输速度  详情 回复 发表于 2020-5-19 16:07
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
本帖最后由 lu478gang 于 2020-5-19 17:43 编辑
gewuen 发表于 2020-5-19 16:05
有nas干嘛还要加个N1 多此一举

因为这是斐讯N1的发贴区,主要是变相为N1 突破usb2.0速度限制,达到125M/s传输速度,坛友觉得多了一个开销   我当时考虑的是局域网内蹭别人家的nas
现在看来还有一种场景 不增加开销,路由器的usb3.0挂的smb移动硬盘

我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

gewuen 发表于 2020-5-19 16:05
有nas干嘛还要加个N1 多此一举

价值还是有的。比如:NAS运算能力低时
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

好想弄,可是看不懂啊.能详细点吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

那俩小写的xx是啥?

点评

@flysailor 是 samba共享文件夹名  详情 回复 发表于 2020-5-19 21:00
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
flysailor 发表于 2020-5-19 20:55
那俩小写的xx是啥?

@flysailor   是  samba共享文件夹名
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

先马一个,这个事情之前想折腾,不知从何下手,等过段时间空了,在家折腾一下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

你这个创建的/media/sandisk 是局域网的nas吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
难得用,不然猫盘还是有点意思
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

本帖最后由 zzf521888 于 2020-5-23 15:47 编辑

root@OpenWrt:~# mkdir -p /media/sandisk
root@OpenWrt:~# chmod -R 777 /media/sandisk
root@OpenWrt:~# mount -t cifs //192.168.1.177/Volume_1 /media/sandisk -o username=dns320,password
=890319,iocharset=utf8
mount: /media/sandisk: special device //192.168.1.177/Volume_1 does not exist.
root@OpenWrt:~# df -h
Filesystem                Size      Used Available Use% Mounted on
udev                    512.0K         0    512.0K   0% /dev
tmpfs                   180.9M     68.0K    180.9M   0% /run
/dev/mmcblk1p2          512.0M    363.8M     89.1M  80% /
tmpfs                   904.7M     15.9M    888.8M   2% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
cgroup                  904.7M         0    904.7M   0% /sys/fs/cgroup
/dev/mmcblk1p2          512.0M    363.8M     89.1M  80% /mnt/mmcblk1p3/docker
/dev/mmcblk1p2          512.0M    363.8M     89.1M  80% /mnt/mmcblk1p3/docker/btrfs
root@OpenWrt:~# ^C
root@OpenWrt:~# mount -t cifs //NAS-DLINK\Volume_1 /media/sandisk -o username=dns320,password=890
319,iocharset=utf8
mount: /media/sandisk: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program.
root@OpenWrt:~# df -h
Filesystem                Size      Used Available Use% Mounted on
udev                    512.0K         0    512.0K   0% /dev
tmpfs                   180.9M     68.0K    180.9M   0% /run
/dev/mmcblk1p2          512.0M    363.8M     89.1M  80% /
tmpfs                   904.7M     15.9M    888.8M   2% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
cgroup                  904.7M         0    904.7M   0% /sys/fs/cgroup
/dev/mmcblk1p2          512.0M    363.8M     89.1M  80% /mnt/mmcblk1p3/docker
/dev/mmcblk1p2          512.0M    363.8M     89.1M  80% /mnt/mmcblk1p3/docker/btrfs
root@OpenWrt:~# ^C
root@OpenWrt:~# mount -t cifs \\192.168.1.177\Volume_1 /media/sandisk -o username=dns320,password
=890319,iocharset=utf8
mount: /media/sandisk: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program.
root@OpenWrt:~# ^C
root@OpenWrt:~# mount -t nfs \\192.168.1.177\Volume_1 /media/sandisk -o username=dns320,password=
890319,iocharset=utf8
mount.nfs: remote share not in 'host:dir' format
root@OpenWrt:~# mount -t cifs \\NAS-DLINK\Volume_1 /media/sandisk -o username=dns320,password=890
319,iocharset=utf8
mount: /media/sandisk: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program.
root@OpenWrt:~# df -h
Filesystem                Size      Used Available Use% Mounted on
udev                    512.0K         0    512.0K   0% /dev
tmpfs                   180.9M     68.0K    180.9M   0% /run
/dev/mmcblk1p2          512.0M    363.8M     89.1M  80% /
tmpfs                   904.7M     16.1M    888.7M   2% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
cgroup                  904.7M         0    904.7M   0% /sys/fs/cgroup
/dev/mmcblk1p2          512.0M    363.8M     89.1M  80% /mnt/mmcblk1p3/docker
/dev/mmcblk1p2          512.0M    363.8M     89.1M  80% /mnt/mmcblk1p3/docker/btrfs
root@OpenWrt:~# mount -t cifs \\192.168.1.177\Volume_1 /media/sandisk -o username=dns320,password
=890319,iocharset=utf8
mount: /media/sandisk: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program.

本帖子中包含更多资源

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

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

一直挂载不上 大神能帮看下 那里写错了吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

感谢大神  命令改成 如下后 成功 mount -t cifs //192.168.1.177/Volume_1 /media/sandisk -o username=dns320,password=890319,iocharset=utf8,rw,vers=1.0

点评

感悟很深刻:斜杠 有时 倒向不同的方向 得到的结果完全不一样 结论:你 cifs后面的被挂载的路径 输入到win系统的 cmd验证一下 ,如果cmd 里输入的路径正确 ,可以访问共享资源,命令里 用这个路径 就没问题  发表于 2020-5-24 20:45
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
什么大神,嫖的吗?是b站韩风的教程吧

点评

@aidshiy 杠精 你好 没有说是教程 功能本来是linux固有的,操作并不复杂,贴子发斐讯区,就是告诉坛友n1设备上能用  详情 回复 发表于 2020-5-24 20:51
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
aidshiy 发表于 2020-5-23 16:38
什么大神,嫖的吗?是b站韩风的教程吧

@aidshiy 杠精 你好 没有说是教程  功能本来是linux固有的,操作并不复杂,贴子发斐讯区,就是告诉坛友n1设备上能用
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-27 01:46

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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