Mount /oem - Android Software/Hacking General [Developers Only]

Solution: https://forum.xda-developers.com/moto-g6/help/mount-oem-t3818446
How I can mount /oem directory that I can uninstall system apps from there? I have tried mount -o rw,remount /oem from terminal but it didn't worked. TWRP can't mount that too. When i try this adb command: "mount -o rw,remount /oem" I will get this error: '/dev/block/dm-0' is read-only
Phone is Moto G6 Plus and rooted with Magisk.

Related

Sometimes impossible to mount system partition ?

How to explain that it is impossible to mount the system partition in recovery ? Should I format my sd card to correct that ?
the /system/ files do not reside in your sd card. They are stored in your phone. Are able to boot up your phone at all? If so you can mount it via a terminal app. You might also need busybox installed. At the terminal type the following
$ su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock1 /system

[Q] Having trouble mounting \system in rw on BAMF 1.5

Hey guys,
Loaded BAMF 1.5 yesterday and have been enjoying the ROM thus far. However, I've been trying to push my custom widget.txt to the \system\customize\ folder so I can have my own power controls in the notifcation bar. I have tried the Mount rw/ro app from the Market, and have also tried mounting rw using adb (mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system).
Each time, when I use the command: adb push widget.txt /system/customize/ I get the error: failed to copy 'widget.txt' to '\system\customize\': Read-only file system
Where am I going wrong?
Seth
sethschmautz said:
Hey guys,
Loaded BAMF 1.5 yesterday and have been enjoying the ROM thus far. However, I've been trying to push my custom widget.txt to the \system\customize\ folder so I can have my own power controls in the notifcation bar. I have tried the Mount rw/ro app from the Market, and have also tried mounting rw using adb (mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system).
Each time, when I use the command: adb push widget.txt /system/customize/ I get the error: failed to copy 'widget.txt' to '\system\customize\': Read-only file system
Where am I going wrong?
Seth
Click to expand...
Click to collapse
I'm pretty sure the TB is using EXT3, not YAFFS2.
Try
Code:
mount -o remount,rw -t ext3 /dev/block/mtdblock3 /system
Even easier, assuming you have busybox. busybox mount isn't as lame as the standard mount which is provided, so you don't have to tell it as much, it can figure things out on its own:
busybox mount -o remount,rw /system
busybox mount -o remount,ro /system
Click to expand...
Click to collapse
even easier.
sysrw
sysro
Doesn't anyone ever read the first post of my rom?
I'm an idiot. Thanks for the ext3 vs yaffs2 reminder.
I'll try busybox at some point also to check
And to Adrynalyne, apparently I didn't read the first post...my bad. Thanks for reading mine, though. I'll pay closer attention in the future.
Seth

Filesystem issues

Whelp, I screwed up my filesystem. So I was messing around with commands and tried to remount /data and /cache in rw mode.
I used this command
mount -o remount,rw /
Forgot to finish typing and pressed enter, and it mounted the rootfs into rw mode.
Tried to fix so I ran
mount -o remount,ro /
Probally shouldn't have done that now that I think about it.
It mounted all of the partitions in ro mode including the sdcard.
So I was like lets go to recovery and do a nandroid restore, well it somewhat worked. It fixed all the partitions, I think, except /sdcard
Now when I try to: mount -o remount,ro /sdcard I get an error saying there is no such object.
Same with mount -o remount,ro /storage/emulated/0
Is there a command to fix this or do I need to reflash firmware?

[Q] Moto G (XT1032) Internal partition formatted problem

My first gen moto g is stuck in a bootloop, everything i have done so far has not worked.I have tried to flash using fastboot and mfastboot with different stock images in all I get failed to erase partition, remote failure.
The internal storage says it has 0 mb of space. I have Twrp installed and using cat /proc/partitions finds no partitions
~ # ←[6ncat /proc/partitions cat /proc/partitions major minor #blocks name
I have managed to push a Stock rom but can´t flash it with mount data error,mount sd card error, mount system error and mount cache error..
I have tried to use Adb remount but it fails
remount failed: Success
I also tried the following commands
adb shell
su
mount -o rw,remount -t yaffs2 /system
mount -o rw,remount -t yaffs2 /data
mount -o rw,remount -t yaffs2 /cache
And they give the following error
adb shell ~ # ←[6nsu su /sbin/sh: su: not found ~ # ←[6nmount -o rw,remount -t yaffs2 /system mount -o rw,remount -t yaffs2 /system mount: can't find /system in /proc/mounts ~ # ←[6nmount -o rw,remount -t yaffs2 /data mount -o rw,remount -t yaffs2 /data mount: can't find /data in /proc/mounts
In recovery mode, i went to advanced, then Terminal Command, then entered the command df and it listed
Filesystem 1K BLocks Used Available %Use
tmpfs/dev 443852 48 443804 0
tmpfs/tmp 443852 24 443828 0
I have also uploaded a recovery.log
Any help would be greatly appreciated
I have found this xda post with the partition table and sizes of the moto g. http://forum.xda-developers.com/showpost.php?p=48855450&postcount=35
I also found this xda post where they partition the emmc http://forum.xda-developers.com/showthread.php?t=2596521 , if someone could help me identify what should I put in adb.
I think the solution is to reformat using adb but i dont know how.
I have the exact same problem and would love to know if you have fixed it please.

[Q]android M,adb shell can't mount partition.Permission denied

Hi there,Since my M9 update to android M.I want to deodex RUU like what I did in android 5.0.
Code:
adb shell
su
stop
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
this is what I did.and shows like this
Code:
[email protected]_himaulatt:/ $ su
[email protected]_himaulatt:/ # stop
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
mount: Permission denied
I don't know what should I do. I use charge only option when I plug to USB.
if there any solution.I will be very happy:silly:

Categories

Resources