V880+ 提示磁盘空间不足的解决方法:(dalvik-cache 映射)

来源:互联网 发布:太极软件 编辑:程序博客网 时间:2024/04/29 11:41

V880+ 内置空间只有256M,非常有限,安装十多个应用后就提示:磁盘空间不足。

用ADB shell 连到手机上, 运行 busybox df -h 查看磁盘使用情况:

发现其实是/data目录使用了92%造成的。

决定将 /data/dalvik-cache 目录移到/system/sd (ext2)下。

运行:


/system/sd # mkdir dalvik-cache

/system/sd # busybox cp -a /data/dalvik-cache /system/sd/  

/system/sd # rm -r /data/dalvik-cache

/system/sd # ln -s /system/sd/dalvik-cache /data/dalvik-cache

/system/sd # reboot

ls -l 查看下。

(ok,其实失败了,重启后链接被重置了。)谁知道原因? 是dalvik-cache受保护不允许链接吗?

(ok在一个2.3.7的系统上成功了,耶!)


乘胜追击,继续把 app 目录也移到sd 下吧。

/system/sd # mkdir app

/system/sd # busybox cp -a /data/app /sd-ext/  

/system/sd # rm -r /data/app

/system/sd # ln -s /sd-ext/app /data/app

----------------------------------------------


/system/sd # mkdir app-private

/system/sd # busybox cp -a /data/app-private /sd-ext/  

/system/sd # rm -r /data/app-private

/system/sd # ln -s /sd-ext/app-private /data/app-private