Hey-
I've been playing around with the shell, installed bash 3.2 according to this:
forum.xda-developers.com/showthread.php?t=537827
aaaand I was trying to make a link from /system/bin/sh to /sdcard/bash but it didn't take. The reason I want to do that is because I'm experimenting with bash 4.1 and it hasn't quite worked. But when my shell breaks I have to wait for a restore because I can't get write access to the dang /system folder (I guess you need the shell for that).
I know it's not that huge of a deal to have it all in the /system folder once it's how I want it, but I'm going to be playing with other stuff too (bash_profile, etc) and it's a bit of a pain doing the whole trial/error thing. Well, at least with how long it takes. I'm doing trial/error anyway.
So my question is why wouldn't that link work? I know I'd set the link up correctly, tried it several times in case I had a typo. Maybe I just don't understand symlinks like I think I do. I tested also something where I tried to make a link within only the /sdcard folder (always writeable no matter what, thinking that had something to do with it) and just got "operation not permitted". But on my linux box a link between directories is totally cool. Not sure what the difference is. Any help appreciated.
Something else I'm seeing that I really don't understand is that I can create links just not that have to do with my /sdcard partition. I can't even change permissions in /sdcard. From ADB. I run as root:
chmod 0644 filename
and it's as if it accepts the command, but perms stay the same. I did it not as root but it said operation denied. Why if I've got root can't I do some of these operations in /sdcard?
Scooterx3 said:
Hey-
I've been playing around with the shell, installed bash 3.2 according to this:
forum.xda-developers.com/showthread.php?t=537827
aaaand I was trying to make a link from /system/bin/sh to /sdcard/bash but it didn't take. The reason I want to do that is because I'm experimenting with bash 4.1 and it hasn't quite worked. But when my shell breaks I have to wait for a restore because I can't get write access to the dang /system folder (I guess you need the shell for that).
I know it's not that huge of a deal to have it all in the /system folder once it's how I want it, but I'm going to be playing with other stuff too (bash_profile, etc) and it's a bit of a pain doing the whole trial/error thing. Well, at least with how long it takes. I'm doing trial/error anyway.
So my question is why wouldn't that link work? I know I'd set the link up correctly, tried it several times in case I had a typo. Maybe I just don't understand symlinks like I think I do. I tested also something where I tried to make a link within only the /sdcard folder (always writeable no matter what, thinking that had something to do with it) and just got "operation not permitted". But on my linux box a link between directories is totally cool. Not sure what the difference is. Any help appreciated.
Click to expand...
Click to collapse
it's about a fat32 part? then will not work
You should post a log
Thanks, I was poking around somewhere and saw that other people have had problems if it's using a windows format. However, I'm burning my brains out trying to figure out how to see what format it uses and how to then change the format. It's the Samsung Galaxy S, and it's an internal memory card. I wouldn't think I could format it from my computer, it's not removable. Or else I'd have found out already using gparted or something (in fact I tried, said 'unallocated' is all). I *perhaps* could use gparted to format it as ext4 or whatever though, but I'm not sure the effect that'll have. I'd have to do some research.
In any case, I'd love to post a log but I'm not sure what log that is that you're referring to, would you mind telling me how to get that?
Scooterx3 said:
Thanks, I was poking around somewhere and saw that other people have had problems if it's using a windows format. However, I'm burning my brains out trying to figure out how to see what format it uses and how to then change the format. It's the Samsung Galaxy S, and it's an internal memory card. I wouldn't think I could format it from my computer, it's not removable. Or else I'd have found out already using gparted or something (in fact I tried, said 'unallocated' is all). I *perhaps* could use gparted to format it as ext4 or whatever though, but I'm not sure the effect that'll have. I'd have to do some research.
In any case, I'd love to post a log but I'm not sure what log that is that you're referring to, would you mind telling me how to get that?
Click to expand...
Click to collapse
If you work in adb post console output the same if you made that symlink from phone shell
do not forget to switch to root ("su" command )
by this you get part info
Code:
cat /proc/mtd
or system log here
Code:
adb logcat -d > logcat.txt
- it's saved to adb folder
(do not blame me if you already know these things)
also here is an interesting thread
maybe that part is mounted as read-only ?
make things simple as possible use Root Explorer/ES File Explorer (just tap screen to mount r-w)
Thanks, I liked that article you'd mentioned. Though I also tried the suggestion that was provided when I realized that /sdcard/ is really just /mnt/sdcard/ but still no dice.
I checked those logs, didn't see anything relevant. They're attached so if I just don't know what I'm looking for then someone would see it?
The /sdcard isn't read only, I'm able to write files to it.
I'm thinking really that it's just a windows format, but I still haven't an idea how to actually prove that, nor do I know how to format it for linux. Again- it's not removable. Anyway, if there's something that I need to see in the log, it'd be appreciated if you could point it out to me, thanks.
Scooterx3 said:
I'm thinking really that it's just a windows format, but I still haven't an idea how to actually prove that, nor do I know how to format it for linux. Again- it's not removable. Anyway, if there's something that I need to see in the log, it'd be appreciated if you could point it out to me, thanks.
Click to expand...
Click to collapse
-nothing interesting in log file
(a mount/df output is better here)
-also post this problem in Galaxy S I9000 sub-forum
I think your internal sdcard is vfat-type then try to format as ext4-type
here is a good article on this problem
Related
Can anyone with a rooted desire follow steps 4 and 5 and let me know if it works?
http://ubuntuforums.org/showthread.php?t=1413313
If anything relies on write access to /system will need to be changed to point to somewhere else. But, other than that, it will run fine as this (apparently) works: http://forum.xda-developers.com/showthread.php?t=672647
I haven't had a chance to test this myself, but I had Debian on my G1 which was chrooted from my sdcard so I'm pretty sure it'll work on the Desire, very sure in fact.
Not sure if it will work, I thought there was something about not havint root write access?
normally that work, if Archlinux from my howto work, i dont see why debian not work.
one thing to know is you need ext2 partition on SD (of course) and android mount it inside /system/sd/
You have RW in /system/rw, anytime.
You also need busybox, is bundled with a2sd (or another ?)
pympster said:
Not sure if it will work, I thought there was something about not havint root write access?
Click to expand...
Click to collapse
Only in /system.
Anyone succeeded ? Tried as described for Hero:
http://android.modaco.com/content-page/292093/debian-lenny-now-running-on-hero/page/40/
Couldn't get it work...
We should get that working! Imagine how fast it would run on our powerful devices...
I don't see why it can't be done (in my narrow mind), live cd's are read only, would something along that line work.
Also, has there been any progress with getting write access, that would make things so much easier.
Nope nothing. I haven't bothered trying again anyway, it's purely for novelty to be honest.
well i have observed that after u do fix permissions on cwm recovery i always loose contacts pics in messages...same happened in latest RCMix HD v5.9.7..... any one can plz help how to get rid of this problem
I have the same problem, also using RcMixHD 5.9.7.
In the contacts the pictures are shown, but not in sms section.
Same problem here. No photo in sms section. ROM is RCMixHD 5.9.7.
Sent from my Desire HD using XDA App
Did you have RcMixHD 5.9.6 on the phone?
I can imagine that there was a time I had thos pictures.
I had the same .. but there is a "pretty" easy fix ..
Has to do with file permissions .. Follow the instructions in the link below .. worked for me
http://androidforums.com/incredible...ndcent-wont-display-pictures.html#post2136845
*edit .. btw step 7 (mount /datadata) didn't work for me. but If you just substitute /datadata in step 9 with /data/data it will work.. (guess it's some kind of symlink)
Ofcourse in this case you can drop step 14 (you can't umount something that isn't mounted )
Is there a simple solution for this...? ;-)
That is the simple sollution ...
don't worry just follow the instructions on screen (perhaps my /datadata workaround if it doesn't work for you)
No real brick can come from this .. ur just messing with contact pic permissions.
lalitsehgal21 said:
well i have observed that after u do fix permissions on cwm recovery i always loose contacts pics in messages...same happened in latest RCMix HD v5.9.7..... any one can plz help how to get rid of this problem
Click to expand...
Click to collapse
It might be that you didn't backup your rom before.
I always sinc my contacts with google so If something go wrong I will have all my contacts with their pics just sincronising them with google.
Sorry for else
Normally i'm syncing with "myphonebook" from T-mobile, but they had/have a problem with their service.
usedr said:
Normally i'm syncing with "myphonebook" from T-mobile, but they had/have a problem with their service.
Click to expand...
Click to collapse
I don't know hte issue of your provider but android is Google built in and it is too easy sinc your contacts with it that it's impossible to don't do!!! didn't it?
Yes, it is pretty easy, I just had he issue that all my contact-pictures got a really low resolution.
I did the guide from androidforums now with root explorer. Can someone please tell me the rights (read/write/execute) from the folder: data/data/com.android.providers.contacts/files
What permission does the file folder has?
I accidently changed the permissions from the folder, not from the .jpg files IN the folder.
That would be great.
Edit:
Ok, in root explorer I can't set permissions for more than one file, so I had to try the guide from androidforums:
"This is what I did to fix it:
Boot into clockworkmod recovery
Go into the mount/umount section
mount /system
mount /data
Connect usb data cable to computer from phone (I use linux so I don't need anything special in the way of drivers)
adb shell
mount /datadata
The above step may take a few seconds to mount
cd /datadata/com.android.providers.contacts
chmod og+rx *
cd files
chmod 664 *.jpg
cd /
umount /datadata
umount /data
exit
Reboot your phone
"
I have no problem till the point: "mount /datadata"
There I get the message there is no datadata in etc/...
Could someone help me? I took the adb shell from the previous downgrade from 1.72. Or does it have to be a specific adb shell?
Sorry for those questions, I hope someone can help me.
read my post before ... you can skip that step and just go to the dir it refers to wich is ... /data/data, don't mount /datadata just skip the step and go to /data/data when the post says /datadata ...
Also in this case you can skip the the step umount /datadata (we didn't mounted the link so no use in umounting it)
Sorry for the late reply.
It worked! I just left the mounting out and used /data/data instead of /datadata.
Was this a typo? Because there is no folder called datadata.
Thanks for your help!
Good to hear you worked it out ... well ... not likely it is a typo .. since you don't have to mount /data/data ... Perhaps this guy is running some weird rom ..
Who knows
I posted this here - http://forum.xda-developers.com/showpost.php?p=18647176&postcount=14 - but never got an answer so I'm posting it to its own thread. I would post to the development section but apparently until I clutter up the place with 10 posts I'm considered a drooling idiot.
I was playing around and I noticed that the problem is with s-on I cannot write to /system meaning no superuser etc. So I remembered from way back when I started linux you could mount over a mounted folder. So I made a small file, put ext3 on on it, transferred it to the sdcard and mounted over /system with
mount -t ext3 -o rw,loop /mnt/sdcard/test.dump /system
it worked and then of course I lost all commands (ls, reboot...) in the shell.
Would it be possible to dump /system with "cat /dev/mtd/mtd3 > /mnt/sdcard/system.img", extract it, put it in an ext3 file, mount it as readable over system and just go to town?
Somebody MUST have tried this in the past. Before I go any further can anyone tell me why this wouldn't work and save me a few hours noodling around lol
baconbacon said:
I posted this here - http://forum.xda-developers.com/showpost.php?p=18647176&postcount=14 - but never got an answer so I'm posting it to its own thread. I would post to the development section but apparently until I clutter up the place with 10 posts I'm considered a drooling idiot.
I was playing around and I noticed that the problem is with s-on I cannot write to /system meaning no superuser etc. So I remembered from way back when I started linux you could mount over a mounted folder. So I made a small file, put ext3 on on it, transferred it to the sdcard and mounted over /system with
mount -t ext3 -o rw,loop /mnt/sdcard/test.dump /system
it worked and then of course I lost all commands (ls, reboot...) in the shell.
Would it be possible to dump /system with "cat /dev/mtd/mtd3 > /mnt/sdcard/system.img", extract it, put it in an ext3 file, mount it as readable over system and just go to town?
Somebody MUST have tried this in the past. Before I go any further can anyone tell me why this wouldn't work and save me a few hours noodling around lol
Click to expand...
Click to collapse
S-on itself got nothing to do with rooting. It just means you can't flash unsigned images as much as I know.
That system is mounted as ro is also at rooted phones the standard behaviour, you have to remount it as rw, but without root it won't accomplish I think.
Cat is for text files not for binaries or whole partitions, to extract the image use the dd command.
Do you have an /dev/mtd folder? My partitions are at /dev/block and there is no /dev/mtd present.
Swyped from my HTC Desire S
Tectas said:
S-on itself got nothing to do with rooting. It just means you can't flash unsigned images as much as I know.
That system is mounted as ro is also at rooted phones the standard behaviour, you have to remount it as rw, but without root it won't accomplish I think.
Cat is for text files not for binaries or whole partitions, to extract the image use the dd command.
Do you have an /dev/mtd folder? My partitions are at /dev/block and there is no /dev/mtd present.
Swyped from my HTC Desire S
Click to expand...
Click to collapse
This issue is that when you remount it as rw you cannot write to it. I want to know if I make my own partitions and mount them after boot if that will work, probably slower but work. This is so lojack I doubt it will work, I just want to know if anyone tried it.
Also "Cat is for text files not for binaries or whole partitions" is wrong, it works fine.
baconbacon said:
This issue is that when you remount it as rw you cannot write to it. I want to know if I make my own partitions and mount them after boot if that will work, probably slower but work. This is so lojack I doubt it will work, I just want to know if anyone tried it.
Also "Cat is for text files not for binaries or whole partitions" is wrong, it works fine.
Click to expand...
Click to collapse
Then it's not rw, because rw stands for read write, but like I said without root...
And no I think no one tried it before, because using an xtc-clip is compared to your solution much less work
But if you want to try it, do it and share your experiences, maybe it helps others
That cat works doesn't mean that it's made for it, you can also hunt for birds with a bazooka
Take a look at cat and dd and choose yourself.
Tectas said:
Then it's not rw, because rw stands for read write, but like I said without root...
And no I think no one tried it before, because using an xtc-clip is compared to your solution much less work
But if you want to try it, do it and share your experiences, maybe it helps others
That cat works doesn't mean that it's made for it, you can also hunt for birds with a bazooka
Take a look at cat and dd and choose yourself.
Click to expand...
Click to collapse
is xtc-clip better? yes, not arguing that. is cat is better then dd? no, I said cat works in this instance the same as dd, the results will be the identical.
I didn't ask this question to argue unrelated linux 101. I'm just going to look into this myself. iow screw you guys, im going home...
Dude, I use Linux too though I'm probably not a guru. I think I understand what you're saying... but if I do, aren't you just talking about editing a copy of /system? How would you mount your edited partition at boot?
Time permitting, I could try a few tricks but I'm not willing to risk bricking my phone though. I'd be stranded without it.
Sent from my HTC Wildfire S A510e using XDA App
First don't blame others, because of things I wrote.
I never said it couldn't work, I just wanted to show you that there are better ways to do it, cause cat also tries to interpret the file and not only copies it, what could mess up your image in some cases.
Also be aware that if your using the same data and cache partition with both of your systems, it could be easy bricked, if you change to much at your 2. system and remember that there aren't many ways left to get it working again cause your still s-on.
I think he wants to mount it himself every time after boot.
If he can root his 2. system (but all by hand, I think) he maybe can mount his 1. system as rw and also root it, but the chance that something goes wrong is pretty high, even mounting itself could freeze the device, cause the first system is still in memory.
I'm also not even close to be a Linux guru.
Swyped from my HTC Desire S
Okay, I'm freaking out a little bit.
The one app I use more than any other is Doggcatcher. It been my most-used app since my first G1. Well, I recently flashed the AOKP Jelly Bean ROM on my VZW GN, and now it seems that Doggcatcher can no longer save anything to the sdcard directory (either sdcard or storage/sdcard0).
What did I do wrong? I had Jelly Bean working on my phone for a while, but my GN's charge port broke and I received a replacement. I believe I restored a nandroid backup of my previous Jelly Bean install (which was a different ROM), and that's when my problems started. When I installed the AOKP ROM I wiped everything, but I still can't get Doggcatcher to save a single file. It seems other apps have trouble storing anything on the phone too, which is clearly a huge problem.
So what do I do? Please help! I'll offer any information I can.
Seems like permission is bit messed up. Have you don't anything that might've changed the permission?
Swyped on my Galaxy Nexus running AOKP with Franco Kernel, overclocked to 1.4GHz
kyokeun1234 said:
Seems like permission is bit messed up. Have you don't anything that might've changed the permission?
Swyped on my Galaxy Nexus running AOKP with Franco Kernel, overclocked to 1.4GHz
Click to expand...
Click to collapse
Certainly nothing on purpose. I just flashed these ROMs in the way I would have thought I was supposed to. I loaded ClockworkMod and flashed the zip file from AOKP.
I really have no idea what I might have done or what to do now. I'm completely fine with wiping my phone, I just need to know how to start over!
If you have any directories/files that you can't modify or delete, then boot into CWM recovery, plug in the USB cable, go into adb shell. Also make sure that /data is mounted in the CWM mounts menu. Then:
cd /data/media
chown -R media_rw.media_rw *
danger-rat said:
If you have any directories/files that you can't modify or delete, then boot into CWM recovery, plug in the USB cable, go into adb shell. Also make sure that /data is mounted in the CWM mounts menu. Then:
cd /data/media
chown -R media_rw.media_rw *
Click to expand...
Click to collapse
My friend, you are a genius. THANK YOU SO DAMN MUCH!! Seriously, you rock like crazy.
I followed your instructions (I had to learn how to get into the adb shell but that wasn't too tough), restarted the phone, and immediately tried downloading a podcast episode. I then pumped my fist in the air when I saw it successfully downloading.
Again, thank you so much. You rock.
Just passing on info from others...
danger-rat said:
Just passing on info from others...
Click to expand...
Click to collapse
Still, you helped, solved my problem, and fixed a problem for me in a week that's been filled with nothing BUT problems in other parts of my life, so I can't tell you how much I appreciate that.
FYI, I also posted your answer, along with a link to this thread, on the Doggcatcher forums where I also asked for help on this issue, when I thought it was just a problem with that app. I quoted your answer and gave you the credit, in case there's ever a future breakdown in the link I used
danger-rat said:
If you have any directories/files that you can't modify or delete, then boot into CWM recovery, plug in the USB cable, go into adb shell. Also make sure that /data is mounted in the CWM mounts menu. Then:
cd /data/media
chown -R media_rw.media_rw *
Click to expand...
Click to collapse
thanks, you saved me too
johnz said:
thanks, you saved me too
Click to expand...
Click to collapse
Dude, this thread was dead, all you needed to do was press the thanks button, no need to revive this.
Sent from my i9250
danger-rat said:
If you have any directories/files that you can't modify or delete, then boot into CWM recovery, plug in the USB cable, go into adb shell. Also make sure that /data is mounted in the CWM mounts menu. Then:
cd /data/media
chown -R media_rw.media_rw *
Click to expand...
Click to collapse
thanks so much for this!
I was struggeling with this problem, because I couldn't create backups anymore.
before I executed your command I had a look at the current permissions for the files.. some folders were owned by root:root instead of media_rw:media_rw. No wonder apps couldn't create files in those folders..
Too bad this was only shown in the shell when in recovery. While the phone was in Android the permissions showed correctly as root:sdcard_rw .. that's why it never occured to me this was a real problem.
Does anyone know if any scripts are executed (or can be executed) when the SD card is mounted? Of course this would include on boot.
What I am trying to accomplish is that I would like to mount in a second path the fat32 external partition as the system user (with an appropriate umask) so that I can symlink data from the /data/app directory. I don't mind copying the .apk files and just symlinking them individually; I currently have over 5GB of files there, so I know it should really help with saving space. And, this way I can still take advantage of the space as is, rather than losing it all to a directory symlink.
I don't mind resymlinking once in a while after I add/remove some software. I am a long time Linux user (personally and professionally) so a little command line doesn't scare me one bit.
I thought I should mention that I am currently using LRS G Pad, so a solution that works on stock (or stock-like) ROMs is preferred, though I am curious what a custom ROM can buy me in this area also.
Thank you for your help!
IBJamon said:
Does anyone know if any scripts are executed (or can be executed) when the SD card is mounted? Of course this would include on boot.
What I am trying to accomplish is that I would like to mount in a second path the fat32 external partition as the system user (with an appropriate umask) so that I can symlink data from the /data/app directory. I don't mind copying the .apk files and just symlinking them individually; I currently have over 5GB of files there, so I know it should really help with saving space. And, this way I can still take advantage of the space as is, rather than losing it all to a directory symlink.
I don't mind resymlinking once in a while after I add/remove some software. I am a long time Linux user (personally and professionally) so a little command line doesn't scare me one bit.
I thought I should mention that I am currently using LRS G Pad, so a solution that works on stock (or stock-like) ROMs is preferred, though I am curious what a custom ROM can buy me in this area also.
Thank you for your help!
Click to expand...
Click to collapse
Maybe take a look at tasker to initiate a command. I too had hoped to use a Linux command for a different reason, only to find everything to be different enough to be a problem. Tasker will allow the command, but knowing where to put it will be the problem. Writing a script that recognizes "fuse" initiation, outing it in init.d, and then using tasker to initiate the script?
Maybe just tasker, as you can write simple one liners for different tasks(turning things off and on with a simple path).
Doing this from the kernel ramdisk would probably be better.
Please describe exactly how you do this if you figure it out please!
Best regards,