Giter Site home page Giter Site logo

Comments (2)

Rushyoung avatar Rushyoung commented on August 30, 2024

幸运的是,我在红迪的一个五年前的帖子中找到了解决办法https://www.reddit.com/r/linux4noobs/comments/bj7ezk/genymotion_increase_internal_storage_space/
以下是我个人成功实现扩容的经历
扩容操作需要软件包 qemu-img 以及 android-tools (adb)
首先找到对应虚拟机对应的虚拟磁盘,一般在 ~/.Genymobile/Genymotion/deployed/{你的虚拟机名称}/data.qcow2

扩容前请对该虚拟磁盘进行备份

执行命令qemu-img resize ~/.Genymobile/Genymotion/deployed/{你的虚拟机名称}/data.qcow2 50G(调整为自己想要的大小)

接下来需要进入安卓的shell操作
启动Genymotion的虚拟机,确保对应的虚拟机的开发者模式中的adb调试打开

一般情况下执行adb devices应当能看到
List of devices attached
127.0.0.1:6555 device
这样的输出

若连接不上且不知道对应的端口,请执行{Genymotion软件根目录}/gmtool admin list查看,执行adb connect {ip}:{port}

连接上以后执行'adb shell'进入安卓终端,如同时连接了多个安卓设备,执行'adb -s 127.0.0.1:6555 shell这样的命令来指定连接 然后列出虚拟机当前挂载的分区df -h`
输出类似于

Filesystem      Size  Used Avail Use% Mounted on
rootfs          1.9G  4.4M  1.9G   1% /
tmpfs           1.9G  328K  1.9G   1% /dev
tmpfs           1.9G     0  1.9G   0% /mnt
none            1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/block/vda6 3.9G  0.9G  2.9G  26% /system
/dev/block/vdb1 232M  176K  232M   1% /cache
/dev/block/vdb3  13G   12G  148M  99% /data
/dev/block/vdc1 504M   16K  504M   1% /mnt/shared
/data/media      13G   12G  148M  99% /mnt/runtime/default/emulated

寻找被挂载在/data的文件路径,即/dev/block/vdb3
执行'resize2fs /dev/block/vdb3 你应该看到类似于The filesystem on /dev/block/vdb3 is now 13039360 (4k) blocks long.`这样的输出
然后重启虚拟机,就成功扩容到了64g

from azurlaneautoscript.

Rushyoung avatar Rushyoung commented on August 30, 2024

然而Genymotion似乎还是不支持nvidia的显卡加速(gtx960)

from azurlaneautoscript.

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.