[Q] CM11 cannot write to /sdcard/ - Xiaomi Mi 2

I have discovered that when using Cyanogenmod 11 I cannot write to /sdcard or /storage/sdcard0. I can format it in CWM and I can format it from within the system settings, but I cannot write files or create folders etc. I've got root access and can write to any other folder in / so I don't know why this doesn't work. If I install MIUI I can write to it fine. I've tried wiping data etc and formatting from CWM and system settings and it's not helped. I've tried installing an older version of CM11 and I still can't write to /sdcard - even though that older version let me write to it with no problems a month ago! I think it must be corrupted or a permission issue. I really like Cyanogenmod and dislike MIUI so would love a solution for this. Otherwise I'll try AOSP or Pac-Rom etc to see if that works.
Any help would be greatfully received.

SANGER_A2 said:
I have discovered that when using Cyanogenmod 11 I cannot write to /sdcard or /storage/sdcard0. I can format it in CWM and I can format it from within the system settings, but I cannot write files or create folders etc. I've got root access and can write to any other folder in / so I don't know why this doesn't work. If I install MIUI I can write to it fine. I've tried wiping data etc and formatting from CWM and system settings and it's not helped. I've tried installing an older version of CM11 and I still can't write to /sdcard - even though that older version let me write to it with no problems a month ago! I think it must be corrupted or a permission issue. I really like Cyanogenmod and dislike MIUI so would love a solution for this. Otherwise I'll try AOSP or Pac-Rom etc to see if that works.
Any help would be greatfully received.
Click to expand...
Click to collapse
After installing miui don't wipe sdcard and install CM.

AWESOME! Thanks very much. It works fine now.
Few Tips that might help others with this issue: I need to remember to just format /data manually in future if I ever need to wipe. I struggled to flash Cwm using miui 6 or fastboot. In the end I flashed Android 4.1 miui using miflash and installed Cwm using the stock miui update app. Then I booted to Cwm, wiped /data and flashed a cm11 nightly, supersu and gapps. I deleted the files in /sdcard from in cm11 with no issues.

Related

[Q] CyanogenMod and Partition Questions

Hey Guys,Me again,with more question on hand.Thanks in advance for all answers given.
Before the questions,Here's what my WF is currently running : Wildpuzzle(the latest Froyo one),Overclock Kernel from the old wildpuzzle thread.
1)I'm thinking of changing my ROM to CyanogenMod 7,so can someone tell me exactly what are nightly builds and the differences between the nightlies and RC2?
2)Which version of CyanogenMod 7 is most stable? (With the least bugs and with most original functions like FM Radio and WIFI tethering included)
3)Will it be faster and more responsive than my current Wildpuzzle that uses LauncherPro?
4)When I installed Wildpuzzle like a month ago,I partitioned the SD card once.(although it doesn't seem to make much of a space differences with the Stock ROM when all the apps are installed back again)So can anyone explain how partition really works,how some people can have dozens of apps installed and still have 100+MB left and do I have to re-partition when installing CyanogenMod?
Thanks again in advance for your patience.
1) Nightlies are automated builds made by build bots. They contain minor (sometimes major) code changes, and, are experimental releases. RC's are release candidates, and, normally, stable enough for release.
2) Stick with RC2 for now. Nightly #22 should be the better one if the 3G bug is fixed, but, #22 is not released yet. Also, if, you get a bootloop with RC2, flash Jacob's kernel v4.1. Again, this bug will be removed in #22.
3) It should be. Can't really say for sure though, since, this is a subjective thing. For me, moving from Wildpuzzle to CM7 did seem to speed up everything. (After I switched from the default ADW to LP, it was more smooth). Besides, just for the level of options and customization you get, I would say it is worth it.
4) You need to flash DTApps2SD as well after partitioning. Simply partitioning will not make the apps move to the SD Card. Also, if you have a fast SD card, you can consider moving the Dalvik cache to your SD card as well, implying that no phone memory will be used at all when you install apps. You need not repartition again if you already have one.
Thanks for the reply
2)I've read somewhere on the forum that nightly 17 is better and more stable than RC2,is this true? and what are the major bugs in RC2 and what is missing in it(things that can currently be done on Wildpuzzle but not on RC2) and where can I find Jacob's 4.1 Kernel?
4)How do I know if I have a fast SD card? and where can I find DTApps2SD?
1) Don't know really. Since I have not tried #17 myself. Anyway, it looks like #22 is out. I'll be trying that, since it uses a newer kernel compared to Jacob's kernel and should fix the 3G bug. Anyway, just FYI, Jacob's kernel can be found here: (Repeat: Do not flash this if you are using a new nightly over and including #21)
http://forum.xda-developers.com/showthread.php?t=798471
2) You will have to remove the card and check it. Apart from the card vendor's name and capacity, there will be a number surrounded by an almost full circle. This number will be 2,4,6 or 10. For moving everything including the dalvik cache to SD card, it is recommended to have atleast a Class 4 SD Card, else it may potentially cause slowdowns.
DTApps2SD can be found here:
http://forum.xda-developers.com/showthread.php?t=925982
You can check the "Commands" Page (Link given in the thread given above) for instructions on how to use it.
EDIT: 3G Fix didnt happen in #22, but, you can still use it and flash this fix immediately after flashing the CM ROM:
http://forum.xda-developers.com/showpost.php?p=12157846&postcount=3531
1)I just flashed CM7 RC2 earlier today along with Jacob's 4.2 kernel,so what do I do now if I want to install nightly 22?
2)ok,I've checked and it's a class 4...How do I transfer Apps to Sd using Darktremor's A2SD? Through the standard method or with Titanium Backup?
FrydaeXIII said:
1)I just flashed CM7 RC2 earlier today along with Jacob's 4.2 kernel,so what do I do now if I want to install nightly 22?
2)ok,I've checked and it's a class 4...How do I transfer Apps to Sd using Darktremor's A2SD? Through the standard method or with Titanium Backup?
Click to expand...
Click to collapse
If you have already setup as per your liking, then, simply wipe cache and wipe dalvik cache under advanced partition. However, because this has a new kernel, I think it would be better to wipe data and do a factory reset as well.
Just flash the dtapps2sd ZIP file as you flash a ROM. If you want to move the dalvik cache to the SD as well, open terminal emulator, type the following:
su
a2sd
a2sd cachesd
Thanks and I've decides to stick with RC2 for now,so i've re flashed RC2,Google Apps,the 4.2 Kernel and DTa2sd...So how exactly does DTa2sd work?Like when I use Titanium Backup to restore all my apps does it go to sd automatically or there is some process to transfering it
Not aware of the Titanium Backup Process, since, I dont use it. But, what I do know is that when you flash the ZIP, the apps are moved then. But, if you have already flashed Dtapps2sd, and then restore from Ti Backup, it should go to the SD.
Anyway, you can check the thread for its functioning. Its explained much better than I can.
Em,How do I know if my SD is partitioned correctly,cos I did the a2sd check command and all I get are lots of codes ending with permission denied
FrydaeXIII said:
Em,How do I know if my SD is partitioned correctly,cos I did the a2sd check command and all I get are lots of codes ending with permission denied
Click to expand...
Click to collapse
Make sure you type su in your terminal emulator app before running that. This requires Superuser privileges.
Also, another noob way (lol) to check if it is partitioned properly is to go to check the size of your SD card. If it shows the full capacity, it is not partitioned. If it shows the capacity excluding the size of the EXT (eg: Default 2GB + 256 MB EXT will show SD card capacity as 1.60 GB), then, it is correctly partitioned.
Ok,I've checked everything and all seems to be running well,Thanks for all your help
Dammit,New problem...After installing CM7 everything runs fine and after I keep rebooting for everytime I flash something new(GApps,Kernel,DTA2SD),it reboots fine but after restoring my apps and rebooting it,It's stuck at the cyanogenmod bootscreen with the blue arrow(it's called Bootlooping right?) How do I fix this? I really like CM7 and don't want to go back to Wildpuzzle

[Q] Help: Flashed 4.2 with CWM

So I decided to upgrade to 4.2 and didnt think to check if i needed a special recovery. but i wiped and flashed as usual. The Rom (Clean Rom 2.5) works perfectly, but stickmount doesnt work with 4.2 so i planned on recovering my backup of 4.1.2
Problem 1: CWM cannot find my backup files, presumably because the file tree change
Problem 2: I wiped and flashed 4.2 a second time, as i could not restore my old one, creating a filesystem as follows...
/storage/emulated/0/0
now, the first /0 is where my current rom saves everything, and /0/0 is where all my old stuff is.
Can anyone advise as to how I can get this back to either 4.1.2 or just back to a regular-ish 4.2? I hear I should be using TWRP
Thank you
wudien said:
So I decided to upgrade to 4.2 and didnt think to check if i needed a special recovery. but i wiped and flashed as usual. The Rom (Clean Rom 2.5) works perfectly, but stickmount doesnt work with 4.2 so i planned on recovering my backup of 4.1.2
Problem 1: CWM cannot find my backup files, presumably because the file tree change
Problem 2: I wiped and flashed 4.2 a second time, as i could not restore my old one, creating a filesystem as follows...
/storage/emulated/0/0
now, the first /0 is where my current rom saves everything, and /0/0 is where all my old stuff is.
Can anyone advise as to how I can get this back to either 4.1.2 or just back to a regular-ish 4.2? I hear I should be using TWRP
Thank you
Click to expand...
Click to collapse
I had the same problem flashing ClearRom 2.5. You can use root explorer to cut and merge your files and folders to the root of the internal sd and see if that works. When I did it and entered CWM it had gone back to the 0 filepath.
Give it a try mate cause I know it has worked for some others on here.
Paul
Just update Stickmount. Today's update allow full read/write access to external storage.
Groid said:
Just update Stickmount. Today's update allow full read/write access to external storage.
Click to expand...
Click to collapse
Awesome. Are you running a custom kernel for write access? I can only read info
i tried flashing M - Kernel but as far as stickmount/otg goes it didnt change anything. how did you get it to write??
Stock, stock kernel, rooted, 4.2, latest Stickmount. Yes, I have read/write access to OTG attached storage formatted as fat32. I have to use Astro to see it though. I created a folder on a thumbdrive and copied something from internal to it. Even Root Explorer doesn't see it until they get out an update. Some of the recently updated apps, like MX Player or Doubletwist do see the attached storage. It is going to take a while for all the devs to get on board with these recent changes.

How to install roms?

I've rooted, installed a custom recovery.. but I cant seem to mount my storage to transfer rom files to my N7. Is there another manner of installing a rom?
Phen0m said:
I've rooted, installed a custom recovery.. but I cant seem to mount my storage to transfer rom files to my N7. Is there another manner of installing a rom?
Click to expand...
Click to collapse
Download them directly to your tablet. I haven't done PC transfer for ROM files since my first ROM or two on my skyrocket. Its an unnecessary burden. I flashed aokp today on my nexus 7. The downloaded files show up in your downloads folder. You could make a specific folder if you wish
-------------------------------------------------
Sent from my Skyrocket i727 running Slim Bean
-----------Nexus 7 running AOKP M1-----------
Phen0m said:
I've rooted, installed a custom recovery.. but I cant seem to mount my storage to transfer rom files to my N7. Is there another manner of installing a rom?
Click to expand...
Click to collapse
Have never transfered files through a usb cable since I found out about apps like Wifi explorer Pro or Airdroid.
Personally I use Wifi explorer pro to transfer files from and to my PC wirelessly
You can use adb push and adb pull commands too
Ive done that, but im trying to install Paranoid Android. He requests that we do a factory restore.. which wipes everything as I understand it. So wont the downloads folder be wiped as well?
Phen0m said:
Ive done that, but im trying to install Paranoid Android. He requests that we do a factory restore.. which wipes everything as I understand it. So wont the downloads folder be wiped as well?
Click to expand...
Click to collapse
Wiping data, system, cache and dalvik cache would suffice to install any rom.
All these procedures do NOT wipe ur sd card
EDIT: To be more precise if you are using TWRP just do a factory reset from the wipe options there and then wipe system, cache and dalvik cache.
Then install the ROM.
You will be fine
^^ I feel like an idiot lol. So excited to play with the thing, checkedout on common sense. Thanks guys!
Phen0m said:
^^ I feel like an idiot lol. So excited to play with the thing, checkedout on common sense. Thanks guys!
Click to expand...
Click to collapse
No problem mate.
Hope everything goes well

Can't write to internal EMMC

Hi,
I have a nook that I rooted and put a custom rom on back about a year and a half ago. I flashed the ROM to the internal EMMC and CWM 3.2.0.1 was flashed as recovery. If it makes any difference it was a CM9 ROM
Now here's where I'm at. I can run ROMs off the sd-card but they are not stable at all. I get a whole bunch of force closes and such.
When I try and flash a new ROM to the internal EMMC it says it completes, but nothing changes. It is still the previous ROM. When I try and format the /data and /system partitions with the EMMC recovery, it doesn't complete. It says there is an error. When I format with TWRP off an sd card, it says it completes but once again, the rom is not wiped.
I've tried the 8 reboot error method, and it never gets to the stock recovery screen. It keeps booting to the EMMC ROM.
I've tried repartioning the EMMC with leapinlar's zip files. It says it successfully completes, but once again nothing changes.
Ideally I'd like to get the emmc back to stock and try and run a rom off the sdcard.
I've read the threads that I thought were applicable to my issues, but nothing seemed to work. I'm completely out of ideas. Anyone have similar issues or can provide some guidance?
Thanks.
The problem you are having running a ROM from SD is the brand and speed of SD you are using. It needs to be SanDisk class 4.
The reason the 8 failed boot does not work is you replaced the stock recovery with CWM. It needs the stock recovery to be able to complete. See my NC tips thread linked in my signature and read item A12. Assuming you can get it to flash, I have a stock recovery zip there.
I don't understand why the ROMs are not flashing. You say it gives errors when you try to wipe with CWM. What do the errors say? You used the internal CWM and TWRP on SD, but none worked. Try my bootable CWM SD to see if that helps.
I don't understand why my partition zips did not work. I know the newest TWRP will not flash them without giving an error 2 message. Try my bootable CWM SD.
Sent from my Nook HD+ running CM10.1 on Hybrid SD
Thanks for the advice...
I've been using a Patriot class 10 micro sd to run the roms/attempt to flash new roms. Its worked fine before, but I'll try and pickup another one from someplace.
When I try and format /system and /data from the emmc CWM it says "Error formatting /system" or "error formatting /data" after working away for about 5 minutes
Here's what i did:
Created CWM 6.0.1.2 Bootable SD
- Flashed NookColor-emmc-stockrecovery.zip
- Message said successfull.
- tried to restart and old CWM recovery 3.2.0.1 was still installed
Booted into CWM 6.0.1.2 Bootable SD Recovery
- mounted /system and /data
- attempted to format
- Message "Done." for both
- attempted to flash stock 1.4.3 that you have modified for CWM
- install from sdcard complete
- reboot
- Old CynanogenMod bootscreen and old rom still installed.
Using same CWM 6.0.1.2 Bootable Sd Recovery
-flashed NookColor-emmc-repair-partitions-1-4-5-6-7-8.zip and NookColor-emmc-format-partitions-5-6-7.zip
-said success
-attempted to flash stock 1.4.3
- nothing changed. Old rom still installed
One more thing I noticed:
Everytime I login to the currently flashed rom, any changes I make are never saved. For example, if i install an apk or uninstall an app, the next time i can successfully boot into the emmc ROM, those changes are reversed to the previous version. Could it be that the current rom is being stored somewhere and being reflashed when it tries to bootup?
I hate to say this, but it sounds like your internal embedded card has become read only. I have had this happen to SDs but not to emmc. The apps act like they are writing and if you leave the folder and come back, they are not there. It is like they are writing to a ramdisk instead of your SD. You might try booting to a ROM on SD and see if you can write to any of the internal partitions like /cache or /rom and see if they stick. If not, you may only be able to run off SD and maybe not even then. You might have to change your dalvik cache setting on SD so it uses /data instead of /cache.
Sent from my Galaxy Tab running Tapatalk
I tried copying a file to the emmc partition from twrp and it didn't persist after reboot... so it looks like the emmc is set to read only. I don't supposed I can change that using adb and/or software solutions right? It's a hardware issue?
Any guidance on how to change davlik cache to use /data instead of /cache? I'll be happy to get any sort of stable rom running off any SD card.
I was hoping to repurpose the nook as in in car tablet to tether a data connection to my phone and play music and such.
Thanks for your help. I appreciate you taking the time.
canjoe said:
I tried copying a file to the emmc partition from twrp and it didn't persist after reboot... so it looks like the emmc is set to read only. I don't supposed I can change that using adb and/or software solutions right? It's a hardware issue?
Any guidance on how to change davlik cache to use /data instead of /cache? I'll be happy to get any sort of stable rom running off any SD card.
I was hoping to repurpose the nook as in in car tablet to tether a data connection to my phone and play music and such.
Thanks for your help. I appreciate you taking the time.
Click to expand...
Click to collapse
I don't know of anything that can revive it. I never could revive my SD that that happened to.
To make your ROM on SD use /data for all of the dalvik cache, create a file in /data named local.prop. In that file put this line:
dalvik.vm.dexopt-data-only=1
Next time it boots the system file portion of dalvik cache will be on /data along with the installed app portion.
Sent from my stock Nook HD+ using XDA Premium
I now have a stable version of CM 7.2 running off the SD card. I put the davlik cache on the data partition and everything seems to be running pretty smooth.
I'll keep messing around seeing if there is anything to revive the internal emmc, but at least I can use the nook off the SD card again.
Thanks for helping me troubleshoot and figure this out. Cheers.

[Q] Flashing Omni created another partition?

Hey guys, hope you can help me out with a problem I've having after flashing Omni this week. I'm currently on the 11/28 nightly and I used to be on CM10.2. I have AT&T Galaxy Note 2 i317
So here's my problem:
- I wiped cache/dalvik/data and flashed Omni and every works fine
- However, I noticed that Omni may have created a new partition on top of my files and data from CM
- When I'm in CWM recovery, install from /sdcard, I see a folder called /0 and a bunch of folders/files from my CM10.2 days
- /0 is where I would access files saved through Omni
This is the first time I've encountered this problem. I have flashed many ROMs before deciding on living with CM; I've used Jedi, Carbon, PA, MIUI, etc and I've never had an extra partition. I cant even find the "CM partition" via root browser or ES File.
The CM partition is taking up 4GB of my storage so I would really like to delete it.
Anyone have any ideas as to how I would delete the CM partition?
r3dal3rt said:
Hey guys, hope you can help me out with a problem I've having after flashing Omni this week. I'm currently on the 11/28 nightly and I used to be on CM10.2. I have AT&T Galaxy Note 2 i317
So here's my problem:
- I wiped cache/dalvik/data and flashed Omni and every works fine
- However, I noticed that Omni may have created a new partition on top of my files and data from CM
- When I'm in CWM recovery, install from /sdcard, I see a folder called /0 and all folders from my CM10.2 days
- /0 is where I would access files saved through Omni
This is the first time I've encountered this problem. I have flashed many ROMs before deciding on living with CM; I've used Jedi, Carbon, PA, MIUI, etc and I've never had an extra partition. I cant even find the "CM partition" via root browser or ES File.
The CM partition is taking up 4GB of my storage so I would really like to delete it.
Anyone have any ideas?
Click to expand...
Click to collapse
If you are asking where the "/0" directory came from, that is from any version of android 4.2+ (google did that for multi-user support)
Other than that if I didn't answer your question please rephrase it as there is no real question which is usually depicted by a "?" at the end of the sentence/question.
.torrented said:
If you are asking where the "/0" directory came from, that is from any version of android 4.2+ (google did that for multi-user support)
Other than that if I didn't answer your question please rephrase it as there is no real question which is usually depicted by a "?" at the end of the sentence/question.
Click to expand...
Click to collapse
Thanks,
Basically, I want to delete the files/folders from CM partition. Im only using Omni so theres no point having data for CM.
It's currently hogging up 4GB of my storage. I tried to delete it using Root Browser, ES File, etc but it cant access it (probably, like you said, its due to the multi-user support)
Any ideas?
r3dal3rt said:
Thanks,
Basically, I want to delete the files/folders from CM partition. Im only using Omni so theres no point having data for CM.
It's currently hogging up 4GB of my storage. I tried to delete it using Root Browser, ES File, etc but it cant access it (probably, like you said, its due to the multi-user support)
Any ideas?
Click to expand...
Click to collapse
this is kind of extreme, but an internal storage wipe would do the trick
.torrented said:
this is kind of extreme, but an internal storage wipe would do the trick
Click to expand...
Click to collapse
Well a lot of the 4GB is pictures, music, and flashable CM10 and GAPPs zip.
In the Philz recovery there is an option to wipe everything. Is there such an option in CWM? I tried wipe system/factory reset but that only clears the 0/ directory
Sent from my SGH-I317 using xda app-developers app
r3dal3rt said:
Well a lot of the 4GB is pictures, music, and flashable CM10 and GAPPs zip.
In the Philz recovery there is an option to wipe everything. Is there such an option in CWM? I tried wipe system/factory reset but that only clears the 0/ directory
Sent from my SGH-I317 using xda app-developers app
Click to expand...
Click to collapse
One should say factory reset the other should say wipe data or internal storage, using twrp it actually says internal storage

Categories

Resources