Adb mount system data no root - General Questions and Answers

Hi, is there a way I can mount /data and /system for either RW or R permissions on an unrooted device?
For Read on /data I want to be able to pull the wpa_supplicant.conf file out of an unrooted phone...
Sent from my VS986 using Tapatalk

Related

[Q] [q] 4.0.4 /system rw access

Hello,
I have P6800 with 4.0.4 XXLQ2, rooted with supersu 0.96, CWM is 6.0.1.1, everything done via odin.
The question is: im unable to remount /system with rw permissions. I've even tried to kill processes which are working with /system to remount it in other place (like /mnt/s) but no luck. Tried to change init.rc also. Got new adb, etc, etc... but Im still unable to do mount -o rw,remount /system cuz its readonly.
Please help guys, how to mount it with rw perms? Maybe i've got some bug?
thecoba said:
Hello,
I have P6800 with 4.0.4 XXLQ2, rooted with supersu 0.96, CWM is 6.0.1.1, everything done via odin.
The question is: im unable to remount /system with rw permissions. I've even tried to kill processes which are working with /system to remount it in other place (like /mnt/s) but no luck. Tried to change init.rc also. Got new adb, etc, etc... but Im still unable to do mount -o rw,remount /system cuz its readonly.
Please help guys, how to mount it with rw perms? Maybe i've got some bug?
Click to expand...
Click to collapse
CWM 6.0.1.9 + recovery with adb finally helped me..

[Q] ADB Push and internal storage

Hi all,
I accidentally deleted internal storage while I was trying to flash paranoid android on my Nexus 5. I then managed to push the ROM.zip back into my phone's internal storage using ADB Push. I installed the ROM but after the ROM installed, the zip file is no longer in the internal storage. What happened to the zip package? Where did it go?
Thanks for your help in advance.
/data/media
Sorry
The media dir is blank. I used the command as ADB push ROM.zip /sdcard
thenighthawk said:
Sorry
The media dir is blank. I used the command as ADB push ROM.zip /sdcard
Click to expand...
Click to collapse
Use
adb rom.zip /sdcard/
Sent from my Nexus 5 using XDA Free mobile app
thenighthawk said:
Sorry
The media dir is blank. I used the command as ADB push ROM.zip /sdcard
Click to expand...
Click to collapse
It isn't blank. You're just using a file explorer without permissions to view it.
If you used CWM recovery when you adb pushed, its as already state by @Aerowinder... . In /data/media because CWM recovery still mounts /sdcard as /data/media instead of what android 4.2+ mounts it as which is /data/media/0
Sent from my Nexus 5 using Tapatalk
rootSU said:
It isn't blank. You're just using a file explorer without permissions to view it.
If you used CWM recovery when you adb pushed, its as already state by @Aerowinder... . In /data/media because CWM recovery still mounts /sdcard as /data/media instead of what android 4.2+ mounts it as which is /data/media/0
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
I used TWRP v2.6.3
I will look in TWRP Mount settings if I can configure the permissions.
thenighthawk said:
I used TWRP v2.6.3
I will look in TWRP Mount settings if I can configure the permissions.
Click to expand...
Click to collapse
What permissions?
Sent from my Nexus 5 using Tapatalk
You're right. There are no permissions to configure in TWRP file explorer.
Should I switch to CWM?
Just boot into android and use a proper file explorer with root access.
Or you can use adb and Linux command line to
mount /data
ls /data/media
To see if the file is there.
Also I know with Philz recovery when you formatted /sdcard, the 0 folder from /data/media/0 was gone leaving only /data/media (until a commit was made to recreate 0) so its possible TWRP does the same making /sdcard temporarily mount to /data/media
Anyway not sure where it is if its not there
No don't change to CWM
Sent from my Nexus 5 using Tapatalk

Whatsapp with Multirom

I'm currently using multirom to test android L and use Kitkat, I want to use the same Whatsapp account.
Is it possible if I have the same emei and android id on both roms and I use Helium to sync Chatlogs?
I don't use multirom so I'm not familiar with the data structure but in the 2nd ROM, can you not symlink from the original /data/data/WhatsAppDir to the new one?
Sent from my Nexus 5 using Tapatalk
Do you mean ln -s /data/data/Whatsappfolder /2Rom/data/data/whatsappfolder?
That's a symlink, yes.
Sent from my Nexus 5 using Tapatalk
When trying with download folder I got a error that this function is not implemented (I have root and busybox)
You're maybe doing it the wrong way round. Also I'm not sure if it will work because I don't know the folder structure.
Sent from my Nexus 5 using Tapatalk
dav20011 said:
When trying with download folder I got a error that this function is not implemented (I have root and busybox)
Click to expand...
Click to collapse
I have never linked a data folder on android, but if "ln -s ..." doesn't work, maybe you should try "busybox ln -s ..." ?
keiwop said:
I have never linked a data folder on android, but if "ln -s ..." doesn't work, maybe you should try "busybox ln -s ..." ?
Click to expand...
Click to collapse
Just realised he tried to link the download folder. He cannot link that as it's on /sdcard. You can only link ext4 partitions, not FAT, exFAT, NTFS etc /system and /data are the only linkable directories
rootSU said:
Just realised he tried to link the download folder. He cannot link that as it's on /sdcard. You can only link ext4 partitions, not FAT, exFAT, NTFS etc /system and /data are the only linkable directories
Click to expand...
Click to collapse
Isn't the Nexus 5 /sdcard formatted as ext4 since it's just a FUSE virtual file system of part of the /data partition?
raptir said:
Isn't the Nexus 5 /sdcard formatted as ext4 since it's just a FUSE virtual file system of part of the /data partition?
Click to expand...
Click to collapse
No. /data is ext4 (or f2fs for some of us). /sdcard itself is not ext4. FUSE doesn't support symlinking
You can test it yourself
Code:
su
mkdir /data/data/test
ln -s /data/data/test /sdcard/test
function not implemented
ln -s /data/data/test /data/media/0/test
successful
You can see in /data/media/0/test that symlinking is working. Add a file and it appears in /data/data/test. However, /sdcard/test as it is a symlink, not directory, is not visible or accessible
Is the root dir also use able for symlink? I got a read only error but I changed everything rwx
Edit: Use terminal emulator chmod and not es file explorer
Last question: does anybody know where multirom saves the roms?
i know im late...
But: multirom stores the roms at /data/media/0/multirom/roms
Were you successful using whatsapp on 2 roms?

/system remounting as RO after explicit RW mount

I have used the adb shell to mount my system partition as RW (mount -o remount,rw /system) but it appears to revert to RO. I can't tell exactly why.
I wish to move app updates to /system.
I have used CF Auto Root to root the device.
I installed Titanium Backup Pro.
I have set the app mode to AUTO/indirect as recommended for Samsung devices.
I select Integrate updates to system ROM (or similar, I don't have the screen in front of me). As soon as I do this, the /system partition is remounted as read only (cat /proc/mounts | grep system)
TB just seems to hang. The Gmail base.apk has been copied to /system/apps and the com.google.android.gm-1 folder has been removed from /data/app.
If I don't mount /system as RW the same thing happens.
If I manually copy the app data from /data/app to /system/app and set the permissions the app still fails to function.
Does anyone have any ideas why this is happening?
EDIT:
I cannot load apks via adb - I am told I have a RO file system, even though I can clearly see the /system partition is mounted.

ES File Explorer mount rw not possible for /system

Hello
I rooted my device and try to copy folders to /system. I use ES File Explorer. But when I click on Root-Explorer and mount rw, then there is nothing i can click on, no directory i can chose RO or RW for.
Does anyone know why i cant set RW for /system?
My device is rooted with magisk. and it says i have superuser-Permissions for the app
ChrisK2 said:
Hello
I rooted my device and try to copy folders to /system. I use ES File Explorer. But when I click on Root-Explorer and mount rw, then there is nothing i can click on, no directory i can chose RO or RW for.
Does anyone know why i cant set RW for /system?
My device is rooted with magisk. and it says i have superuser-Permissions for the app
Click to expand...
Click to collapse
Here is what i mean, thee should be zthe option to make /system RW

Categories

Resources