remote-android / redroid-doc

redroid (Remote-Android) is a multi-arch, GPU enabled, Android in Cloud solution. Track issues / docs here
4.32k stars 311 forks source link

rock5b启动redroid,Gallery提示No external storage available #339

Open binge1993 opened 1 year ago

binge1993 commented 1 year ago

Describe the bug 如题,Rock5b开发板,运行在Ubuntu 20.04上,存储是nvme

adb shell连接redroid容器中查看:/proc/partitions

redroid_arm64:/ $ cat /proc/partitions 
major minor  #blocks  name

   1        0       4096 ram0
  31        0      16384 mtdblock0
 259        0  250059096 nvme0n1
 259        1     524288 nvme0n1p1
 259        2  249517448 nvme0n1p2

执行mount -a提示

redroid_arm64:/ $ mount -a
mount: bad /etc/fstab: No such file or directory

并且无法进入sdcard目录,需要su之后才可以进入

redroid_arm64:/ $ cd /sdcard
/system/bin/sh: cd: /sdcard: Permission denied

Screenshots d26e9c375977de9a2fca461e7d89310

zhouziyang commented 1 year ago

seems something wrong with the sdcard daemon (fuse based)

binge1993 commented 1 year ago

seems something wrong with the sdcard daemon (fuse based)

我应该如何排查这个问题呢?dmesg中没有相关错误提示

sunO2 commented 1 year ago

老哥 这个问题解决了不

binge1993 commented 1 year ago

不知道具体的原因是什么,但是我换了debian和armbian都可以,只有ubuntu不行

sunO2 commented 1 year ago

不知道具体的原因是什么,但是我换了debian和armbian都可以,只有ubuntu不行

那估计不是同一个问题了 我这边有个sdcard 丢失的问题 /sdcard: Transport endpoint is not connected 用着用着 莫名其妙sdcard 没用了

leebuy commented 1 year ago

不知道具体的原因是什么,但是我换了debian和armbian都可以,只有ubuntu不行

那估计不是同一个问题了 我这边有个sdcard 丢失的问题 /sdcard: Transport endpoint is not connected 用着用着 莫名其妙sdcard 没用了

这个问题有解决方案么?

zhouziyang commented 1 year ago

Check #354 if sdcard missing after multiple container started.

plusls commented 1 year ago

我翻到了一条日志:

11-08 19:11:17.201 30334 30334 W ContextImpl: Failed to ensure /storage/emulated/0/Android/data/com.android.gallery3d/cache: android.os.ServiceSpecificException:  (code -1)

然后瞎猜是不是这个目录创建失败了,手动帮他创了一个就能打开了