how to remount in Android8.1.0 on IMX8MEVK board

cancel
Showing results for 
Search instead for 
Did you mean: 

how to remount in Android8.1.0 on IMX8MEVK board

Jump to solution
1,443 Views
coindu
Contributor IV

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 . 

Labels (1)
0 Kudos
1 Solution
470 Views
deexithamba
Contributor III

Hello,

These steps helped me in remounting;

D:\platform-tools>adb root

D:\platform-tools>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 failed

D:\platform-tools>adb disable-verity
Successfully disabled verity
Now reboot your device for settings to take effect

D:\platform-tools>adb reboot

D:\platform-tools>adb root

D:\platform-tools>adb remount
remount succeeded

Regards,

Deexith

View solution in original post

0 Kudos
4 Replies
471 Views
deexithamba
Contributor III

Hello,

These steps helped me in remounting;

D:\platform-tools>adb root

D:\platform-tools>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 failed

D:\platform-tools>adb disable-verity
Successfully disabled verity
Now reboot your device for settings to take effect

D:\platform-tools>adb reboot

D:\platform-tools>adb root

D:\platform-tools>adb remount
remount succeeded

Regards,

Deexith

View solution in original post

0 Kudos
470 Views
adeel
Contributor III

disable-verity won't let you remount system partition I think.

0 Kudos
470 Views
coindu
Contributor IV

Thanks for your help.

It seems that system should reboot when execute disable-verity command.

0 Kudos
470 Views
deexithamba
Contributor III

Hello coindu

Since dm-verity protection lives in the kernel, you have to reboot it once again so android comes up with dm-verity disabled kernel.

Regards,

Deexith

0 Kudos