How to remount /system - 8.1 imx8m

cancel
Showing results for 
Search instead for 
Did you mean: 

How to remount /system - 8.1 imx8m

9,790 Views
fensy
Contributor II

how to remount the system  partitions?

> 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

>adb disable-verity
Device is locked. Please unlock the device first

> mount -o rw,remount /system
mount: '/system' not in /proc/mounts

>adb shell 'su mount -o rw,remount /system'
su: failed to exec -o: Permission denied

Any command will not remount.

how to remount...?

Tags (3)
7 Replies

1,339 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

To remount the system, Please use the below adb commands.

adb devices

adb root

adb disable-verity

adb reboot  (Wait until the reboot finishes)

adb root 

adb remount

After those commands, your system should be remounted successfully.

Best regards,

Diego.

1,339 Views
fensy
Contributor II

adb disable-verity is not worked.

> adb devices

> adb root

> adb disable-verity

 Device is locked. Please unlock the device first

> adb reboot  (Wait until the reboot finishes)

> adb root 

> 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

> adb disable-verity

 Device is locked. Please unlock the device first

it's same..

0 Kudos

1,339 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

Do you know what is your build type for your Android image? To know these, please use the bellow shell command.

# cat /system/build.prop | grep build.type

Your Android image needs to be in userdebug mode. Otherwise, it won't be possible to remount the system partitions.

Best Regards,

Diego. 

0 Kudos

1,339 Views
fensy
Contributor II

Hello.  thank you for your reply.

my build type is userdebug 

> cat /system/build.prop | grep build.type
   ro.build.type=userdebug

T.T 

but adb disable-verity is not work...

0 Kudos

1,339 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

Are you using a custom build image? Or the image that you are using, is one of our demo images? 

Best regards,

Diego.

0 Kudos

1,339 Views
fensy
Contributor II

Finally I solved.

1. Unlock the device.

  a. Boot up the device.

  b. Choose Settings -> Developer Options -> OEM Unlocking to enable OEM unlocking.

  c. Enter Fastboot mode on the device. Execute the following command on the target side:

      reboot bootloader

  d. Unlock the device. Execute the following command on the host side:
      fastboot oem unlock

  e. Wait until the unlock process is complete.

2. Disable DM-verity.

  a. Boot up the device.

  b. Disable the DM-verity feature. Execute the following command on the host side:
      adb root

      adb disable-verity

      adb reboot

     

1,339 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

Thank you for share your solution. This could help future problems.

Best Regards,

Diego.

0 Kudos