找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 3656|回复: 7

搞得晕晕的了,删了kmod-fs-ntfs,安装了ntfs-3g

[复制链接]
发表于 2020-12-3 10:55 | 显示全部楼层 |阅读模式
本帖最后由 coolcxm 于 2020-12-3 11:18 编辑

然后问题是,格成FAT32都能正常挂载,wind10下访问samba的共享目录也能正常读写
格成NTFS就不能自动挂载,用TTYD手工挂载后,但是win10下samba目录只能读不能写。格成EXT4之后能自动挂载了。但是win10下samba目录只能读不能写。


samba安装的就是 luci-app-samba
另外新版中的 nfs-3g好几个选项,我是全选了。不知道这几个区别在哪

本帖子中包含更多资源

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

×
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2020-12-3 14:10 | 显示全部楼层
自己搞定了
  1. #!/bin/sh



  2. # Copyright (C) 2009 OpenWrt.org  (C) 2010 OpenWrt.org.cn



  3. blkdev=`dirname $DEVPATH`

  4. if [ `basename $blkdev` != "block" ]; then



  5.     device=`basename $DEVPATH`

  6.     case "$ACTION" in

  7.         add)

  8.                 mkdir -p /mnt/$device

  9.                 # vfat & ntfs-3g check

  10.                 if  [ `which fdisk` ]; then

  11.                         isntfs=`fdisk -l | grep $device | grep NTFS`

  12.                         isvfat=`fdisk -l | grep $device | grep FAT`

  13.                         isfuse=`lsmod | grep fuse`

  14.                         isntfs3g=`which ntfs-3g`

  15.                 else

  16.                         isntfs=""

  17.                         isvfat=""

  18.                 fi



  19.                 # mount with ntfs-3g if possible, else with default mount

  20.                 if [ "$isntfs" -a "$isfuse" -a "$isntfs3g" ]; then

  21.                         ntfs-3g -o nls=utf8 /dev/$device /mnt/$device

  22.                 elif [ "$isvfat" ]; then

  23.                         mount -t vfat -o iocharset=utf8,rw,sync,umask=0000,dmask=0000,fmask=0000 /dev/$device /mnt/$device

  24.                 else

  25.                         mount /dev/$device /mnt/$device

  26.                 fi

  27.   if [ -f /dev/${device}/swapfile ]; then

  28.    mkswap /dev/${device}/swapfile

  29.    swapon /dev/${device}/swapfile

  30.   fi

  31.                 ;;

  32.         remove)

  33.   if [ -f /dev/${device}/swapfile ]; then

  34.    swapoff /dev/${device}/swapfile

  35.   fi

  36.                 umount /dev/$device

  37.                 ;;

  38.     esac



  39. fi
复制代码

编辑/etc/hotplug.d/block/10-mount
文件的内容,用上面的代码代换,重启后就可以自动加载NTFS了,同时FAT32中文乱码也解决了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-12-3 21:00 | 显示全部楼层
那antfs呢?

点评

antfs是什么啊,没用过  详情 回复 发表于 2020-12-4 09:11
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-12-4 09:11 | 显示全部楼层

antfs是什么啊,没用过

点评

内核版的ntfs驱动  详情 回复 发表于 2020-12-4 13:59
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-12-4 13:59 | 显示全部楼层
coolcxm 发表于 2020-12-4 09:11
antfs是什么啊,没用过

内核版的ntfs驱动

点评

没用过这个目前 这个挺好了  详情 回复 发表于 2020-12-4 14:44
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-12-4 14:44 | 显示全部楼层

没用过这个目前 这个挺好了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-11-8 17:57 来自手机 | 显示全部楼层
ext4只读怎么解决
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-2-2 23:32 | 显示全部楼层
大佬,我按你的脚本修改能加载读写NTFS格式了,但是速度很慢了,只有最快4M/S了。不知道是怎么回事?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-19 09:29

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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