Broken /storage/sdcard1 on find7 - Omni Q&A

I installed omni-5.1.1-20150822-find7-NIGHTLY on an Oppo Find 7 to avoid a Cyanogenmod radio bug. For some reason, /storage/sdcard1 does not work even through it reports as mounted. Anything looking at that path, root or not, gets a permissions error. Root can access /mnt/media_rw/sdcard1 without problems but apps can't. 'df' shows that the sdcard is mounted at both locations. Yes, I tried reformatting and changing permissions in TWRP without success. Any ideas on how to fix this? It's a 128GB card so I'm missing a lot of data.

kevinmcmurtrie said:
I installed omni-5.1.1-20150822-find7-NIGHTLY on an Oppo Find 7 to avoid a Cyanogenmod radio bug. For some reason, /storage/sdcard1 does not work even through it reports as mounted. Anything looking at that path, root or not, gets a permissions error. Root can access /mnt/media_rw/sdcard1 without problems but apps can't. 'df' shows that the sdcard is mounted at both locations. Yes, I tried reformatting and changing permissions in TWRP without success. Any ideas on how to fix this? It's a 128GB card so I'm missing a lot of data.
Click to expand...
Click to collapse
Hmm... That's external so I don't think the usual selinux issue would be the cause.
Check maxwen's find7 thread in Find7 Original Development, might be something useful there.

Related

[Q] TF101 doesn't recognize internal sdcard

I have CWMR 5,8 installed. First boot automatically loads into CWMR [this is, as far as I've read, a problem with the recovery and I can handle it if I can fix the internal sd card]. Rebooting and cold-booting helps me boot up my ROM (I've tried multiple ROMs, currently on CM9).
Everything works, except for my internal sdcard (weirdly thought I cannot access my external micro SD from CWMR). It seems as if its not mounted. I got ADB access to the device, /sdcard is there and all of the files are there. I can adb push and adb pull, so the internal storage seems to be working fine, it just doesn't mount it. Maybe the issue is permissions? ls -la sdcard outputs: lrwxrwxrwx root root 2012-10-26 20:43 sdcard -> /storage/sdcard0
Any ideas? I've tried installing different versions of CWM recoveries (adb push zip file and then using CWM to actually install it), they don't seem to stick.
Does /storage/sdcard0 exist on your device (AFAIK this is the new location defined by JB, but I don't know what CM9 does)?
If not, you may find your files in /data/media.
peeter.tomberg said:
I have CWMR 5,8 installed. First boot automatically loads into CWMR [this is, as far as I've read, a problem with the recovery and I can handle it if I can fix the internal sd card]. Rebooting and cold-booting helps me boot up my ROM (I've tried multiple ROMs, currently on CM9).
Everything works, except for my internal sdcard (weirdly thought I cannot access my external micro SD from CWMR). It seems as if its not mounted. I got ADB access to the device, /sdcard is there and all of the files are there. I can adb push and adb pull, so the internal storage seems to be working fine, it just doesn't mount it. Maybe the issue is permissions? ls -la sdcard outputs: lrwxrwxrwx root root 2012-10-26 20:43 sdcard -> /storage/sdcard0
Any ideas? I've tried installing different versions of CWM recoveries (adb push zip file and then using CWM to actually install it), they don't seem to stick.
Click to expand...
Click to collapse
ok first thing, your external microsd card should be /Removable/MicroSD/. also what do you mean when you say youre pushing zip files then installing them but they dont seem to stick? how are you connecting via adb are you using ./adb shell to connect and move files? theres a certain way you have to push files to the device when youre in recovery.
Fixed it
Hello,
Not being able to mount the internal sdcard
The problem was I installed CM10 then somehow rolled back to CM9. The sdcard location moved between those 2 versions and the CM9 version wasn't able to mount it anymore. After installing CM10 everything worked apart from the boot loop.
TF101 booted into recovery every time
I fixed that by flashing: http://forum.xda-developers.com/showthread.php?t=1213723
and running the command to actually load in the new recovery from here: http://forum.xda-developers.com/showthread.php?t=1530337
In summary
My tf101 works thanks to all the info available on xda

Can't read extSdCard after enable encryption

All,
I am using safestrap+gravition on i337 MF3. So far it was good for a week, but today my SD card stopped showing up. When I replug the SD card i got a message telling Preparing SD card checking for errors. This message stays forever. If I kill it the SD card just doesn't mount
I tried to mount it manually with:
mount -t vfat -o rw /dev/block/vold/179\:33 /storage/extSdCard/
and I am able to mount the card and see it through terminal. But none of the apps is able to see the /storage/extSdCard content. I checked permissions and they look good
Let me tell that I am using email.apk, the modified app to circumvent exchange security. As I said, this worked well until this morning that it stopped working.
http://forum.xda-developers.com/showthread.php?t=1749921
I removed the account and the issue stayed. I wiped all the data out and it fixed the issue. However, when I create the exchange account it happens agan.
Any has undergone this kind of situation
Also, a possible workaround would be mounting the SdCard manually. But I am not able to make it visible to the APS, am I missing something besides that mount command?
Thanks!!

Mount EXT4 MicroSD Card

I've given up on reformatting the internal memory as EXT4 (my last post). However now, I want to mount an external SD card that is EXT4 (or any file format that has UNIX permissions). I can't get my device to mount the card, it says the filesystem is unsupported. Now, that's bull**** since Android has built in support for EXT. After searching threads here on XDA and Google, and even purchasing EzyMount as recommended, I can't get it to mount. I've tried BusyBox and mount commands (as root), with various errors such as "mount operation not supported on transport endpoint". I'm at my wit's end by now, trying to get some filesystem which has support for symlinks and UNIX permissions... any ideas?
kcattakcaz said:
I've given up on reformatting the internal memory as EXT4 (my last post). However now, I want to mount an external SD card that is EXT4 (or any file format that has UNIX permissions). I can't get my device to mount the card, it says the filesystem is unsupported. Now, that's bull**** since Android has built in support for EXT. After searching threads here on XDA and Google, and even purchasing EzyMount as recommended, I can't get it to mount. I've tried BusyBox and mount commands (as root), with various errors such as "mount operation not supported on transport endpoint". I'm at my wit's end by now, trying to get some filesystem which has support for symlinks and UNIX permissions... any ideas?
Click to expand...
Click to collapse
you fully rooted with custom kernel or only with rdlv etc?
First you gotta figure out how to mount this damn thing, gotta be possible.
Then you need to get this done on bootup, either in init.rc or init.d or smth.
You probably just use wrong commands? But I could be wrong, didnt try that yet but would also be interested. Having the file permissions also on SD would be nice, but it could cause trouble with mtp maybe?
zroice said:
you fully rooted with custom kernel or only with rdlv etc?
First you gotta figure out how to mount this damn thing, gotta be possible.
Then you need to get this done on bootup, either in init.rc or init.d or smth.
You probably just use wrong commands? But I could be wrong, didnt try that yet but would also be interested. Having the file permissions also on SD would be nice, but it could cause trouble with mtp maybe?
Click to expand...
Click to collapse
I am rooted, but stock ROM and kernel. MTP is for connecting to a computer? If it is, I don't need that. I have tried
mount -rw -t ext4 /dev/block/mmcblk1p1 /storage/extStorageCard
and variants switching the flags and options.
Interesting... I just typed that command in to make sure I didn't make any typos.... and my phone crashed and rebooted. I typed it again to see if it would cause another crash and it appears to have mounted the card! Whwn I type "df" at the prompt it now shows a 28.6 GB filesystem at that location, which has to be my sd card.
Why, how, I don't know. It works, it's all I can say.

[FIX] Ext-SD Write Support for 2.0 (Lollipop)

Note this has only been tested on the US WiFi version (Should work for all WiFi Only versions.)
I am not responsible if anything goes wrong.
Pre-Requisites: (Unlocked bootloader)
Custom Recovery (Tested with CWM)
Running 2.0 (Lollipop)
Instructions (Unlocked bootloader)
Download SDFix.zip below to tablet
Flash via Custom Recovery
Profit
Pre-Requisites: (Locked bootloader)
Root
Running 2.0 (Lollipop)
Access to terminal (either adb shell or app).
Instructions (Locked bootloader)
Download platform.xml.zip below and unzip
Copy platform.xml to internal storage
Run:
Code:
su
mount -o rw,remount /system
mv /sdcard/platform.xml /system/etc/permissions/platform.xml
chmod 0644 /system/etc/permissions/platform.xml
Reboot
Profit
diff from stock?
edit: nevermind - it appears to be the same as the kitkat fix. (adding media_rw to WRITE_EXTERNAL_STORAGE)
garyd9 said:
diff from stock?
edit: nevermind - it appears to be the same as the kitkat fix. (adding media_rw to WRITE_EXTERNAL_STORAGE)
Click to expand...
Click to collapse
That's exactly what it is. I just thought it might not be a bad idea to zip it for convenience.
another way if already rooted, install Folder Mount (https://play.google.com/store/apps/details?id=com.devasque.fmount&hl=en) which is very useful in it's own right. When ran for the first time it'll detect that the SD Card is not writeable, it'll offer to fix it. Choose to do so, reboot, and presto!!
Carlos
Chaleman said:
another way if already rooted, install Folder Mount (https://play.google.com/store/apps/details?id=com.devasque.fmount&hl=en) which is very useful in it's own right. When ran for the first time it'll detect that the SD Card is not writeable, it'll offer to fix it. Choose to do so, reboot, and presto!!
Carlos
Click to expand...
Click to collapse
Confirmed that this works on my LTE US. :good:
Chaleman said:
another way if already rooted, install Folder Mount (https://play.google.com/store/apps/details?id=com.devasque.fmount&hl=en) which is very useful in it's own right. When ran for the first time it'll detect that the SD Card is not writeable, it'll offer to fix it. Choose to do so, reboot, and presto!!
Carlos
Click to expand...
Click to collapse
I was coming here just to say that. I installed one of the KitKat SD fix apps that do the same thing and it said it was already fixed. I'm glad since before I used the xposed module to fix SD support.
guys,
does it fix TitaniumBackup backups protection?
Read here, probably the PIE is the reson:
http://www.reddit.com/r/Nexus5/comments/2jpalf/for_those_facing_troubles_with_root_apps_in/
EDIT: I found 1) each time I exit the CWM I'm asked to fix SuperUser, 2) Can't mount sdcard1/install zip from sdcard1
Is it normal?
eSbek said:
guys,
does it fix TitaniumBackup backups protection?
Read here, probably the PIE is the reson:
http://www.reddit.com/r/Nexus5/comments/2jpalf/for_those_facing_troubles_with_root_apps_in/
EDIT: I found 1) each time I exit the CWM I'm asked to fix SuperUser, 2) Can't mount sdcard1/install zip from sdcard1
Is it normal?
Click to expand...
Click to collapse
Make sure the external SDCard is formatted in Fat32...
Carlos
Before I start copying all these GB's that I have o my 128GB card, what about the FAT32 limitations - cards above 32GB cannot be format with windows, but it's still possible with a dedicated software. I wonder if I can use FAT32 in this case
eSbek said:
Before I start copying all these GB's that I have o my 128GB card, what about the FAT32 limitations - cards above 32GB cannot be format with windows, but it's still possible with a dedicated software. I wonder if I can use FAT32 in this case
Click to expand...
Click to collapse
The only limitation that I know of is that you can't file a single file more than 4GB in size...
Carlos
did this (both methods). Both didn't work. So rebooted.
Now I am sitting with a tablet that fc's at least 15 apps.
Even TB backup fc's.
Damned!!!!!!!
Edit have continuous fc's of nearly all apps.
Factory reset.....
I was thinking that I've messed up something with my tab and then founded this fix! Ohgod I'm breathing again.
Thanks man
After factory reset all went ok.
2 hours later I was up and running again and now the foldermount app did it's work correctly.
TB can write so problems are solved.
Snah001 said:
After factory reset all went ok.
2 hours later I was up and running again and now the foldermount app did it's work correctly.
TB can write so problems are solved.
Click to expand...
Click to collapse
I formatted the card to FAT32, now can see it in CWM, but still can't protect the backups (although I can write to card by TB like before when I was on exFat).
Is it normal that CWM asks to fix the root on each exit?
Yes, CWM will do that always.
When you don't choose it it will not loose root.
alguna respuesta para el galaxy s5 con 5.0 lollipop?
Ya probé con la sd fix card y me sigue mandando error. Ayuda porfavor
Chaleman said:
another way if already rooted, install Folder Mount (https://play.google.com/store/apps/details?id=com.devasque.fmount&hl=en) which is very useful in it's own right. When ran for the first time it'll detect that the SD Card is not writeable, it'll offer to fix it. Choose to do so, reboot, and presto!!
Carlos
Click to expand...
Click to collapse
This worked for me! Excellent thank you ☺
Manually Edited Permissions
I actually found this thread after I solved things, but....
I have a 64GB Micros-SD formatted FAT32. Ran into the problem that Android won't let apps modify files on an external card. (All I wanted to do was to keep my Moon + Reader library there....lots of books!)
Instead of using an app, I modified the permissions file according to this article: http://technofaq.org/posts/2014/04/fixing-external-sd-card-write-issue-on-android-kitkat/
Rebooted and all is well.
I am one of those people that tends to be very minimalist about the apps/games that I install, but heavy on the data. One reader, but lots of books.
Just wanted to put this out there as an alternative.
koop1955 said:
I actually found this thread after I solved things, but....
I have a 64GB Micros-SD formatted FAT32. Ran into the problem that Android won't let apps modify files on an external card. (All I wanted to do was to keep my Moon + Reader library there....lots of books!)
Instead of using an app, I modified the permissions file according to this article: http://technofaq.org/posts/2014/04/fixing-external-sd-card-write-issue-on-android-kitkat/
Rebooted and all is well.
I am one of those people that tends to be very minimalist about the apps/games that I install, but heavy on the data. One reader, but lots of books.
Just wanted to put this out there as an alternative.
Click to expand...
Click to collapse
The apps mentioned do not need to remain on the device. The apps (or the routine in folder mount) make the change you linked to automatically. Once run the change is made and you can uninstall.
With the apps you don't have to worry about a typo or other issue.
HELP!
i tried this fix and its picking up my Ext-SD card and everything alright, but now Recovery is unable to mount /data
EDIT: i fixed the ext-sd support with the Folder Mount App if thats any help

SM-T230nu SD Swap woes

Okay, I've literally been working on this for the last 2 days, tried everything I've found so far, and the most progress I've made was (somehow) making both sdcard and extsdcard show the same storage mount, but I have no clue what change made that occur for one reboot. So far, I've tried the following:
vold.fstab editing
build.prop editing
FolderMount (desparate...)
I've even tried the debuggerd script I found in this other forum, and yes I edited the script to point to the correct vold blocks (in my case they're 179:96 and 179:97 for the internal and external storage, respectively)
While I'm not against using a fully custom rom for these tablets (I have two), the dilemma is that my 4-year-old sons use them, so the KidsMode needs to function properly. They've run out of storage space on these due to three FREAKING HUGE games they absolutely insist on keeping on the tablets at all times, and apps like GL to SD need to be run and remounted on every reboot, so it isn't a suitable solution...
Best case, I would love a boot.img swap so it'll be zero-maintenance. I've been searching and so far I haven't turned up anything I can use... I'm a long-time "power user" with several devices running custom kernels, various builds of CM, and even a modded version of CM12 on my tablet I compiled myself. I'm not a beginner, but I'm definitely out of my league on this one.. Any assistance will be appreciated.
UPDATE
I'ne partially succeeded. I've figured out how to remount /sdcard to the external sd card, but it's not a perfect redirect. It shows in file managers, but not in the Settings under Storage, and the free space shown in Application Manager is blank (crashes in a few seconds), or it continues to show the real internal sd card info. I used the following single command in the debuggerd.mnt file:
Code:
mount -t vfat -o rw /dev/block/vold/179:97 /storage/sdcard0
no luck
No luck with the swap... The only option I believe I have at this point is to either install a custom rom (but I haven't found a single one...), or I need to pull the boot.img to edit it. So far I've not been able to find the boot partition, and the "by-name" list doesn't mention anything related to "boot"
My last thought is to try to extract it from a stock firmware. Is that possible? I don't have linux running, and all boot devices are disabled on my work laptop so a live distro isn't an option...
Any help or opinions will be greatly appreciated...

Categories

Resources