From the dev's forum :
- To use Clemsyn-Blades 3.2 OC (v2-4) with PRIME 1.7-final, do following:
Install PRIME 1.7-final
Delete /system/lib/modules/voodoo-sound.ko (eg rename voodoo-sound.bak)
Install Clemsyn-Blades OC kernel
Everything should be fine, voodoo-sound enabled in kernel
Click to expand...
Click to collapse
Forgive my noobness but how do you mount /system in read/write mode instead of read only ?
I tried mount -o rw,remount -t ext4 /dev/block/mmcblk0p1 /system while in root in an adb shell but it screwed the tablet, shut it down and turned it in bootloop...
Can someone script the correct method please ?
Thx
mathmath5151 said:
From the dev's forum :
Forgive my noobness but how do you mount /system in read/write mode instead of read only ?
I tried mount -o rw,remount -t ext4 /dev/block/mmcblk0p1 /system while in root in an adb shell but it screwed the tablet, shut it down and turned it in bootloop...
Can someone script the correct method please ?
Thx
Click to expand...
Click to collapse
This is what I use (because I don't want to try to get all the -o options right, only the ones I know for certain):
$su
# mount -o rw,remount /system
// and after changes
# sync
# mount -o ro,remount /system
# exit
$ exit
...
Hopefully that'll work OK for you. I'm talking about doing this from within terminal emulator, although I'm sure it's the same from adb shell. I just tried it again to be sure.
The idea is that since it's just a change in how it's mounted, it knows everything about how it's mounted already, so just tell it to change the ro/rw flag and to remount. You can see a lot of flags if you just type in # mount | grep system, but entering them correctly and in sequence might be another story.
Good luck -
Disregard
Sent from my Transformer TF101 using Tapatalk
It worked, thanks
Well, method for noobs : use root explorer application
Sent from my Transformer TF101
Related
Im trying to push a new browser to a system directory, but i dont have access to a pc at the moment. Can i achieve this without using a pc? Possibly through terminal emulator?
Yes, it's possible.
Code:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cp /sdcard/Contacts.apk /system/app/Contactcs.apk
and reboot.
For those wondering what the command means:
su = superuser...gives root privileges
mount = the command to mount drives as devices
-o rw,remount = sets options for remounting the drive as read/write (not read-only)
-t yaffs2 = tells the OS that the partition is yaffs2 format (rather than fat or ext2)
/dev/block/mtdblock3 = the device node for the partition
/system = the human-accessible mount point for the partition
cp = copy
didnt work. Mind you i tried to install the H build contacts.apk to G build, and im not sure if its really possible to do it.
when its all said and done, it shows a "broken link icon" and when you go to it, it says "application is not installed on your phone"
suggestion
It may not have worked because u have to move the contacts.apk first? Is there a line of code to move the original browser.apk to a directory for safety, then move the one from the sdcard into that spot?
I think this has been discussed before somewhere on here. The H contacts app depends on some other HTC things being installed to work.
The OP was asking about the browser, not contacts. The commands I gave do work. But you need more than just the Contacts.apk to get full functionality.
I was just showing that it *is* possible to do adb actions without adb or a pc. Sorry if using "Contacts.apk" in the example code confused anyone.
I have Motorola XT720. Device is rooted, but I don't have possibility to change any file in system folders. I need it for overclocing/undervolting. Is there any way to change it? I used root explorer and it give me info that system is read only.
In root explorer you must click the r/w mount button on the top of the screen. Why not just get milestone overclock for you over/under clocking needs.
I'm an idiot I simply didn't see that option... Thank you very much. Reason why i do not want use milestone overclocking is, I want to set undervolting for all frequencies and add conservative governor.
Dont feel bad I didn't see it either at first.
in adb shell
$ su
$ mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
$ rm /system/'filename'
$ $ mount -o ro,remount -t yaffs2 /dev/block/mtdblock4 /system
$ sync
$ reboot
teruyume said:
$ mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
Click to expand...
Click to collapse
Just be careful that your /system may be mounted off a different partition, depending on your rom. Like mine is /dev/block/mtdblock7.
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
Hi! My problem is that I want to mod /system/etc stuff. But problem is: I can't mount /system rw in adb shell!
I'm using CM11 20140622 Nightly
What i've tried:
- sysrw command(alias sysrw='mount -o remount,rw /system')
- by hand(mount -o remount,rw /dev/block/platform/msm_sdcc.1/by-name/system /system)
None of those commands produce output and they exit 0
- ES File Explorer and CM File Manager
I don't know how, but mounting rw in UI always works, but not over adb.
Can anyone tell me a solution how to mount /system rw successfully over shell?
mikroskeem said:
Hi! My problem is that I want to mod /system/etc stuff. But problem is: I can't mount /system rw in adb shell!
I'm using CM11 20140622 Nightly
What i've tried:
- sysrw command(alias sysrw='mount -o remount,rw /system')
- by hand(mount -o remount,rw /dev/block/platform/msm_sdcc.1/by-name/system /system)
None of those commands produce output and they exit 0
- ES File Explorer and CM File Manager
I don't know how, but mounting rw in UI always works, but not over adb.
Can anyone tell me a solution how to mount /system rw successfully over shell?
Click to expand...
Click to collapse
Code:
adb root
adb shell
mount -o remount,rw /dev/block/platform/msm_sdcc.1/by-name/system /system
Sent from my Nexus 5 using Tapatalk
rootSU said:
Code:
adb root
adb shell
mount -o remount,rw /dev/block/platform/msm_sdcc.1/by-name/system /system
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Still same thing, no rw, no output
mikroskeem said:
Still same thing, no rw, no output
Click to expand...
Click to collapse
Windows or Linux? Are you using an outdated adb?
That's definitely correct, I tested it.
rootSU said:
Windows or Linux? Are you using an outdated adb?
That's definitely correct, I tested it.
Click to expand...
Click to collapse
Linux, adb version 1.0.31
Yeah it's correct but problem is it doesn't work.
mikroskeem said:
Linux, adb version 1.0.31
Yeah it's correct but problem is it doesn't work.
Click to expand...
Click to collapse
remove and reinstall your adb
Works fine with that command on both windows and linux for me.
Does adb devices even work?
Can you screenshot the error?
rootSU said:
remove and reinstall your adb
Works fine with that command on both windows and linux for me.
Does adb devices even work?
Can you screenshot the error?
Click to expand...
Click to collapse
No error output, i'm in adb shell so "[email protected]:~ #" will appear
I run commands there.
adb itself works fine.
mikroskeem said:
No error output, i'm in adb shell so "[email protected]:~ #" will appear
I run commands there.
adb itself works fine.
Click to expand...
Click to collapse
Screenshot please
Of this:
Code:
H:\>adb root
adbd is already running as root
H:\>adb shell
[email protected]:/ # mount -o remount,rw /dev/block/platform/msm_sdcc.1/by-name/system /system
platform/msm_sdcc.1/by-name/system /system <
[email protected]:/ #
rootSU said:
Screenshot please
Of this:
Code:
H:\>adb root
adbd is already running as root
H:\>adb shell
[email protected]:/ # mount -o remount,rw /dev/block/platform/msm_sdcc.1/by-name/system /system
platform/msm_sdcc.1/by-name/system /system <
[email protected]:/ #
Click to expand...
Click to collapse
sorry can't make screenshot atm, but i copyed terminal contents to here: http://hastebin.com/dicuhiyema.hs
EDIT: 6th line is the mount command, it wrapped badly
mikroskeem said:
sorry can't make screenshot atm, but i copyed terminal contents to here: http://hastebin.com/dicuhiyema.hs
Click to expand...
Click to collapse
Ah yeah that's as good as a screenshot.
Theres no option in CM11 dev options for adb root is there? I have on in SlimKat where I must enable ADB root.
mikroskeem said:
EDIT: 6th line is the mount command, it wrapped badly
Click to expand...
Click to collapse
Yeah my ubuntu terminal does that too.
rootSU said:
Ah yeah that's as good as a screenshot.
Theres no option in CM11 dev options for adb root is there? I have on in SlimKat where I must enable ADB root.
Yeah my ubuntu terminal does that too.
Click to expand...
Click to collapse
There is actually and it's set to "Apps and ADB", but I might try out next nightly. It might doesn't have that problem anymore. Prolly some SELinux conflict or kernel blocks something
Now it works.
I think it was CM problem.
mikroskeem said:
Now it works.
I think it was CM problem.
Click to expand...
Click to collapse
At first I was thinking it was your computer but everything you were doing was right so I agree. It seems it was.
Sent from my Nexus 5 using Tapatalk
using bin/mount rather than xbin/mount
mikroskeem said:
I can't mount /system rw in adb shell!
What i've tried:
- sysrw command(alias sysrw='mount -o remount,rw /system')
...
Can anyone tell me a solution how to mount /system rw successfully over shell?
Click to expand...
Click to collapse
For posterity, I'm adding what worked for me on LolliKat (which is cm11) for doing this from the phone's console/shell: I had to use the command `/system/bin/mount` rather than just `mount`. Once that had been done once, the other methods would work fine until reboot. (I was doing this because somehow link2sd had lost its ability to "update mount scripts" and "integrate system app updates".
These all worked for me:
/system/bin/mount -o remount,rw /system
/system/bin/mount -o remount,rw -t yaffs2 /system
/system/bin/mount -o remount,rw -t yaffs2 /system /system
/system/bin/mount -o remount,rw -t yaffs2 /dev/block/mtdblock8 /system
More info (in my own context) here and here:
http://forum.xda-developers.com/showpost.php?p=61068974&postcount=3
http://android.stackexchange.com/a/110883/109855
Back in 5.1.1, I was able to mount the system partition.
Now in 7.0, I couldn't mount it anymore without making my phone crash
I've tried different methods...
Code:
mount -o rw,remount -t ext4 /system
This crashes my phone
Code:
mount -o rw,remount,rw -t ext4 /system
This reports back "...Device or Resource busy"
So then I was thinking that something might be using that directory so I tried to make a system mount point in /mnt, thinking as processes depend on /system, I must make another mount point
So I did, this time, "mount" says system is mounted with "ro,seclabel,relatime,norecovery" as it's option. so when I changed it to "rw,seclabel,relatime,norecovery", it doesn't mount, with no errors
So I tried, with system mounted on /mnt/system,
Code:
# mount -o rw,remount -t ext4 /dev/block/sda18 /mnt/system
(don't worry I know you can do ".../platform/xxxxxxxx.ufs/by-name")
This ALSO crashes my phone
So I pretty much gave up, and looked online, and all I found was the same process, but nothing on "this crashes my phone" or any other.
Agreed
I had the same problem. Hard lock up of phone.
how did u get root via adb??
DDwhite said:
how did u get root via adb??
Click to expand...
Click to collapse
https://forum.xda-developers.com/verizon-galaxy-s6/general/unlock-bootloader-t3688594