in Terminal emulator I am trying:
su
mount -o rw,remount /system
cp /mnt/sdcard/build.prop /system/
but I get: cp: can't create '/system/build.prop': Out of memory
any help is GREATLY appreciated. Currently build.prop is MISSING in /system/ (i've searched xda and google for the past 2 hours...)
EDIT: I get the same error from adb:
adb remount
adb push build.prop /system/
failed to copy 'build.prop' to '/system//build.prop': Out of memory
side question: what happens when build.prop is missing, and phone reboots...?
try it in recovery
or much simply just reflash the rom..no wipe is necessary.
andQlimax said:
try it in recovery
or much simply just reflash the rom..no wipe is necessary.
Click to expand...
Click to collapse
tnx, will try.
anyone knows what happens if it reboots with empty (or missing) build.prop?
Related
Hello folks,
I have a Wildfire, running CM7 #36, Jacob's 4.1 Kernel flashed.
Now I wanted to edit the /system/build.prop to get access to further apps (rom manager pro, e.g.).
After remounting system via
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
I wanted to copy/remove or whatever the /system/build.prop, but I only get
# rm /system/build.prop
rm: can't remove '/system/build.prop': Directory not empty
What does this mean? /system/build.prop is surely not a directory (ls -al).
Any help would be appreciated - can't post in the development-forums because of unsufficient number of posts - thanks,
Guntram
Don't remove it...
Pull build.prop using adb, edit and push it back to /system
Sent from my HTC Wildfire using XDA App
Hello Kevin1625,
unfortunately, this gives the same message (which I don't understand anyways?):
Code:
$ adb push build.prop /system
failed to copy 'build.prop' to '/system/build.prop': Directory not empty
Any ideas?
Are you doing this via terminal??
Adb is used on your computer.
Sent from my HTC Wildfire using XDA App
Mount system via recovery.
Open a cmd
cd into your tools folder
adb pull /system/build.prop
Edit it.
adb push build.prop /system/build.prop
adb reboot
I think youre trying to adb shell, there is no need.
Sent from my HTC Wildfire using XDA App
Thanks kevin2516 (what are these numbers for?)!
Seems, that build.prop is somehow blocked, when trying to access it on the running phone.
When I adb push on the mounted /system in recovery, everything seems to work fine.
Except, that I don't get the wanted result (Rom Manager Premium in the market) :-(.
Did you got it running, using SympMarket (which only once gave me >4000 video results - but I'm not able to reproduce ;( )?
If so, do you remember how?
Thanks a lot,
Guntram
thank you so much man! saved my phone after i accidently set PPI to 280 :L
and you should also adb shell chmod 644 /system/build.prop
Device says that system directory can not be accessed when pushing the file
I'm trying to push the ics tethering fix through adb and it keeps telling me i can't replace the framework-res.apk because its a read only file. could anyone help me with this? Thank you
dgray66 said:
I'm trying to push the ics tethering fix through adb and it keeps telling me i can't replace the framework-res.apk because its a read only file. could anyone help me with this? Thank you
Click to expand...
Click to collapse
You will need root AND busybox for this to work. For some strange reason the stock Android doesn't even have the copy command. Push the file to your sdcard, then in your terminal type the following
"su
mount -w -o remount system /system
cp -f /sdcard/framework-res.apk /system/framework/framework-res.apk
reboot"
I have been trying for hours now to remount the /system partition rw using terminal emulator with no luck. I can do it just fine using root explorer, but thats not what im after. Im trying to make it so that system is mounted rw on boot. But every command i have known to work in the past, and every one i found thru googling has not worked. The command finishes with no errors, but /system is still ro. I even went as far as to unpack the boot img and change /system to be rw on mount. But again when i boot up /system is still ro. Its like something is protecting it or remounting it ro again. By editing the boot.img i was able to mount the root directory (/) rw on boot, but doing the same edit to the /system mount point seems to have no effect. Anyone know what im missing here? I am s-off, unlocked, i have an insecure boot.img, i have root, i dont know how much more insecure my phone could be. If root explorer and other apps are able to do it, there has to be a way to do it thru a shell.
cmlusco said:
I have been trying for hours now to remount the /system partition rw using terminal emulator with no luck. I can do it just fine using root explorer, but thats not what im after. Im trying to make it so that system is mounted rw on boot. But every command i have known to work in the past, and every one i found thru googling has not worked. The command finishes with no errors, but /system is still ro. I even went as far as to unpack the boot img and change /system to be rw on mount. But again when i boot up /system is still ro. Its like something is protecting it or remounting it ro again. By editing the boot.img i was able to mount the root directory (/) rw on boot, but doing the same edit to the /system mount point seems to have no effect. Anyone know what im missing here? I am s-off, unlocked, i have an insecure boot.img, i have root, i dont know how much more insecure my phone could be. If root explorer and other apps are able to do it, there has to be a way to do it thru a shell.
Click to expand...
Click to collapse
Try this:
Create an executable script - like this one:
Code:
#!/system/bin/sh
# Make system rw
chmod 666 /system;
mount("ext4", "EMMC", "/dev/block/mmcblk0p35", "/system");
Save it in your storage location as systemmount (or whatever).
Open terminal, type su.
Type:cd /sdcard/
Type: systemmount
Exit and see if that works. I have not tested it.
Thanks but no luck
Code:
exec /system/bin/sh '/storage/emulated/legacy/Download/scripts/00remount'
/Download/scripts/00remount' <
Unable to chmod /system: Read-only file system
/storage/emulated/legacy/Download/scripts/00remount[4]: syntax error: '"ext4",' unexpected
Put the mount first before chmod. Delete ext4 and emmc
Sent from my Lunar Ecliptic One.
Thanks, but i figured it out. It turns out the command i had used in the first place was correct. (mount -o remount,rw /system). After i ran the command i would check with root explorer to see if it worked, and it always showed it did not. But when you check it the correct way, the way i shoukd have been in the first place, by typing 'mount' in terminal it shows it did indeed get remounted rw. So its an issue with root explorer, not with the command i was using.
Incidently if you do the command 'mount' without su permission, it shows sysyem as ro, but if you do it under an su prompt it shows it as rw.
cmlusco said:
Thanks, but i figured it out. It turns out the command i had used in the first place was correct. (mount -o remount,rw /system). After i ran the command i would check with root explorer to see if it worked, and it always showed it did not. But when you check it the correct way, the way i shoukd have been in the first place, by typing 'mount' in terminal it shows it did indeed get remounted rw. So its an issue with root explorer, not with the command i was using.
Incidently if you do the command 'mount' without su permission, it shows sysyem as ro, but if you do it under an su prompt it shows it as rw.
Click to expand...
Click to collapse
Nice work.
Sent from my Lunar Ecliptic One.
trying lots but ab shell say system is read only ??
Krprem said:
trying lots but ab shell say system is read only ??
Click to expand...
Click to collapse
#1 you need to be rooted, if you're not this won't work
Mount system RW: mount -o rw,remount,rw /system
Mount system RO: mount -o ro,remount,ro /system
dicksteele said:
#1 you need to be rooted, if you're not this won't work
Mount system RW: mount -o rw,remount,rw /system
Mount system RO: mount -o ro,remount,ro /system
Click to expand...
Click to collapse
i try its work but when i reboot modifiy file gone away ...??
any premanet fix bro ??
thank u in advance
Krprem said:
i try its work but when i reboot modifiy file gone away ...??
any premanet fix bro ??
thank u in advance
Click to expand...
Click to collapse
You must not have saved it right or something.
Find a file manager in playstore that can do root privileges.
Or since you know adb. Pull the file, edit it then push it back.
Adb pull /system/build.prop
Edit the file
Adb push /system/build.prop
Bro can u give me step by step instruction about adb push and pull
Can i edit my efs folder because i lost my csc code and sn number
I am trying to add new folder in efs
The last time I carried out this task [probably a couple of years back], I could easily do so via a root file manager app or either of the two commands followed by adb pull/push [under a rooted shell environment]
mount -o rw,remount /system
mount -o rw,remount /
However, all these tweaks no longer work. So could anyone point me in the right direction as to how to get this job done?
PS: the file that I am trying to edit is stored under system/product/etc/device_features
While I could still view the contents of that XML file, however, I cannot make any changes to it. So your help in this regard will be highly appreciated.
Update 1: Flashed this module and successfully mounted the system partition. However, unable to perform adb pull [in a rooted shell environment], being greeted with the /system/bin/sh: adb: inaccessible or not found error.
Any insights?