AnsweredAssumed Answered

how to remount in Android8.1.0 on IMX8MEVK board

Question asked by coin du on Dec 12, 2018
Latest reply on Dec 13, 2018 by M.Adeel Sharif

Hi:

        how to remount the system and vendor partitions?

 evk_8mq:/system # cat /proc/mounts
/dev/root / ext4 ro,seclabel,relatime,data=ordered 0 0
devtmpfs /dev devtmpfs rw,seclabel,relatime,size=745032k,nr_inodes=186258,mode=755 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600,ptmxmode=000 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
/dev/block/dm-1 /vendor ext4 ro,seclabel,relatime,data=ordered,inode_readahead_blks=8 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
none /dev/memcg cgroup rw,relatime,memory 0 0
none /sys/kernel/debug debugfs rw,seclabel,relatime,mode=755 0 0
tmpfs /mnt tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
none /config configfs rw,relatime 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
none /dev/cpuset cgroup rw,relatime,cpuset,noprefix,release_agent=/sbin/cpuset_release_agent 0 0
pstore /sys/fs/pstore pstore rw,seclabel,relatime 0 0
/dev/block/by-name/userdata /data ext4 rw,seclabel,nosuid,nodev,noatime,nodiratime,noauto_da_alloc,errors=panic,data=ordered 0 0
adb /dev/usb-ffs/adb functionfs rw,relatime 0 0
tmpfs /storage tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
tracefs /sys/kernel/debug/tracing tracefs rw,seclabel,relatime 0 0
/data/media /mnt/runtime/default/emulated sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6,derive_gid 0 0
/data/media /storage/emulated sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6,derive_gid 0 0
/data/media /mnt/runtime/read/emulated sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=23,derive_gid 0 0
/data/media /mnt/runtime/write/emulated sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=7,derive_gid 0 0

 

     I use adb to remount the system ,but failed

 

    

D:\tools\adb>adb kill-server
* server not running *

D:\tools\adb>adb connect 192.168.30.104
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
connected to 192.168.30.104:5555

D:\tools\adb>adb root
adbd is already running as root

D:\tools\adb>adb remount
dm_verity is enabled on the vendor partition.
Use "adb disable-verity" to disable verity.
If you do not, remount may succeed, however, you will still not be able to write to these volumes.
remount of / failed: Permission denied
remount of /vendor failed: Read-only file system
remount failed

D:\tools\adb>adb disable-verity
verity is already disabled

D:\tools\adb>adb remount
dm_verity is enabled on the vendor partition.
Use "adb disable-verity" to disable verity.
If you do not, remount may succeed, however, you will still not be able to write to these volumes.
remount of / failed: Permission denied
remount of /vendor failed: Read-only file system
remount failed

 

   I test the same command and succuess remount the system in the android8.0.0 SDK . 

Outcomes