Search code examples
androidandroid-emulatoradbandroid-tv

Why does adb remount fail?


When I enter adb remount the terminal responds with

Skip mounting partition: /product

Skip mounting partition: /product_services

W DM_DEV_STATUS failed for scratch: No such device or address E

[liblp]No device named scratch

[liblp]Partition scratch will resize from 0 bytes to 814587904 bytes

[liblp]Updated logical partition table at slot 0 on device /dev/block/by-name/super

[libfs_mgr]Created logical partition scratch on device /dev/block/dm-3

[libfs_mgr]__mount(source=/dev/block/dm-3,target=/mnt/scratch,type=f2fs)=0:

Success

Skip mounting partition: /product

Skip mounting partition: /product_services

[libfs_mgr]__mount(source=overlay,target=/vendor,type=overlay,upperdir=/mnt/scratch/overlay/vendor/upper)=0 Skip mounting partition: /product Skip mounting partition: /product_services

/system/bin/remount exited with status 7 remount

failed

enter image description here

Why is adb remount failing here?


Solution

  • You need to run

    adb root
    adb disable-verity
    adb reboot
    

    and after reboot

    adb root
    adb remount
    

    This can get a bit tricky because of the reboot. You might find this post relevant: Is adb remount broken on android api 29?