5,599,478 Members 40,107 Now Online
XDA Developers Android and Mobile Development Forum

[Q] internal sd storage partition/mount problem

Tip us?
 
liran corleone
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 15
Join Date: Nov 2013
Tablet [Q] internal sd storage partition/mount problem

I got my nexus 7 2013 a few weeks ago. It worked great for some time until I decided to flash a kernel that claimed to add support for CIFS windows shares mount. After installing this kernel, when the OS booted, I did not have landscape mode working anymore - only portrait. I decided to do adb full restore to a full backup i made before this step, which seemed to have passed without any errors, but something happened to the recognition of the internal SD memory - applications are not able to use it - I am getting "no external storage" messages when I launch the gallery application and an error when trying to run the google play store - "unfortunetley, google play store has stopped". The device is still starting with only portrait mode.

i then tried to format the device and used TWRP to format everything including the internal memory. After that I reflashed the original rom of google for this device (taken from here https://developers.google.com/androi...es#razorjss15r). The problem is still the same. In TWRP recovery console - I am able to access and push files to and from /sdcard folder with no problems, and see its content with adb shell.

When android loads - cd /sdcard + ls shows that it is empty (even though it does contain files copied to it in recovery console mode) the reason for this is that with ls I can see that "/sdcard" points to "/storage/emulated/legacy" which points to "/mnt/shell/emulated/0" which DOES NOT exist. "/mnt/shell/emulated/" folder exists, but it is empty.

I am unable to use the device - just start the OS (and get the error messages when trying to launch applications). When the OS loads I immediately get the "unfortunetley, google play store has stopped" error without doing anything.

running google earth application when logcat active gives the following output:
--------
E/cutils (10727): Failed to chmod(/mnt/shell/emulated/0, 0): Read-only file system
E/dalvikvm(10727): cannot mountExternalStorage(): Read-only file system
I/ActivityManager( 492): Start proc com.google.earth for activity com.google.earth/.EarthActivity: pid=10727 uid=10024 gids={50024, 3003, 1015, 1028}
D/dalvikvm(10727): No JNI_OnLoad found in /system/lib/libearthmobile.so 0x41dc5158, skipping init
--------
i've attached logcat and dmesg outputs i got.

Any idea how do I solve this? Why are the folder links broken when I am using an original google rom?
Attached Files
File Type: zip logs.zip - [Click for QR Code] (61.2 KB, 10 views)
 
liran corleone
Old
(Last edited by liran corleone; 30th November 2013 at 05:17 PM.)
#2  
Junior Member - OP
Thanks Meter 0
Posts: 15
Join Date: Nov 2013
I've attached a bug report created using nexus root toolkit 1.78. searching for "failed" word in the log shows the problem happens over and over again as i try to use different applications:

"Failed to mkdir(/mnt/shell/emulated/0): Read-only file system".

i cannot use any application that needs the internal SD storage even though it is mounted to /data and the system reports 25GB available storage as can be seen by searching this log for "FREE SPACE" (df output)

working in "adb shell" as root (after "su"), i cannot write to any of the device's folders - only after executing "mount -o rw,remount /" it becomes possible (and only for the same session of the shell).

It would be very helpful if someone with a working nexus 7 2nd can post he/she's own device's bug report file so I'll be able to compare it to mine and see if i can find any differences. It can be done using the nexus toolkit:
"Launch" -> "Launch Generator" -> "OK" -> "Dump bug report to file" (filter output and alternate buffer log are unchecked).

Is there no one here that has experience with under the hood stuff of android and its filesystem?

Any help/directions will be appreciated.
Attached Files
File Type: zip BugReport.zip - [Click for QR Code] (482.8 KB, 1 views)
 
Waledzaki
Old
#3  
Junior Member
Thanks Meter 0
Posts: 4
Join Date: Dec 2013
I have the same problem did you find a solution?
 
liran corleone
Old
(Last edited by liran corleone; 23rd December 2013 at 08:47 AM.)
#4  
Junior Member - OP
Thanks Meter 0
Posts: 15
Join Date: Nov 2013
Quote:
Originally Posted by Waledzaki View Post
I have the same problem did you find a solution?
not yet - we need someone to post his debug info or at least "mount" command output for a working android 4.3+ device. maybe by comparison we'll be able to find what is wrong.

I must say i find the android community is quite disappointing - no one seems to give any directions even though full logs and detailed problem description supplied here.

I'm coming from maemo community (n900 device) which has many way better OS professionals.
 
alligator_asl
Old
#5  
alligator_asl's Avatar
Senior Member
Thanks Meter 60
Posts: 169
Join Date: Nov 2011
Quote:
Originally Posted by liran corleone View Post
It would be very helpful if someone with a working nexus 7 2nd can post he/she's own device's bug report file so I'll be able to compare it to mine and see if i can find any differences. It can be done using the nexus toolkit:
"Launch" -> "Launch Generator" -> "OK" -> "Dump bug report to file" (filter output and alternate buffer log are unchecked).
I have a new nexus7 (2013) with android 4.4.2 , not unlocked, not rooted. Can i help you with this bug report?
Have you a link to the nexus toolkit?
Nexus7(2013) flo , stock rom; Android 4.4.2; Kernel 3.4.0-gac9222c (stock kernel); Buildnr. KOT49H
Samsung Galaxy S duos s7562, rooted; Android 4.0.4 / PMP Ultra ROM v7.4 from Mohitash ; Basisbandversion S7562XXBMJ1
semi-retired: HTC Legend, rooted / Hboot 1.02, unlocked; ROM "[UNOFFICIAL] CM9.1 BETA8 for Legend" from zeubea ; Radio 47.51.35.17_7.13.35.05
 
liran corleone
Old
#6  
Junior Member - OP
Thanks Meter 0
Posts: 15
Join Date: Nov 2013
Quote:
Originally Posted by alligator_asl View Post
I have a new nexus7 (2013) with android 4.4.2 , not unlocked, not rooted. Can i help you with this bug report?
Have you a link to the nexus toolkit?
you can download it from here: http://www.wugfresh.com/

after starting and choosing your device, press "Launch" button -> "Launch Generator" -> "Dump bug report to file" -> this will create the needed log file.

It would be great if you can post it (the log file) here.

Thanks.
 
alligator_asl
Old
#7  
alligator_asl's Avatar
Senior Member
Thanks Meter 60
Posts: 169
Join Date: Nov 2011
Hello,
I generated this report and looked at him, unfortunately he contains too many personal details such as MAC addresses, SSID's, e-mail addresses, used apps, calendars and many others. I think, I can only post parts here. Can you tell me which parts you need?
Nexus7(2013) flo , stock rom; Android 4.4.2; Kernel 3.4.0-gac9222c (stock kernel); Buildnr. KOT49H
Samsung Galaxy S duos s7562, rooted; Android 4.0.4 / PMP Ultra ROM v7.4 from Mohitash ; Basisbandversion S7562XXBMJ1
semi-retired: HTC Legend, rooted / Hboot 1.02, unlocked; ROM "[UNOFFICIAL] CM9.1 BETA8 for Legend" from zeubea ; Radio 47.51.35.17_7.13.35.05
 
liran corleone
Old
#8  
Junior Member - OP
Thanks Meter 0
Posts: 15
Join Date: Nov 2013
Quote:
Originally Posted by alligator_asl View Post
Hello,
I generated this report and looked at him, unfortunately he contains too many personal details such as MAC addresses, SSID's, e-mail addresses, used apps, calendars and many others. I think, I can only post parts here. Can you tell me which parts you need?
These sections are important (search for these strings in the log file):

KERNEL LOG
SYSTEM LOG
EVENT LOG
LAST KMSG
FILESYSTEMS & FREE SPACE

if there is a problem to publish it here, maybe you can send me on private?
it would be great if you can post these section from a log file which was created in the following way (in order to produce a clean log):

reboot the device, run an application that uses the internal storage (google earth for example) and recreate the log.

Thanks.
 
alligator_asl
Old
#9  
alligator_asl's Avatar
Senior Member
Thanks Meter 60
Posts: 169
Join Date: Nov 2011
Quote:
Originally Posted by liran corleone View Post
reboot the device, run an application that uses the internal storage (google earth for example) and recreate the log.
I did so, and here are the logs:
Attached Files
File Type: txt EVENT_LOG.txt - [Click for QR Code] (66.3 KB, 5 views)
File Type: txt FILESYSTEMS_&_FREE_SPACE.txt - [Click for QR Code] (643 Bytes, 1 views)
File Type: txt KERNEL_LOG.txt - [Click for QR Code] (93.1 KB, 1 views)
File Type: txt LAST_KMSG.txt - [Click for QR Code] (227.8 KB, 1 views)
File Type: txt SYSTEM_LOG.txt - [Click for QR Code] (355.4 KB, 2 views)
Nexus7(2013) flo , stock rom; Android 4.4.2; Kernel 3.4.0-gac9222c (stock kernel); Buildnr. KOT49H
Samsung Galaxy S duos s7562, rooted; Android 4.0.4 / PMP Ultra ROM v7.4 from Mohitash ; Basisbandversion S7562XXBMJ1
semi-retired: HTC Legend, rooted / Hboot 1.02, unlocked; ROM "[UNOFFICIAL] CM9.1 BETA8 for Legend" from zeubea ; Radio 47.51.35.17_7.13.35.05
The Following User Says Thank You to alligator_asl For This Useful Post: [ Click to Expand ]
 
liran corleone
Old
#10  
Junior Member - OP
Thanks Meter 0
Posts: 15
Join Date: Nov 2013
Quote:
Originally Posted by alligator_asl View Post
I did so, and here are the logs:
i already found very interesting differences, although i'm not sure yet how this should be fixed:

in KERNEL LOG (dmesg):

Working device:

<6>[ 6.572631] EXT4-fs (mmcblk0p30): mounted filesystem with ordered data mode. Opts: barrier=1,data=ordered,nomblk_io_submit,errors=pan ic
<7>[ 6.572784] SELinux: initialized (dev mmcblk0p30, type ext4), uses xattr
<6>[ 6.578033] EXT4-fs (mmcblk0p4): mounted filesystem with ordered data mode. Opts: barrier=1,data=ordered,nodelalloc
<7>[ 6.578155] SELinux: initialized (dev mmcblk0p4, type ext4), uses xattr

Non working device:

<6>[ 6.130340] EXT4-fs (mmcblk0p30): mounted filesystem with ordered data mode. Opts: barrier=1,data=ordered,nomblk_io_submit,errors=pan ic
<7>[ 6.130462] SELinux: initialized (dev mmcblk0p30, type ext4), uses xattr
<3>[ 6.131042] EXT4-fs (mmcblk0p4): VFS: Can't find ext4 filesystem
<3>[ 6.198333] fs_mgr: Cannot mount filesystem on /dev/block/platform/msm_sdcc.1/by-name/persist at /persist
<3>[ 6.198425] init: fs_mgr_mount_all returned an error

"df" on working device:

Filesystem Size Used Free Blksize

/dev 902.9M 128.0K 902.8M 4096
/sys/fs/cgroup 902.9M 12.0K 902.9M 4096
/mnt/asec 902.9M 0.0K 902.9M 4096
/mnt/obb 902.9M 0.0K 902.9M 4096
/system 827.8M 700.9M 126.9M 4096
/cache 551.7M 9.9M 541.8M 4096
/data 26.4G 2.9G 23.6G 4096
/persist 14.5M 4.2M 10.2M 4096
/mnt/shell/emulated 26.4G 2.9G 23.6G 4096

"df" on non working device missing 2 mount points, and found a new one:

Filesystem Size Used Free Blksize

/dev 902.9M 128.0K 902.8M 4096
/sys/fs/cgroup 902.9M 12.0K 902.9M 4096
/mnt/asec 902.9M 0.0K 902.9M 4096
/mnt/obb 902.9M 0.0K 902.9M 4096
/system 827.8M 690.2M 137.5M 4096
/cache 551.7M 13.2M 538.6M 4096
/data 26.4G 337.4M 26.1G 4096
/mnt/secure 902.9M 0.0K 902.9M 4096

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


TRENDING IN THEMER...