How to Mount Filesystem as RW From Terminal in Android Q - Android Q&A, Help & Troubleshooting

I just installed Android Q and was trying to mount the filesystem as RW in Android Terminal.
When I run:
su
mount -o remount,rw /system
I get an error that says '/dev/block/sda33' is read-only
I tried an app from the Play Store called "Mount /system RO/RW" but it didn't make a difference
I was just wondering if there is a solution yet for this?

Same issue, have not been able to rectify it.

Related

Cannot mount with ADB

Hello all,
I am trying to push a file to my system, however I do not seem to be able to mount my system partition.
When I try to execute the following command, I always get the error "Operation not permitted" :
Code:
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
My phone is rooted and my USB debugging is on !!
Anyone no what could cause this. It has always worked when I was still on 1.6 (rooted) and now it doesn't allow me access.
When I use Rootexplorer, I have R/W access, so root works.
Anyone has any tips or advise ?
Try...
adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
Tried that, and get permission denied
Should have added, make sure your screens on on the phone and allow SuperUser access when you type su.
never mind, one sec

[Q] Can't mount /system with ADB

So I'm totally unable to do anything to my /system in CWM via ADB.
Code:
> adb remount
remount failed: Operation not permitted
> adb push item.apk /system/app/item.apk
Failed: Permission denied
adb shell
$: su
Segmentation fault
$: rootsh
~# mount /system
mount: mounting /dev/block/mmcblk0p9 on /system failed: Device or resource busy
~# su
# mount /system
mount: mounting /dev/block/mmcblk0p9 on /system failed: Device or resource busy
# mount /system/app
can't find /system/app in /etc/fstab/
Pressing "unmount /system" in CWM results in "Error unmounting /system!" message. I tried pressing "Fix Permissions" but it didn't help. The only thing it did was that "su" results in "Segmentation fault" instead of "Permission denied". I just flashed my Lite'nin ROM again but it didn't fix anything.
I do have root access in normal OS so I can probably do some stuff in terminal emulator. But why is /system busy all the time?
try this:
adb shell
$ su
# mount -o rw,remount -t yaffs2 /dev/block/mmcblk0p9
kaukassus said:
try this:
adb shell
$ su
# mount -o rw,remount -t yaffs2 /dev/block/mmcblk0p9
Click to expand...
Click to collapse
Thanks. That apparently mounted the /system but adb was still unable to push the files there. Maybe that is because "su" is still not working, only "rootsh". So I moved the file to my sdcard and then moved it to /system in shell.
Jiia said:
Thanks. That apparently mounted the /system but adb was still unable to push the files there. Maybe that is because "su" is still not working, only "rootsh". So I moved the file to my sdcard and then moved it to /system in shell.
Click to expand...
Click to collapse
since you are using a Secured Kernel(probably the CF-Root with CWM), you have to push the files to /sdcard
and then copy the files from the sdcard to the /system directory.
you can only push files with adb directly to the /system directory, when you are using an insecured kernel.
kaukassus said:
since you are using a Secured Kernel(probably the CF-Root with CWM), you have to push the files to /sdcard
and then copy the files from the sdcard to the /system directory.
you can only push files with adb directly to the /system directory, when you are using an insecured kernel.
Click to expand...
Click to collapse
Oh. Thanks for the info, that cleared things up! I thought you only need to have a custom recovery in order to push with adb but apparently it's about the kernel.
kaukassus said:
try this:
adb shell
$ su
# mount -o rw,remount -t yaffs2 /dev/block/mmcblk0p9
Click to expand...
Click to collapse
this not working for me ,still can't mount the system i can't rm9 at ADB at all please help me !

Need to Mount /System/app as RW to Fix Phone

Can anyone give me the command to mount /system/app as rw I screwed up something in there and can't seem to figure out how to mount it correctly so I can fix it via ADB
***Edit****
I was able to figure it out. The command was:
mount -o remount,rw /system

Cant mount system as RW?

Is there some kind of trick to mounting system as rw so adaway can modify the hosts file. I have cm10 on here ATM
Did you try something like 'adb shell mount -o remount,rw /' ?
HTH

Curious: order of mount options making a difference, trying to remount /system r/w

Hey,
for years I've been remounting /system read-write with the following call from a root shell:
Code:
mount -o remount,rw /system
With Android 7.1.2 and specifically the SuperMan ROM on my SGS7 edge, this no longer works:
Code:
mount -o remount,rw /system
mount: '/dev/block/platform/155a0000.ufs/by-name/SYSTEM'->'/system': Device or resource busy
A bit of searching on the web revealed that the following, however, does work:
Code:
mount -o rw,remount /system
Can someone figure out why the order would matter?
I find this especially curious because e.g. the Synapse app seems to use remount,rw as well, at least I see the same error when trying to use it to remount the `/system` partition.
Thanks for any insights!

Categories

Resources