[Q] Mount Filesystem RW VIA ADB - Captivate Q&A, Help & Troubleshooting

With my old phones I could type remount in adb from my computer and the filesystem would remount. Is it possible to add this to the Captivate? If so how?

Search forum for the thread:
[Q] Noob needing help with adb remount!
I detail how to do it. I'd link, but I don't have permission.
Basically, issue a mount command to see the mount point for system. Then, manually remount it.

And next time post it in the right captivate forums section....this is development not Q&A...

I was shootig for development because I thought maybe it was a feature added by SRE or something. Thanks

Related

Trying to uninstall a couple of apps, please help

Hi all. I am wanting to get rid of a couple of apps I don't use (mainly Amazon MP3 and Work Mail). What I've tried is, while phone is in recovery mode, remount the /system
No Success:
Code:
$ adb remount
remount failed: Invalid argument
I've also tried this as suggested by some other members:
Code:
$ adb shell
mount -oremount,rw /dev/block/mtdblock3 /system
mount: mounting /dev/block/mtdblock3 on /system failed: Invalid argument
Yet I'm still unable to see/use /system/app. Is there anyone that might know what's wrong here?
ogwilson said:
Hi all. I am wanting to get rid of a couple of apps I don't use (mainly Amazon MP3 and Work Mail). What I've tried is, while phone is in recovery mode, remount the /system
No Success:
Code:
$ adb remount
remount failed: Invalid argument
I've also tried this as suggested by some other members:
Code:
$ adb shell
mount -oremount,rw /dev/block/mtdblock3 /system
mount: mounting /dev/block/mtdblock3 on /system failed: Invalid argument
Yet I'm still unable to see/use /system/app. Is there anyone that might know what's wrong here?
Click to expand...
Click to collapse
I could totally help you to uninstall these apps by spending a minute and typing up a few commands to allow you to do so.
But I won't, because you neglected to post this in the proper forum.
You will need to know the EXACT name of the apps you want to remove.
Reboot in to recovery
Alt+x
<enter>
#mount -o rw /dev/block/mmcblk0p2 /system
That will put your system folders in ReadWrite
Pay attention to the space's between
mount and -o
-o and rw
rw and /dev
mmcblk0p2 and /system
You can also use Terminal app
$su
#mount -o remount,rw /dev/block/mtdblock3 /system
I personaly use Root Explorer, its easy.
uansari1 said:
I could totally help you to uninstall these apps by spending a minute and typing up a few commands to allow you to do so.
But I won't, because you neglected to post this in the proper forum.
Click to expand...
Click to collapse
I'm sorry, I thought this was the correct forum. You don't have to be nasty about it, and you could at least point me in the right direction if you neglect to help otherwise.
Lakers3408 said:
You will need to know the EXACT name of the apps you want to remove.
Reboot in to recovery
Alt+x
<enter>
#mount -o rw /dev/block/mmcblk0p2 /system
That will put your system folders in ReadWrite
Pay attention to the space's between
mount and -o
-o and rw
rw and /dev
mmcblk0p2 and /system
You can also use Terminal app
$su
#mount -o remount,rw /dev/block/mtdblock3 /system
I personaly use Root Explorer, its easy.
Click to expand...
Click to collapse
Thanks for the help. I was able to successfully mount it using
Code:
#mount -o rw /dev/block/mtdblock3 /system
however, when i then try adb uninstall /system/app/Mail.apk, i get this
Code:
[email protected]:~$ adb uninstall /system/app/Mail.apk
/sbin/sh: pm: not found
not sure what this means exactly though. Your help is greatly appreciated, despite what some sour posters may think otherwise.
ogwilson said:
I'm sorry, I thought this was the correct forum. You don't have to be nasty about it, and you could at least point me in the right direction if you neglect to help otherwise.
Click to expand...
Click to collapse
No, I do have to be nasty about it... there have been way too many people like you around here lately, and it's irritating to say the least. Had you simply opened your eyes and read just the titles of the stickied threads in this very forum, you'd have seen this thread title!
"This is DEVELOPMENT section not General!!!!"
That means, go to General or Q&A to ask your question.
I'll tell you what though... go and start a new thread in the proper forum, and I'll explain step by step how to uninstall these apps.
@uansari
Just answer the damn question and send him on his merry way. Instead of going back and forth arguing like 5 year olds! You took the time to reply twice, if you would of gave him the answer on the first reply it would end there.
Anyways
@ogwilson
Try this after mounted
# rm /system/sd/app/Mail.apk
Lakers3408 said:
@uansari
Just answer the damn question and send him on his merry way. Instead of going back and forth arguing like 5 year olds! You took the time to reply twice, if you would of gave him the answer on the first reply it would end there.
Anyways
@ogwilson
Try this after mounted
# rm /system/sd/app/Mail.apk
Click to expand...
Click to collapse
Thank you, this worked wonderfully.
As for the other guy, I have read that thread over a few times when I first got my phone and I figured that the general questions thread was more for issues that didn't involve tinkering with the phone in these ways. Thats what I thought the development forum was for. And thats all you had to say. So I'm sorry if it wasn't exactly clear the first time, but people like you scare off people who simply are not clear on the exact rules, when the uses of each forum aren't extremely outlined and detailed.
Thanks again for the help Lakers. Is there a way for me to close this thread?
ogwilson said:
Thank you, this worked wonderfully.
As for the other guy, I have read that thread over a few times when I first got my phone and I figured that the general questions thread was more for issues that didn't involve tinkering with the phone in these ways. Thats what I thought the development forum was for. And thats all you had to say. So I'm sorry if it wasn't exactly clear the first time, but people like you scare off people who simply are not clear on the exact rules, when the uses of each forum aren't extremely outlined and detailed.
Thanks again for the help Lakers. Is there a way for me to close this thread?
Click to expand...
Click to collapse
Although he was jerk about it, he is right questions like your do belong in the Q&A. So in the future when in doubt please post in the Q&A.
As for YOU closing this tread, it can't be done. A Mod will move it or close it for you.
Also
You may want to copy and paste the commands on to your pc incase you forget them and you will.
Lakers3408 said:
Although he was jerk about it, he is right questions like your do belong in the Q&A. So in the future when in doubt please post in the Q&A.
Also
You may want to copy and paste the commands on to your pc incase you forget them and you will.
Click to expand...
Click to collapse
Yea I figured he was right or else he wouldn't have responded so strongly about it. I've acknowledged that and now know for the future that anything that I have a question about must go in Q&A.
And yea every time I get help on an obscure issue that requires obscure commands, I always paste them into a note document and save to my android folder. Now hopefully a mod can move this. Thanks again!
Lakers3408 said:
Although he was jerk about it, he is right questions like your do belong in the Q&A. So in the future when in doubt please post in the Q&A.
Also
You may want to copy and paste the commands on to your pc incase you forget them and you will.
Click to expand...
Click to collapse
Yes, I am a jerk, but I offered to help... just not in the wrong forum. I see no benefit in encouraging others to continue posting questions in this forum.
Anyway, this thread will be locked soon.
This is why I try not to post anything is this forum, I'm afraid to get chewed out for it.
Pinesal said:
This is why I try not to post anything is this forum, I'm afraid to get chewed out for it.
Click to expand...
Click to collapse
Lmao!
Yeah some people got bullied in high school or are still being bullied and this is there way of bullying back!
To be safe just post your question in the Q&A and you should be safe. But I'm sure some jerk will tell you that it does not belong there and it belongs in Development or Themes or Apps
Lakers3408 said:
Lmao!
Yeah some people got bullied in high school or are still being bullied and this is there way of bullying back!
To be safe just post your question in the Q&A and you should be safe. But I'm sure some jerk will tell you that it does not belong there and it belongs in Development or Themes or Apps
Click to expand...
Click to collapse
No one will ever tell you that, lol... questions belong in the Q&A forum. It's not rocket science kids.
Start asking your questions in the right sub-forum (Q&A) (Theme) or even in (General), or i will be forced to ban you for 3 days or till you learn.
Thanks
Thread Trashed!!

I can push media files using ADB with Cyanogen but not Hero ROM's?

I have done extensive searching in general, Q&A, and development of this forum, as well as Sapphire and have not been able to find an answer to my problem. I have learned that your media files have a delay if you store them on your sd card and that this can be rectified by pushing the media files into your system memory. The /system/media/audio is a read only file and it won't let you push files. This is a simple fix by enabling the read/write of the phone using:
mount -w /system -o remount
From there you can push the files and no lag between calls and hearing the ringtone. Tada. This works perfectly on Cyanogen...The same cannot be said about Hero ROM's.
I have tried several Hero ROM's and I cannot get the read/write to be enabled on the phone when I type in the command. I noticed the first time that the media was located on the /data of the phone. So I changed the ADB command accordingly, and it did not work either. So I thought that it might be because of the location, so I flashed another Hero ROM where I knew the media was located on the /system of the phone. The same thing happened. Where I cannot get it to enable the write capability. I have tried this on several Hero ROM's and cannot figure out why I cannot get this to work.
Any insight is always appreciated, and an answer to this is always more than welcome. Thanks guys.
try
$su
#sh /system/bin/rwsystem
Click to expand...
Click to collapse
if that doesnt work
mount -o remount,rw /dev/mtd/mtdblock3 /system
Click to expand...
Click to collapse
make sure you have enough space on the partitions (type df into console)

[Q] adb push permissions

Okay, I hate to ask, because I just know it's been asked before.
I've done a search and also read the adb how to here:
http://forum.xda-developers.com/showthread.php?t=723596
So I'm going to ask anyway, and I apologise profusely.
I am trying to push a file back to my Samsung Galaxy I9000.
I have it rooted using 'Super one click', and have managed to pull the file from the phone.
When I try to push it says 'Failed to copy, file is a read-only system'
The suggestions so far have included 'Adb remount', which gives me an additional error.
remount failed: No such file or directory
Also when I jump in shell apparently I am supposed to see a $, which indicates ADB is ready, instead I am seeing a #. I assume this means I'm not in super user mode, but unsure how to get there.
Any assistance appreciated. Basically I'm trying to upload a glass task bar just to get an idea of how to play around with this. But I get stuck at the first hurdle.
Yes, I have created backups of the files I am pulling and pushing
Thanks.
The easiest way if you're rooted is to use root explorer. Just go in the directory where you want to put the file, click in the upper right corner below the clock on R/W to change the system from read-only (R/O) to read & write and you're good to go to do whatever yoy want with the files on your phone.
edit: Also, you get in super user mode when you write su
is that adb su insert command here ?
Well, you asked how to get in super user mode - just write su. But I think # is what you should be getting in super user mode and not the dollar sign. Also, did you try using root explorer
Yeah, went and purchased root explorer. Does the job well, (cheers for that) I was just hoping to understand the computer system also.
there is a free program alternative to root explorer and i use it .it's supermanager.
I think this might help (for understanding)
adb shell
su
mount -rw,remount /dev/block/stl9 /system. (u can know u r /system complete path by typing "mount" in the shell).
after ur work
mount -ro
exit
exit
hope this helps.(The part i got stuck was after mounting as rw i could not get it back to ro )

[Q] Unable to Chmod my galaxy tab. SGH-T849

Hi,
I get through this with my eye's closed but when I have to type in the chmod line,and hit enter, it says, "unable to chmod : / Read-Only file system / I've asked this on many different forms, and researched it and tried a lot of code to fix it, none of witch worked, so now I'm just asking strait out if anyone knows how I can fix this, It's done this on 2 separate computers so It's doubtful that it's a PC problem.
Thanks for reading this and perhaps helping me, I'm about to rip my hair out, lol,
Kn0t
Wait what?
So it's rooted tab yeah and your? Terminal or abd? Into the system. So you have super user rights huh? And the system files are mounted as read/write? If you said yes to these questioned which I assume you will as it sounds like you are savvy with permissions and how android mounts its system files from the "eyes closed" part then its a new one on me, I have never heard of this problem?
Oh and what kernel you running? is it gingerbread or froyo?
Sent from my GT-P1000
Don't forget to grant superuser its permissions. Check if the app is asking for it. Perform adb with tab on, superuser will pop up.
I felt for that couple of times.
Anyway use root explorer navigate into //system/ and there will be a button on the top to mount the system read/write. Then long press your file and select the permissions you want. Hit the same. Button as before to remount as read only and your away..
Sent from my GT-P1000
speldenaar said:
Don't forget to grant superuser its permissions. Check if the app is asking for it.
I felt for that couple of times.
Click to expand...
Click to collapse
No having super user rights doesn't mean you can write or change system files per say.. you first need the system mounted read/write which as a super user you do have the rights to....
So yes su is important but I suspect the issue here is the way the system is mounted...
Sent from my GT-P1000
And lastly I'm thinking this doesn't qualify to be in the development section bud .. its a little cause and general and should be in General section not Here.
Sorry but its out of control on these boards.... these threads shouldn't be in the development section unless you are developing something or are replying to a development thread about, well.... a development ... or finally, ahhhhh....ummm, bah... development... just had to say it one more time and couldn't get a third reason... I don't want to be harsh or you think I'm flaming you its just my 2 cents....
Sent from my GT-P1000
You're trying to write data to a partition mounted as read only.
To mount the system partition so you can write to it, simple issue this command:
mount -o remount,rw /dev/block/mtdblock3 /system
And of course to mount it back to read only again:
mount -o remount,ro /dev/block/mtdblock3 /system
i have a SGH-T849..
i want to carrier unlock it.. also i couldn't find the dialer & the messaging application in the phone.. so wanted to know how to make voice calls & send messages in it??
Sorry for the bad English & for being a noob
it's adb,, and I have super permissions, yes and it says it's a Read-only file system when I go to write my chmod. The "eye's closed" part of my post was just me being sarcastic about the amount of phones I've done this too and the amount of time I've done it with zero problems.. that's all.
Yup, I did that.. thanks a lot for the advice..!!
nobleskill said:
No having super user rights doesn't mean you can write or change system files per say.. you first need the system mounted read/write which as a super user you do have the rights to....
So yes su is important but I suspect the issue here is the way the system is mounted...
Sent from my GT-P1000
Click to expand...
Click to collapse
Yes I agree but I don't know how to fix it that way.. thanks for helping
Sorry man. It was supposed to be moved to Q and A some time ago and it just never happened. My fault, my mistake. sorry to all that this bothers, and thank you to all that are helping me out.
~k~
nobleskill said:
Anyway use root explorer navigate into //system/ and there will be a button on the top to mount the system read/write. Then long press your file and select the permissions you want. Hit the same. Button as before to remount as read only and your away..
Sent from my GT-P1000
Click to expand...
Click to collapse
Thanks a lot for this advice, I tried it and got a message that says, "System permissions cannot be changed because the file system is Read-only"
Thanks again, it was worth a try.
~K~
quick question....
When do I enter that into my command prompt? right before I try to chmod or right after????
thanks a lot
~K~
mchampeli said:
i have a SGH-T849..
i want to carrier unlock it.. also i couldn't find the dialer & the messaging application in the phone.. so wanted to know how to make voice calls & send messages in it??
Sorry for the bad English & for being a noob
Click to expand...
Click to collapse
I think you have to put on a new rom that does that. try http://theunlockr.com/2010/11/29/how-to-flash-a-custom-recovery-image-on-the-samsung-galaxy-tab/
good luck
~K~
GldRush98 said:
You're trying to write data to a partition mounted as read only.
To mount the system partition so you can write to it, simple issue this command:
mount -o remount,rw /dev/block/mtdblock3 /system
And of course to mount it back to read only again:
mount -o remount,ro /dev/block/mtdblock3 /system
Click to expand...
Click to collapse
I tried that. I tried it like this and this is what happened..
# mount -o remount,rw /dev/block/mtdblock3 /system
# chmod 755 / data/local/bin/flash_image
Unable to chmod /: Read-only file system
Did I do it wrong. Should I of put that code in a different spot?
either way thank you for trying to help me out..
~K~
Yea I tried that and it said "system permission cannot be changed becausethe file system is Read-Only" so I don' know. But I do really appriciate you trying to help me out.
knotrkr said:
I tried that. I tried it like this and this is what happened..
# mount -o remount,rw /dev/block/mtdblock3 /system
# chmod 755 / data/local/bin/flash_image
Unable to chmod /: Read-only file system
Did I do it wrong. Should I of put that code in a different spot?
either way thank you for trying to help me out..
~K~
Click to expand...
Click to collapse
Whoops, I thought the file you were chmod'ing was in the system partition.
The data partition is already mounted with read/write.
Your chmod command is incorrect... there is an extra space in there.
It should be:
chmod 755 /data/local/bin/flash_image
I don't think the data partition is mounted as read only (I could be wrong, but I didn't think it was)

After making custom Boot Animation, Black Screen [FIXED]

I WROTE THE FOLLOWING WHILE TRYING TO TROUBLESHOOT/DOCUMENT MY OWN STEPS BUT I HAVE FOUND A SOLUTION. I HAVE POSTED THIS IN CASE SOMEONE ELSE MAY FIND THE INFORMATION USEFUL.
Is that appropriate? Move/delete this if you see fit.
I have an AT&T Moto X running 4.2.2 rooted with PwnMyMoto. Since it is with ATT, it has a locked bootloader.
[PROBLEM]
After putting a custom bootanimation.zip in the /system/media directory, device boots/"works" but display is black.
[HOW IT HAPPENED]
Using ES File Explorer, I turned on the /system r/w, copied the bootanimation.zip from the (internal) sdcard, and then overwrote the original boot animation (I do have a backup).
However, after booting the phone now, there is only a black screen. It seems to be working, there's just nothing displayed.
[WHAT I CAN DO/HAVE DONE]
ADB debugging has already been enabled
ADB shell has already been granted superuser permissions (Using SuperSU, unsure if solution works if this hasn't been done?)
It vibrates sometimes as though I have an email, notification, or whatever
I can access storage with usb cable,
adb get-state returns device,
I CAN get into fastboot (screen displays normally here), however PwnMyMoto overwrites recovery,
when rebooting the phone, the motorola power down animation is displayed
I tried to put back the original with
adb push bootanimation.zip /system/media
but get 'permission denied' (you may be able to use method this on a different device/carrier/ROM)
adb shell getprop ro.boot.write_protect returns 0
in adb shell
mv /sdcard/download/bootanimation.zip /system/media/ returns failed - cross-device link (googled this, seems normal, but I'm unsure how else to copy it back)
su
mount -o remount,rw /system
doesn't return anything but I am unsure where to go from there.
cannot run adb as root, as the phone is not a dev model
[RELATED POSTS]
http://forum.xda-developers.com/showthread.php?t=2249659
[HOW I FIXED IT]
start adb
ensure that 'adb shell getprop ro.boot.write_protect' returns 0 (if not, reboot into recovery)
start phone in recovery mode with
adb reboot recovery
then
adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mount -o remount,rw /system (not sure which one of these ended up being 'correct' but it didn't hurt to do both)
cp /sdcard/download/bootanimation.zip /system/media/ (copy <src> <dest>, src is wherever the backup zip is located, if you are unsure of where the files are, use the 'ls' command to navigate the directories)
adb reboot
After doing this, the screen started displaying as normal.
Apologies for the lack of technicality, not much a dev myself. Just glad to have it working again.
help
oc83 said:
I WROTE THE FOLLOWING WHILE TRYING TO TROUBLESHOOT/DOCUMENT MY OWN STEPS BUT I HAVE FOUND A SOLUTION. I HAVE POSTED THIS IN CASE SOMEONE ELSE MAY FIND THE INFORMATION USEFUL.
Is that appropriate? Move/delete this if you see fit.
I have an AT&T Moto X running 4.2.2 rooted with PwnMyMoto. Since it is with ATT, it has a locked bootloader.
[PROBLEM]
After putting a custom bootanimation.zip in the /system/media directory, device boots/"works" but display is black.
[HOW IT HAPPENED]
Using ES File Explorer, I turned on the /system r/w, copied the bootanimation.zip from the (internal) sdcard, and then overwrote the original boot animation (I do have a backup).
However, after booting the phone now, there is only a black screen. It seems to be working, there's just nothing displayed.
[WHAT I CAN DO/HAVE DONE]
ADB debugging has already been enabled
ADB shell has already been granted superuser permissions (Using SuperSU, unsure if solution works if this hasn't been done?)
It vibrates sometimes as though I have an email, notification, or whatever
I can access storage with usb cable,
adb get-state returns device,
I CAN get into fastboot (screen displays normally here), however PwnMyMoto overwrites recovery,
when rebooting the phone, the motorola power down animation is displayed
I tried to put back the original with
adb push bootanimation.zip /system/media
but get 'permission denied' (you may be able to use method this on a different device/carrier/ROM)
adb shell getprop ro.boot.write_protect returns 0
in adb shell
mv /sdcard/download/bootanimation.zip /system/media/ returns failed - cross-device link (googled this, seems normal, but I'm unsure how else to copy it back)
su
mount -o remount,rw /system
doesn't return anything but I am unsure where to go from there.
cannot run adb as root, as the phone is not a dev model
[RELATED POSTS]
http://forum.xda-developers.com/showthread.php?t=2249659
[HOW I FIXED IT]
start adb
ensure that 'adb shell getprop ro.boot.write_protect' returns 0 (if not, reboot into recovery)
start phone in recovery mode with
adb reboot recovery
then
adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mount -o remount,rw /system (not sure which one of these ended up being 'correct' but it didn't hurt to do both)
cp /sdcard/download/bootanimation.zip /system/media/ (copy <src> <dest>, src is wherever the backup zip is located, if you are unsure of where the files are, use the 'ls' command to navigate the directories)
adb reboot
After doing this, the screen started displaying as normal.
Apologies for the lack of technicality, not much a dev myself. Just glad to have it working again.
Click to expand...
Click to collapse
I had the same problem and i want a simple way to fix. any help?
iamgothamshero said:
I had the same problem and i want a simple way to fix. any help?
Click to expand...
Click to collapse
I wrote down the steps I took to fix it at the end of the post. You'll have to restore the old boot animation file with ADB. Hopefully, ADB shell was already given root permissions on your phone, otherwise I'd be unsure of how to fix it.
reply to u
oc83 said:
I wrote down the steps I took to fix it at the end of the post. You'll have to restore the old boot animation file with ADB. Hopefully, ADB shell was already given root permissions on your phone, otherwise I'd be unsure of how to fix it.
Click to expand...
Click to collapse
In the how i fixed it section, idk how to do those things. i have sdk manager on pc. please i am freaked out. can u give me simple instructions. Thank you so much
iamgothamshero said:
In the how i fixed it section, idk how to do those things. i have sdk manager on pc. please i am freaked out. can u give me simple instructions. Thank you so much
Click to expand...
Click to collapse
If you're unsure how to start ADB, I'd think that you've never used it before, and in that case I'd be entirely unsure if that method would work.
That said, you should find adb.exe in the sdk/platform-tools folder. If you shift+right-click this folder you can quickly open a command prompt there to start using the commands (each line in the instructions is a separate command). If you're unsure how exactly to use adb, I'm sure there are youtube videos or other forum posts documenting the basics (try searching for beginner's guide to adb on xda).
YES!!!
oc83 said:
If you're unsure how to start ADB, I'd think that you've never used it before, and in that case I'd be entirely unsure if that method would work.
That said, you should find adb.exe in the sdk/platform-tools folder. If you shift+right-click this folder you can quickly open a command prompt there to start using the commands (each line in the instructions is a separate command). If you're unsure how exactly to use adb, I'm sure there are youtube videos or other forum posts documenting the basics (try searching for beginner's guide to adb on xda).
Click to expand...
Click to collapse
I just downloaded random bootanimation zip, followed ur process, and it worked!!!!!!!!!!!!!!!!!!!!!!! omg so happy!!! thanks so much!!!!!!
---------- Post added at 11:49 PM ---------- Previous post was at 11:23 PM ----------
oc83 said:
If you're unsure how to start ADB, I'd think that you've never used it before, and in that case I'd be entirely unsure if that method would work.
That said, you should find adb.exe in the sdk/platform-tools folder. If you shift+right-click this folder you can quickly open a command prompt there to start using the commands (each line in the instructions is a separate command). If you're unsure how exactly to use adb, I'm sure there are youtube videos or other forum posts documenting the basics (try searching for beginner's guide to adb on xda).
Click to expand...
Click to collapse
It worked the first time then next reboot it shows black screen but i know it hasnt booted cause no sounds. and when i turn tablet sideways it doesnt show half of a screen. (it did that last time the screen was black).

Categories

Resources