Coder Social home page Coder Social logo

Comments (36)

Somnr123 avatar Somnr123 commented on June 14, 2024

延迟挂载30秒也没效果

from istoreos.

jjm2473 avatar jjm2473 commented on June 14, 2024

执行ls -l /sys/block,结果发出来看看。

from istoreos.

Somnr123 avatar Somnr123 commented on June 14, 2024

执行ls -l /sys/block,结果发出来看看。

image

from istoreos.

jjm2473 avatar jjm2473 commented on June 14, 2024

执行cat /etc/config/fstab看看

from istoreos.

jjm2473 avatar jjm2473 commented on June 14, 2024

你是怎么重新挂载的?

from istoreos.

Somnr123 avatar Somnr123 commented on June 14, 2024

你是怎么重新挂载的?

Umount /mnt
Mount /mnt命令

from istoreos.

jjm2473 avatar jjm2473 commented on June 14, 2024

那你自己都指定了挂载点,当然没问题啊。还是看看 /etc/config/fstab

from istoreos.

Somnr123 avatar Somnr123 commented on June 14, 2024

执行cat /etc/config/fstab看看

image

from istoreos.

Somnr123 avatar Somnr123 commented on June 14, 2024

那你自己都指定了挂载点,当然没问题啊。还是看看 /etc/config/fstab

不能重启,重启后还是-1 -4

from istoreos.

jjm2473 avatar jjm2473 commented on June 14, 2024

看起来/etc/config/fstab也没问题,那只能推测是开机时/sys还没挂载,硬盘却先挂载了。

你试试umount两个分区以后,执行/usr/libexec/blockmount.sh,看是不是能自动挂载到正确位置

from istoreos.

Somnr123 avatar Somnr123 commented on June 14, 2024

看起来/etc/config/fstab也没问题,那只能推测是开机时/sys还没挂载,硬盘却先挂载了。

你试试umount两个分区以后,执行/usr/libexec/blockmount.sh,看是不是能自动挂载到正确位置

卸载一个,重新挂载后还是-1image

from istoreos.

jjm2473 avatar jjm2473 commented on June 14, 2024

执行md5sum /rom/usr/libexec/blockphy.sh /usr/libexec/blockphy.sh看看

from istoreos.

Somnr123 avatar Somnr123 commented on June 14, 2024

执行md5sum /rom/usr/libexec/blockphy.sh /usr/libexec/blockphy.sh看看

image

from istoreos.

jjm2473 avatar jjm2473 commented on June 14, 2024

执行这段脚本看看:

testfunca(){
local DISK=sda
local path=`readlink /sys/block/$DISK`
echo "path=$path" >&2
local usb=`echo "$path" | grep -oE '/usb\d+/[^:]+'`
echo "usb=$usb" >&2
    if [ -n "$usb" ]; then
        usb=${usb##*/}
        usb=${usb%%-1}
        echo usb`echo "$usb" | sed 's/[-.]/_/g'`
        return 0
    fi
}
testfunca

from istoreos.

Somnr123 avatar Somnr123 commented on June 14, 2024

执行这段脚本看看:

testfunca(){

local DISK=sda

local path=`readlink /sys/block/$DISK`

echo "path=$path" >&2

local usb=`echo "$path" | grep -oE '/usb\d+/[^:]+'`

echo "usb=$usb" >&2

    if [ -n "$usb" ]; then

        usb=${usb##*/}

        usb=${usb%%-1}

        echo usb`echo "$usb" | sed 's/[-.]/_/g'`

        return 0

    fi

}

testfunca

image

from istoreos.

jjm2473 avatar jjm2473 commented on June 14, 2024

看起来你这个grep命令不正常。执行echo '../path/usb2/2-2/2-2:0-0/' | grep -oE '/usb\d+/[^:]+'看看

from istoreos.

jjm2473 avatar jjm2473 commented on June 14, 2024

还有执行ls -l $(which grep)看看

from istoreos.

jjm2473 avatar jjm2473 commented on June 14, 2024

哦,我知道了,应该是你安装了grep这个包,覆盖掉了默认的busybox提供的grep,导致结果不一致

from istoreos.

jjm2473 avatar jjm2473 commented on June 14, 2024

你可以先卸载掉grep和sed(如果安装了),或者等下个版本固件发布

from istoreos.

Somnr123 avatar Somnr123 commented on June 14, 2024

还有执行ls -l $(which grep)看看

我执行了这俩命令,你看下image

from istoreos.

Somnr123 avatar Somnr123 commented on June 14, 2024

你可以先卸载掉grep和sed(如果安装了),或者等下个版本固件发布

自己没安装过,但是能搜到image

from istoreos.

jjm2473 avatar jjm2473 commented on June 14, 2024

可以确定你安装了,固件只会自带busybox版本的。至于怎么安装的我就不知道了。

from istoreos.

Somnr123 avatar Somnr123 commented on June 14, 2024

可以确定你安装了,固件只会自带busybox版本的。至于怎么安装的我就不知道了。

这个挂载问题可以解决吗🤣

from istoreos.

jjm2473 avatar jjm2473 commented on June 14, 2024

你可以先卸载掉grep和sed(如果安装了),或者等下个版本固件发布

前面不是说了吗?

from istoreos.

Somnr123 avatar Somnr123 commented on June 14, 2024

你可以先卸载掉grep和sed(如果安装了),或者等下个版本固件发布

前面不是说了吗?

是在系统-软件包里面搜到,然后卸载删除是吗,上面回我的没看明白

from istoreos.

jjm2473 avatar jjm2473 commented on June 14, 2024

嗯,从软件包里面卸载就行了

from istoreos.

jjm2473 avatar jjm2473 commented on June 14, 2024

卸载以后执行echo '../path/usb2/2-2/2-2:0-0/' | grep -oE '/usb\d+/[^:]+'应该结果就不一样了

from istoreos.

Somnr123 avatar Somnr123 commented on June 14, 2024

嗯,从软件包里面卸载就行了

删除不掉,会报错image

from istoreos.

Somnr123 avatar Somnr123 commented on June 14, 2024

卸载以后执行echo '../path/usb2/2-2/2-2:0-0/' | grep -oE '/usb\d+/[^:]+'应该结果就不一样了

再搜软件包里没有grep了,应该是卸载了。我执行一下image

from istoreos.

jjm2473 avatar jjm2473 commented on June 14, 2024

那暂时没问题了。看起来是“移动通信模块”这个插件依赖了grep。

from istoreos.

Somnr123 avatar Somnr123 commented on June 14, 2024

那暂时没问题了。看起来是“移动通信模块”这个插件依赖了grep。

这样是修复好了吗,我现在重启也不会出现挂载-1 -4现象吗?

from istoreos.

jjm2473 avatar jjm2473 commented on June 14, 2024

试试就知道了

from istoreos.

jjm2473 avatar jjm2473 commented on June 14, 2024

至少grep没问题了

from istoreos.

Somnr123 avatar Somnr123 commented on June 14, 2024

试试就知道了

您太厉害了,我重启下没有问题,请问下是我安装istore里面软件的问题,还是更新版本的原因,我好规避一下,以防再次出现问题

from istoreos.

jjm2473 avatar jjm2473 commented on June 14, 2024

暂时先别安装“移动通信模块”这个插件就行了。等之后固件或者插件兼容以后再安装。

from istoreos.

Somnr123 avatar Somnr123 commented on June 14, 2024

暂时先别安装“移动通信模块”这个插件就行了。等之后固件或者插件兼容以后再安装。

明白了,感谢大佬

from istoreos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.