[Q] How do i swap SD cards Cyanogenmod 9 - Samsung Galaxy W I8150

How do i swap SD cards on cyanogenmod 9. I searched everywhere and i cant find it I tried searching in build.prop file and didnt find it. Help please?

MayB4ck said:
How do i swap SD cards on cyanogenmod 9. I searched everywhere and i cant find it I tried searching in build.prop file and didnt find it. Help please?
Click to expand...
Click to collapse
you didn't search well. See if this helps http://forum.xda-developers.com/showpost.php?p=24814461&postcount=3
edit: regarded to cm9 not sure but in cm10.1 is changing the build.prop is like this. Maybe is the same to cm9
Code:
# Change to 1 for swapping SD cards
persist.sys.vold.switchexternal=1

ilusi0n_ said:
you didn't search well. See if this helps http://forum.xda-developers.com/showpost.php?p=24814461&postcount=3
edit: regarded to cm9 not sure but in cm10.1 is changing the build.prop is like this. Maybe is the same to cm9
Code:
# Change to 1 for swapping SD cards
persist.sys.vold.switchexternal=1
Click to expand...
Click to collapse
Checked the post and on my storage thing it didnt have a button.
And there is no
"# Change to 1 for swapping SD cards
persist.sys.vold.switchexternal=1"
in my build.prop file. just to mention i am using custom cyanogenmod9 called cyber tiger v2

Related

Motorola DEFY sd card driver FIX

DO NOT APPLY THE ZIP I UPLOADED, READ EDIT 2​
Edit: I will make a flashable fix in a .zip inspired from CM7 RC1.5, with only the mmcfix in it, therefor anybody can use it, even people on official ROMs or other custom ROMs than CM7.
Work in progress....
Flashable zip nearly ready with mmcfix from CM7...
Zip script works correctly, testing...
Soft brick..
Flashed back my stock Froyo, restoring my nandroid backup (this shows you how important a backup can be! )....
Back to work! ^^ .....
Edit 2: I'll upload my mmcfix_signed_crakeron.zip for show only, it !!!DOES NOT WORK!!! right now and if you apply it through CWM you will !!!SOFTBRICK!!!. It is for people to take a look at it only, especially my update-script, and try and figure out what is wrong, or in my opinion, what i have forgot to put in it, seen as there is no sytax problems.
Hi all,
As you all know, our lovely Defy seems to have a problem when it comes to using sd cards... where *GENERALLY* all class 2 cards are fine, and problems may occur with higher class cards.
The problem is basically: the phone loses its write acces to the card, and therefor for example the photo camera app can take pictures, but can't save them... Another sign of this issue would be an absurd "SD Card damages/corrupted, please format" notification, and the sdcard never mounting again untill you well...re-format the card. This happens to me once a week, making me have to backup my stuff to the pc, format the card, and then put it all back on the card, and voila off we go till the next "false corruption" .
I've done some research, seen as this is a software issue, and not hardware, and i have found out it is an OMAP kernel issue:
"SD card problems since 2.2 update is a bug in OMAP kernel sources for froyo. CyanogenMod developpers worked hard to patch the kernel but it is hard to correct motorola bugs due to the locked bootloader." (source: Motorola support forums")
here is what i also found:
http://maemo.org/community/maemo-users/n900_microsd_card_i-o_errors_and_corruption/
To resume the thread, a Nokia n900 user, which also has a TI OMAP proc., discovered what was faulty:
some function in the driver (to keep this simple i will not name it, people interested and devs please just click on the link), dynamically calculates a DTO value based on the SD card's caracteristics. THIS IS WHAT IS NOT WORKING CORRECTLY
the guy simply modified a function in the omap_hsmmc driver so as it would use a constant universal DTO value, that would work with all sdcards, turning the DTO from dynamic, to static
Right, now you're thinking "what has this got to do with our Defy?"
Well...it has been sead in motorola milestone forum in xda, that:
"Since N900 uses the same SOC as Milestone and probably much of the drivers code are the same, perhaps the fix for N900 could be implemented as well? Not sure whether TI OMAP drivers are builtin in the kernel or not... If possible, could you please check this?"
(source: http://forum.xda-developers.com/showpost.php?p=17033833&postcount=5563)
and it is also said somewhere that this fix should also apply to the Motorola Defy.
I think I could be capable of making this fix for us, i just need some help:
(1) Where is the omap mmc driver situated in our /system ?
After having found it, i can copy it on to my sd card, and open it up and have a look (it is expected to be a C language file, i'm familiar enough with C to be able to edit the driver )
(2) I would like that driver from an official 2.1 ROM, and one from a 2.2 one, just to compare them
What do you think guys? If one of you know where to find the driver could you PM me to help me get started?
P.S This is not a thread about who's sdcard works and who's doesn't, so don't post millions of "my kingston 8gb class X works fine"
P.P.S Hit the THANKS! button if you want to support me, it costs nothing and makes my day!
the fix is already included in cyanogenmod since RC 1.5
reserved for futur use
vick33 said:
the fix is already included in cyanogenmod since RC 1.5
Click to expand...
Click to collapse
I know, but some of us out here don't want to go CyanogenMod, i'll contact Quarx and see if he could cooperate with me so that every one and every ROM could benefit from the fix
crakeron said:
I know, but some of us out here don't want to go CyanogenMod, i'll contact Quarx and see if he could cooperate with me so that every one and every ROM could benefit from the fix
Click to expand...
Click to collapse
The sources are public you can use them if you want. Now cyanogenmod is extremely good and stable. Because of the same kernel i think you can use the modul from cyanogenmod. Try if it works or not.
vick33 said:
The sources are public you can use them if you want. Now cyanogenmod is extremely good and stable. Because of the same kernel i think you can use the modul from cyanogenmod. Try if it works or not.
Click to expand...
Click to collapse
Will do. I'm working on it right now and planning to make a flashable .zip for cwm, that way everyone will have the fix
P.S. this is exciting
Made the update zip, the script seems to be OK, but just a bit missing, the device didn't like having something added in /system/lib/modules. I had write acces to it, maybe i have to put acces back to read only before ending script?
You can have a look at it to try and find out, but DO NOT flash the zip or you'll soft brick
Hi Crackeron, any good news for your script ?
Best regards
Cordialement...
alias4defy said:
Hi Crackeron, any good news for your script ?
Best regards
Cordialement...
Click to expand...
Click to collapse
no aka fail
i´m waiting for this fix too!!!
I've built an update-script which writes the module into "/system" partition.
In case of soft-brick, i've built another script which erases the file.
I've flashed it on CM7 ( 15th of october ) and it worked as the fix is already embedded in the ROM.
Let me know whether it works with other ROMs.
P.S. Scripts are written in Edify syntax.
Update: i forgot to include the init.d script that loads the fix once the device is on.
Now i've fixed. It should work!
Could u please drop a few words about install procedure? Thx.
toffifee63 said:
Could u please drop a few words about install procedure? Thx.
Click to expand...
Click to collapse
You've only to flash the zip through clockwork recovery mod.
carlo93 said:
I've built an update-script which writes the module into "/system" partition.
In case of soft-brick, i've built another script which erases the file.
I've flashed it on CM7 ( 15th of october ) and it worked as the fix is already embedded in the ROM.
Let me know whether it works with other ROMs.
P.S. Scripts are written in Edify syntax.
Update: i forgot to include the init.d script that loads the fix once the device is on.
Now i've fixed. It should work!
Click to expand...
Click to collapse
I've been looking on github on the CM7 project, and unfortunately it seems that there is not ONLY mmcfix.ko needed. We must figure out which files are needed in order for the fix to work :/ (i'm thinking of this "hangs.c" file if i remember correctly that appears in the C code in mmcfix.ko... I'll have a talk to quarx.
Sorry for the time it takes, i'm quite busy with my studies right now, but i haven't forgot you guys =).
Solved!!
i figure out:
please, see this post
http://forum.xda-developers.com/showthread.php?t=1596997
espaciosalter20 said:
i figure out:
please, see this post
http://forum.xda-developers.com/showthread.php?t=1596997
Click to expand...
Click to collapse
Oh, it wasn't as hard as i thought then :/..i was going waaay complicated in the init scripts ><. Anyway well done
Motorola Defy, CM7 @ 1Ghz + CM9 multiboot
[Guide] Install double boot CM7 + CM9
[Guide][Root needed] Unsimlock your Defy
espaciosalter20 said:
i figure out:
please, see this post
http://forum.xda-developers.com/showthread.php?t=1596997
Click to expand...
Click to collapse
I can't post/reply at Development group, so I post here. The patch still have problem. After apply this path on MS2Ginger 3.0, any install app action from SD card will cause reboot problem. My phone is defy with red lens, and the sd card is transcend 16G c10 card.
need this fix, don't have a reader...
my SD cards were all recognised on stock froyo (not sure of build, possibly taiwan retail):? but now after new eclair and froyo sbfs the sdcards not recognised...weird huh?
I have a class 10 16GB.
The stock Froyo SEA 15 hangs often.... yesterday the defy said that SD card is damaged... but I did not format it and removed sdcard and put it in Nokia E5 and to my surprise it was working perfect there....
I have not installed your fix or any mcc fix till now.
This FIX is desparately needed.
For those who get the error that SD Card is damaged... please dont format it in your defy.
Use a computer or other mobile to format the sd card.
OK Guys got solution in this thread:
http://forum.xda-developers.com/show...00&postcount=2
Copy mmcfix.ko & symsearch.ko in /system/lib/modules and change the permissions to rw r r for both files.
Modify load_modules.sh as mentioned below and set permission as rwx r-x r-x
So just add the following lines in load_modules.sh files of /system/bin so it looks like this:
#!/system/bin/sh
export PATH=/system/bin:$PATH
# Install GAN virtual interface kernel module
if [ -e /system/lib/modules/kineto_gan.ko ]; then
insmod /system/lib/modules/kineto_gan.ko
insmod /system/lib/modules/symsearch.ko
insmod /system/lib/modules/mmcfix.ko
fi
Enjoy !!

[GS3] Swap External and Internal SD on CM10.0 for More Storage

First off, this is based off of this thread by mattiadj. I recommend you read over that thread before continuing on here. I couldn't post a reply there since I'm not a dev.
That thread is for the international Galaxy SIII I9300, I9305. This is for the US version (SPH-L710). Basically it just remounts the internal storage as the external SD, and vice versa. I used the original script posted in mattiadj's thread and tweaked the storage locations to work with our device. I used a 32GB SD card for this, and when all was said and done, I had 29GB of internal storage and 12GB of external storage, as shown in the attached screenshot.
You do need root. The standard disclaimer applies: I'm not responsible if you bork or brick your phone. Make a backup first.
The steps are:
Install the free Script Manager - SManager from the play store.
Download the attached script (11extsd2internalsd--CM10--L710.txt). You might have to right click and save as.
Rename the file to remove the .txt file extension. I couldn't upload it as .sh or with no extension.
Place the script in /data. You'll need some file manager with root access, such as Root Browser Lite.
Set the script permissions to 0777.
Open SManager, select browse as root, and then OK.
Browse to the script located in /data and select it. Open as "Script/Executable"
Tap on the boxes for Su and Boot, and then Save and Exit
Reboot your phone!
If this doesn't work for you for some reason, you may need to tweak the script for your device. I had to change /dev/block/vold/179:49 to /dev/block/vold/179:97 and replace all the /mnt/extSdCard with /mnt/external_sd. You may also need to change a vfat to an exfat, depending on how your MicroSD card is formatted.
Good luck!
it works in the nightly?
Thanks, I've been looking for this! Working good.
SPH-L710_ Codename_JB
if our phone reads external sd cards just fine why would I want to use this mod?
If you bought the 16gb s3. You know you have only about 12gb space to store all your apps and games. I play a lot of square Enix and Gameloft games. Those game used up a lot of your 12gb space. with this mod. You can swap your 64gb external Sdcard for internal one. It makes the phone think you have 64gb. I tested on PAC rom only.
SPH-L710_ Codename_JB
I tested, and and it works!
Sent from my SPH-L710 using xda premium
im guessing a class10 SD card would make this mod optimum.
I don't want to sound like a noob, but is there a mod for TW? I've searched everywhere and can't seem to find any fixes aside from DirectoryBind, which isn't working for me.
Fadakar said:
I don't want to sound like a noob, but is there a mod for TW? I've searched everywhere and can't seem to find any fixes aside from DirectoryBind, which isn't working for me.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1849861
[MOD]App2ExtSD2 [Works for all U.S. Galaxy S3!]
I used this mod for my tw rom
SPH-L710_ Codename_JB
ntajlis said:
[MOD]App2ExtSD2 [Works for all U.S. Galaxy S3!]
I used this mod for my tw rom
SPH-L710_ Codename_JB
Click to expand...
Click to collapse
Thank you very much.
Any chance we will see an update to work for 4.2?
SPH-L710_ Codename_JB
Help!
I have a problem with my Samsung galaxy w .. My phone get stuck at the samsung galaxy w and cyanogenmod logo.. I cant even reach the loading part of cyanogenmod.. The worst part is my internal storage and external sd had been reformatted!! Help Me!!
ntajlis said:
Any chance we will see an update to work for 4.2?
Click to expand...
Click to collapse
This script is for CM 10.0 (4.1.2). I'll probably update it when CM 10.1 (4.2) goes stable.
Feel free to tweak it to your needs though. In a terminal on your device, type "mount" and it will list the current mount points. One will be something like /dev/block/vold/179:97 , though you might have to change those numbers at the end. You might also have to change some of the other mount points in the script, but I don't have a phone to test on. I'm not messing with mine until I update. It took forever to get it just how I like it!
so this doesnt work on 4.2.1?
zukakog said:
First off, this is based off of this thread by mattiadj. I recommend you read over that thread before continuing on here. I couldn't post a reply there since I'm not a dev.
That thread is for the international Galaxy SIII I9300, I9305. This is for the US version (SPH-L710). Basically it just remounts the internal storage as the external SD, and vice versa. I used the original script posted in mattiadj's thread and tweaked the storage locations to work with our device. I used a 32GB SD card for this, and when all was said and done, I had 29GB of internal storage and 12GB of external storage, as shown in the attached screenshot.
You do need root. The standard disclaimer applies: I'm not responsible if you bork or brick your phone. Make a backup first.
The steps are:
Install the free Script Manager - SManager from the play store.
Download the attached script (11extsd2internalsd--CM10--L710.txt). You might have to right click and save as.
Rename the file to remove the .txt file extension. I couldn't upload it as .sh or with no extension.
Place the script in /data. You'll need some file manager with root access, such as Root Browser Lite.
Set the script permissions to 0777.
Open SManager, select browse as root, and then OK.
Browse to the script located in /data and select it. Open as "Script/Executable"
Tap on the boxes for Su and Boot, and then Save and Exit
Reboot your phone!
If this doesn't work for you for some reason, you may need to tweak the script for your device. I had to change /dev/block/vold/179:49 to /dev/block/vold/179:97 and replace all the /mnt/extSdCard with /mnt/external_sd. You may also need to change a vfat to an exfat, depending on how your MicroSD card is formatted.
Good luck!
Click to expand...
Click to collapse
I have to move the large files from my internal memory to my external SD card. What's the easiest way to this? I'm running AOKP 4.2.1, I have ES File Explorer and GridSize Free. Thanks.
I used Root Browser to move from internal to external. Because I'm moving such big large to external. I did have to wait about 1 hour+ before it transfer all of it. I recommend do the xfer then go watch t.v or something it will take longer time
SPH-L710_ Codename_JB
Thank God man.. ..the SD thing has been driving me crazy..!!!
This didn't work for me
I followed all the steps but I am confused towards the specialization part that I need to change manually in the script. I have a sprint galaxy s3 sph-l710 with a 32gb memory card rooted. Can anyone help me out?
misd3vi0us said:
I followed all the steps but I am confused towards the specialization part that I need to change manually in the script. I have a sprint galaxy s3 sph-l710 with a 32gb memory card rooted. Can anyone help me out?
Click to expand...
Click to collapse
Below I've attached the txt file modified as per the OP. I have not tested it, as I do not run CM. Please let me know if it works for you.
prboy1969 said:
Below I've attached the txt file modified as per the OP. I have not tested it, as I do not run CM. Please let me know if it works for you.
Click to expand...
Click to collapse
I followed the steps again. Added the script you attached to data in script manager and clicked su, boot, run, script set to 0777 etc. Still no luck at least when I go to storage. The internal still reads 12 gb and external as 32gb. Not sure why it won't swap out. Maybe it just won't work for CM 10.1?

[Q] Browse SD Card from Android Stock Browser

Hi, just a quick question? I have been trying to browse sd card from android stock browser. I have used the following scripts but none work. I could not find any useful info regarding this over the net either.
Can someone help please? I'm using JB 4.2.1 and sd card path is /storage/sdcard0.
file://mnt/sdcard/
file://sdcard
file://storage/sdcard0/
T_ADD said:
Hi, just a quick question? I have been trying to browse sd card from android stock browser. I have used the following scripts but none work. I could not find any useful info regarding this over the net either.
Can someone help please? I'm using JB 4.2.1 and sd card path is /storage/sdcard0.
file://mnt/sdcard/
file://sdcard
file://storage/sdcard0/
Click to expand...
Click to collapse
Dont know if that is even possible. It dosent work for me. Why not just download one of the many file explorer apps on the market?
It should be possible. It's just that having one app do a few more things is convenient.
T_ADD said:
Hi, just a quick question? I have been trying to browse sd card from android stock browser. I have used the following scripts but none work. I could not find any useful info regarding this over the net either.
Can someone help please? I'm using JB 4.2.1 and sd card path is /storage/sdcard0.
file://mnt/sdcard/
file://sdcard
file://storage/sdcard0/
Click to expand...
Click to collapse
with the google chrome app you can type file:///sdcard

Help With Ext. Sd Card 4.4

I'm currently on Quantum 4.4 rc2 and my ext sd card isn't showing in es file explorer, unless I go to Device/ext.sd card. I can't save anything from my phone to the sd card. like I could in 4.3 and earlier. I clean flashed wiped my crack and everything.... Does anyone know of a way to force my phone to see the ext. sd card? I know I saw a post in the Quantum thread a while back, but I have spent 30 mins. looking for an answer on google and xda... maybe I'm not wording it or searching properly.. any help would be much appreciated.:laugh:
anyone?... I tried in q&a first.. I know people get flamed for asking in op... not really in pwn's op.. but you know...I like to try things the right way.
Robbie D said:
anyone?... I tried in q&a first.. I know people get flamed for asking in op... not really in pwn's op.. but you know...I like to try things the right way.
Click to expand...
Click to collapse
I have the same quirk and haven't found a solution except /mtn/extSdCard. I also get the /mtn/media_rw/sdcard1 is not found error.
drx895 said:
I have the same quirk and haven't found a solution except /mtn/extSdCard. I also get the /mtn/media_rw/sdcard1 is not found error.
Click to expand...
Click to collapse
I have the same issue after upgrading to 4.4. After spending some time troubleshooting, I found the issue lies with the folder permission for media_rw. Change it to rwx for group should solve the issue.
Download ROM Toolbox from Google Play to edit the permissions for the folder.
I thought that there was a mention of changing the SELinux to permissive. then Unmount SD and mount again. then it should show up on the root directory.
https://play.google.com/store/apps/details?id=com.mrbimc.selinux
Mojar7070 said:
I thought that there was a mention of changing the SELinux to permissive. then Unmount SD and mount again. then it should show up on the root directory.
https://play.google.com/store/apps/details?id=com.mrbimc.selinux
Click to expand...
Click to collapse
I heard the same but you have to do it at every boot
Got it. Thanks.
Sent from my Nexus 7 using xda app-developers app
Code:
#!/system/bin/sh
#SELinux Permissive
setenforce 0
getenforce 0
Save it into /system/etc/init.d
Named 50PermissiveSELinux (no extention)
Set permissions to:
RWX
R X
R X
Reboot.
Sent from my SAMSUNG-SGH-I747 using XDA Premium 4 mobile app
berryman13 said:
Code:
#!/system/bin/sh
#SELinux Permissive
setenforce 0
getenforce 0
Save it into /system/etc/init.d
Named 50PermissiveSELinux (no extention)
Set permissions to:
RWX
R X
R X
Reboot.
Sent from my SAMSUNG-SGH-I747 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Will this work for the latest of quantum V3 4.4.1?? I'm now having issues seeing my external SD on es file. I have to find it in the root directory.
Thanks.
Sent from my Nexus 7 using xda app-developers app
Robbie D said:
I'm currently on Quantum 4.4 rc2 and my ext sd card isn't showing in es file explorer, unless I go to Device/ext.sd card. I can't save anything from my phone to the sd card. like I could in 4.3 and earlier. I clean flashed wiped my crack and everything.... Does anyone know of a way to force my phone to see the ext. sd card? I know I saw a post in the Quantum thread a while back, but I have spent 30 mins. looking for an answer on google and xda... maybe I'm not wording it or searching properly.. any help would be much appreciated.:laugh:
Click to expand...
Click to collapse
From what I know this is a known issue and hasn't been addressed yet except for some workaround's mentioned above. Since Quantum is based off of the CM11 source code, many bugs found in the nightly's are present in the beta's for Quantum. Ext-sd card support hasn't been fixed yet in the CM11 nightly's so I wouldn't expect it to work aside from workarounds.
Thanks for all the replies.... I have tried everything you guys have mentioned, but no luck. I realize that it is not a problem with Quantum and understand that 4.4 is still relatively new... This is the only little thing that bugs me, but I can wait for it to be fixed later... I clean flashed the latest and greatest from Quantum this morning and all I have to say is.... WOW!!! It's friggin awesome...

SM-T805 just won't let edit files on SD

Just purchased my galaxy tab s. When I found out how it behaves with external memory rooted it at once, did the thing for read/write permissions, disabled this weird safety feature and... It does not alow editing files to any program which causes a big problem when I try to use "iGO" navigator for example which keeps its files on SD, or use some office program to edit any content on SD... It does alow creating and deleting files though.
Any ideas? Many thanks in advance!
I guess it's a kitkat problem. I heard in lollipop google returned to full read write access to SD cards.
Or try using a custom kernel
DUHAsianSKILLZ said:
Or tey using a custom kernel
Click to expand...
Click to collapse
what do you mean?
hmaxos said:
I guess it's a kitkat problem. I heard in lollipop google returned to full read write access to SD cards.
Click to expand...
Click to collapse
Maybe there is some fix possible about it?
gyrtaz said:
what do you mean?
Click to expand...
Click to collapse
Sorry i meant try a custom kernel. Skyhigh kernel fixes sd problems. I am running it now and it does work. Perhaps you can try that?
DUHAsianSKILLZ said:
Sorry i meant try a custom kernel. Skyhigh kernel fixes sd problems. I am running it now and it does work. Perhaps you can try that?
Click to expand...
Click to collapse
I only found topics about sd r/w problems where they say that I need to root and run some code (or edit some file manually) to fix permissions. Well I did it... But I couldn't find anyone talking about editing... I can get around that by saving an edited file in diferent name, deleting the original and renaming it back to original... But programs I try to use does not do tricks like that :silly:
Was your problem similar? Any links regarding the fix of this?
gyrtaz said:
I only found topics about sd r/w problems where they say that I need to root and run some code (or edit some file manually) to fix permissions. Well I did it... But I couldn't find anyone talking about editing... I can get around that by saving an edited file in diferent name, deleting the original and renaming it back to original... But programs I try to use does not do tricks like that :silly:
Was your problem similar? Any links regarding the fix of this?
Click to expand...
Click to collapse
Well I have always ran skyhigh kernel for my sd card. Even if rooted with the sd fix my sd card still worked fine(on stock rom). Perhaps it could be the file manager your using? Well i also seen the r/w fix by editing a file but that was months ago and I forget how to do it. Sometimes sd fix app would say its fixed, but it wasnt. So using another app from the playstore could fix it? Hope this helps
DUHAsianSKILLZ said:
Well I have always ran skyhigh kernel for my sd card. Even if rooted with the sd fix my sd card still worked fine(on stock rom). Perhaps it could be the file manager your using? Well i also seen the r/w fix by editing a file but that was months ago and I forget how to do it. Sometimes sd fix app would say its fixed, but it wasnt. So using another app from the playstore could fix it? Hope this helps
Click to expand...
Click to collapse
The file seems to be edited properly but none of programs are able to edit files. Biggest problem at the moment that iGO won't save its configuration and shut down when a route is entered. I assume it is because of unability to edit files in sd also

Categories

Resources