找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1466|回复: 5

op挂载固态硬盘问题。

[复制链接]
发表于 2020-3-29 08:12 | 显示全部楼层 |阅读模式
家里闲着1块老旧固态硬盘,装上硬盘盒子当移动硬盘用。在电脑上显示使用都没问题,为啥插入K3 openwrt 无法使用啊?
发表于 2020-3-29 08:21 | 显示全部楼层
文件格式是什么样的,ntfs不支持
回复 支持 反对

使用道具 举报

发表于 2020-3-29 08:50 | 显示全部楼层
DiskGenius  重新分区试试,一个分区就好,多了影响速度。另外NTFS也能识别。
回复 支持 反对

使用道具 举报

发表于 2020-3-29 09:17 | 显示全部楼层
老毛子绝对能识别
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-3-29 14:01 | 显示全部楼层
好,谢谢大家哈,我试试
回复 支持 反对

使用道具 举报

发表于 2020-3-29 23:37 | 显示全部楼层
添加USB支持 opkg install kmod-usb-core opkg install kmod-usb-ohci opkg install kmod-usb-uhci opkg install kmod-usb2 opkg install kmod-usb-storage opkg install usbutils opkg install mount-utils opkg install ntfs-3g opkg install kmod-fs-vfat opkg install fdisk opkg install blkid opkg install block-mount lsusb #查看usb设备 opkg install kmod-fs-ext4 opkg install e2fsprogs ls -l /dev |grep sda  #可以插上U盘测试一下 #U盘,移动硬盘自动挂载脚本 编辑/etc/hotplug.d/block/10-mount  (用winscp工具连接路由,编辑文件) ___________________________以下是文件内容_________________________________ #!/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)                 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  ________________________________文件尾_________________________________ chmod 777 /etc/hotplug.d/block/10-mount  #加运行权限 这样就完成了自动挂载 插入USB硬盘后就会自动挂载
回复 支持 反对

使用道具 举报

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

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

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

GMT+8, 2024-6-25 13:55

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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