system write permitted but not enought memory? - Wildfire Android Development

hi, I found somewhere a linux command which after running it on android terminal (as rooted):
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
I have been able to read and pull system folder.allthough when I try to manual copy busybox in the directory /system/xbin/ it tells me that there is not enought memory...any ideas how to bypass that too?
I am using eclair 2.1 with hboot 1.01.0001

Are you in the recovery.. When you are doing this?? if so, then enable "Mount /system" under advanced options..

beastaki23 said:
hi, I found somewhere a linux command which after running it on android terminal (as rooted):
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
I have been able to read and pull system folder.allthough when I try to manual copy busybox in the directory /system/xbin/ it tells me that there is not enought memory...any ideas how to bypass that too?
I am using eclair 2.1 with hboot 1.01.0001
Click to expand...
Click to collapse
this is HTC's NAND protection. you need to wait for S-OFF to get a writeable system partition. like the previous post mentioned, currently you can only write to system partition when you are in recovery mode (or flash update.zips)

Related

Help! Syntax please

mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
I have typed that in 5 times and it says it's a syntax error. I'm guessing it's a space issue or something. My phone is down.
What is the exact syntax?
Thanks
jlacy76 said:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
I have typed that in 5 times and it says it's a syntax error. I'm guessing it's a space issue or something. My phone is down.
What is the exact syntax?
Thanks
Click to expand...
Click to collapse
Are you sure your at the root prompt? Looks like this # and not this $
jlacy76 said:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
I have typed that in 5 times and it says it's a syntax error. I'm guessing it's a space issue or something. My phone is down.
What is the exact syntax?
Thanks
Click to expand...
Click to collapse
That syntax is correct. Are you invoking busybox's mount?
I finally got it, thanks.
The way it shows in the root guide is:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
The way I had to type it.
mount -o rw, remount -t yaffs2/dev/block/mtdblock3/system
It turned out to be a spaces issue.
I got that part done and then is said "Can't cd sdcard"
My sd card is formatted fat 32 and loaded the rc29 fine but won't cd to sd card. Does it need partitions or something?
Honestly, this is one of the most frustrating things I have ever done in trying to root this phone. Now I can't even use mount -o rw, remount -t yaffs2/dev/block/mtdblock3/system.
Please help me out I am still getting usage errors. It must be something to do with spaces in the syntax of mount -o rw, remount -t yaffs2/dev/block/mtdblock3/system
jlacy76 said:
Honestly, this is one of the most frustrating things I have ever done in trying to root this phone. Now I can't even use mount -o rw, remount -t yaffs2/dev/block/mtdblock3/system.
Please help me out I am still getting usage errors. It must be something to do with spaces in the syntax of mount -o rw, remount -t yaffs2/dev/block/mtdblock3/system
Click to expand...
Click to collapse
The syntax of those lines is all messed up. You need spaces between "yaffs2" and "/dev/block/mtdblock3" and "/system". If your phone is already rooted, just hook it up to adb and type adb remount.
Thanks jashsu, that did it. For a total noob like me, I just didn't understand.

Using terminal emulator (easy mount)

Im always using terminal emulator to mount the /system partition but got fed up of typing it in all the time so.....
Using terminal emulator by Jack Palkevich
MENU>PREFERENCES>INITIAL COMMAND>
Change it to su && mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
Voila now the system partition is mounted whenever you enter terminal emulator!
Hopefully someone else will find this as useful as i have.

mounting the data partition

I know this works for mounting the system
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
but whats the string for mounting the /data ?
either in adb or terminal emulator
Yes I have/am searched/ing.....
Thank to whom ever can answer
type remount and look for the data in adb it should list off strings
more clarity please. Trying a bunch of options still getting acces denided and operation not permitted
If it helps I cant even adb shell then su.
Yes I am rooted
Yes my phone is in pc mode
bad4u6669 said:
I know this works for mounting the system
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
but whats the string for mounting the /data ?
either in adb or terminal emulator
Yes I have/am searched/ing.....
Thank to whom ever can answer
Click to expand...
Click to collapse
Try
su
mount -o rw,remount -t ext3 /dev/block/userdata /data
Sent from my DROIDX using XDA App
drew630 said:
Try
su
mount -o rw,remount -t ext3 /dev/block/userdata /data
Sent from my DROIDX using XDA App
Click to expand...
Click to collapse
Finally got a chance to test it last night, and it worked! thanks!

[Q] Hello there have some problems with moving system files

Hi i moved some files from system/app into the sd card to get some space so i could use the metamorph app but i didnt work so i was going to move back the files from the sd card to system/app but now they wont move there anyone know a soloution how to do this?
thanks in advance
system is readonly
you must do an
adb shell
mount /dev/block/mtdblock3 /system
then you can fool around with your system apps
mount /dev/block/mtdblock3 /system || I wrote that but it says
"mount: mounting /dev/block/mtdblock3 on /system failed: Device or resource busy"
i rooted my phone yesterday quite knew to android and i have no clue what to do
You are doing that in recovery mode right?
I tried in ClockworkMod Recovery v2.5.0.1 but it says Device or resource busy :/ have no clue.
ClockworkMod has a nice green menu on screen from where you can see (partitions menu) which partitions are already mounter and which are not.
You can also do adb shell and run "mount" in it to see which partitions are mounted and in what way. ClockworkMod has /etc/fstab so you can mount system just by running "mount /system". If system is already mounted, you can cd to /system/app and try "touch test". If you get permission denied then your system is mounted read-only otherwise you will see test file in /system/app if you run "ls".
I did adb shell and did run "mount" and it says /dev/block/mtdblock3/ on /system type yaffs2 <ro>
I downloaded a app called root explore and the main reason for that was so i could move some files from system/app so i could get some free space so i could use metamorph that was my plan and i moved some files i have eard you could move that wouldnt harm anything but it wasnt enough free space, so my plan was to move back the files i had moved into the sd card some went great but i have like 4 files that i cant bks it says "You cannot paste here because the file system is read-only" is there any other way to push those file into the system/app again? have tried the things u wrote up.
And im not a very pro of theese things i started with this yesterday so excuse me for being stupid!
This:
/dev/block/mtdblock3/ on /system type yaffs2 <ro>
...means that system is mounted read-only (mind that "ro" at the end).
Try running "mount -o remount,rw /system". If it doesn't help run "cat /etc/fstab" and post here the output. You need to be in recovery mode while doing this of course!
did "mount -o remount,rw /system" and it said mount: can't find /system in /proc/mounts
and the other one said
/dev/block/mtdblock4 /cache yaffs2 rw
/dev/block/mtdblock5 /data yaffs2rw
/dev/block/mtdblock3 /system yaffs2 rw
/dev/block/mmcblk0p1 /sdcard vfat rw
/dev/block/mmcblk0p2 /sd-ext auto rw
used my brain a little now and in the recovery settings i did mount the /system in the menu and now i tried to write cd /system/app and now in the cmd it is like this "/system/app #" anything useful?
Sure... as I already told you try to run "touch /system/app/test". This command shoud make empty test file in /system/app. If you get permission denied then you have read-only system. If it suceede, then your /system is writable and you can see all the contents of /system/app by runing "ls".
I wrote that and it wrote the same
"touch /system/app/test"
no permmission denied then it may have worked?
i checked and there is a testfile in /system/app now
I think i got it to work now thanks man for all your help!

[Q]: Read-only filesystem

Hi!
I have rooted my phone (LG Optimus 2X) and mistakenly deleted some files.
I have these files, and want to push them back using adb, put my problem is, that when i try to mount the system in read / write mode using "adb remount" i get this error: "remount faileded: Operation not permitted".
I can't figure out how to fix it, i can pull files etc.
I have also tried to use the adb shell, and copy the files from the internal sdcard, but i'm getting the same error.
Only read-mode.. :/
Anybody who can help, fixing this problem?
If you want to mount /system just write:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
Then you're good to go
How to unmount into read-mode only?
Thank! - You saved my day
mrhtml said:
How to unmount into read-mode only?
Thank! - You saved my day
Click to expand...
Click to collapse
A little easier to type...
Mount r/w
Code:
busybox mount -o,remount -rw /system
Mount r/only
Code:
busybox mount -o,remount -r /system
Edit: You shouldn't post stuff like this in dev

Categories

Resources