Project

General

Profile

Internal storage doesn't mount anymore

Added by christina d over 8 years ago

Hey,

I successfully upgraded to 0004 image (used "wipe data/factory reset") but a strange behavior is happening to my internal storage (/storage/sdcard0).
The phone is encrypted.
Before, when i was connecting it to my desktop, i was getting 2 volumes, the internal storage and the external sdcard. Now i get only the external sdcard.

Also when i go with the phone's file manager to navigate to /storage/sdcard0, it seems empty.

What can i enable/fix to have access to my encrypted internal storage?

Thank you :)


Replies (5)

RE: Internal storage doesn't mount anymore - Added by christina d over 8 years ago

Let me be also a bit more specific, so maybe i can get a better aid to my problem.

I use USB mass storage connection, i encrypted the phone using a PIN code then changed the password with the Cryptfs Password app.
Applied the basic and advanced hardening that "My Self" provided on a thread in the security section.

I use Amaze file-manager (Privacy guard enabled) with root privileges but still at /storage/sdcard0 i get 0 Folders 0 Files. ("/" is accessible though)

For example, when i try to download something i get a "No SD card" message and that USB storage is required to download the file.

Privacy guard is generally enabled also in built-in apps with a few exceptions like calendar, contacts and Trebuchet.

Android debugging is off.

What i want to be able to do is, to somehow pass files from my computer directly to the encrypted internal storage (like alarm sounds, ringtones, maps, music, pictures, or any kind of file) and be able to read them on my phone without the need, for those files, to have to stay or go through the unencrypted external sdcard. And the thing is that i can't even access my internal storage within my phone's file-manager.

I hope i can have a solution soon.

Update: Still no solution yet, thinking about wiping everything and re-applying the image. Please assist :)

RE: Internal storage doesn't mount anymore - Added by christina d over 8 years ago

Update 2:

After looking a bit on the forums i was able to solve the problem by going back to stock ROM and re-imaging back to replicant.

RE: Internal storage doesn't mount anymore - Added by My Self over 8 years ago

Sorry for seeing this thread- and answering too late :'(

For the next time, I don't think you need to reflash stock ROM to bring your sdcard0 (emmc) back into the right format.

I think this could have had something to do with your enabled encryption... But I'm pretty sure that formatting your internal storage over the Recovery by:
  • - mount and storage
  • - format /emmc

and re-encrypt the storage after that, should have do the trick.

PS: if you like 'Cryptfs Password', you also could give the alternative SnooperStopper a try, because of its additionally 'max. unlock attempts'-feature.

RE: Internal storage doesn't mount anymore - Added by christina d over 8 years ago

Thank you, already using SnooperStopper. Loving it!

About the mount and storage menu at the Recovery, i tried it and it didn't work. I was getting an error that can't mount or format the emmc.

So (after reading this thread) i went to SamMobile (i hope the site is trustworthy, have no idea) and flashed to stock. Then at first boot the rom notified me that there was a problem with the encrypted internal storage and if i want to fix/format it. After that all went smooth.

Maybe there is a problem with the phone (i9100) cause sometimes even now and before with the 0003 image the internal storage didn't mount (was losing the chosen custom ringtone settings, etc) and after a reboot was/is mounting normally.

Thank you again for replying

RE: Internal storage doesn't mount anymore - Added by My Self over 8 years ago

About the mount and storage menu at the Recovery, i tried it and it didn't work. I was getting an error that can't mount or format the emmc.

I had this problem, too (sometime ago); and it seems I remember now... You just have to boot into the (Replicant) system and wait some seconds. Then should be a message in your notification area, that the sdcard could not be mounted, and if you want to format it?
(The first time I thought this means the external sdcard and rejected the offer). But after a reboot the message came up again and I accepted, which made my /storage/sdcard0 available again.
As far as I remember, this definitely had something to do, that my internal storage was encrypted...

If you want to flash an alternative ROM for a reason like this, I would prefer OMNI (http://dl.omnirom.org/i9100/) instead of the stock ROM, because this have an alternative Recovery (TWRP) which give you more options (and by the way have the feature to handle encrypted storages), before you flash back to Replicant.
(Sadly I don't found a way to use TWRP with Replicant. TWRP is open source, too - but seems to be a lot of work to bring it in love with Replicant. OMNI itself is not under active development for the i9100 anymore, so I don't recommend to use it in the outdated version, for security reasons).

So (after reading this thread) i went to SamMobile (i hope the site is trustworthy, have no idea) and flashed to stock.

I don't know the SamMobile guys personally, but to me they were trustworthy enough, that I become a premium member some years ago, (in the good old times, they wanted €7,50 for a lifetime premium membership, instead [nowadays and for the same money] a 14 day access... Oh boy, this is what I call an inflation).

Then at first boot the rom notified me that there was a problem with the encrypted internal storage and if i want to fix/format it. After that all went smooth.

Jip, exactly this happens (on Replicant or the temporary flashed OMNI, I can't remember exactly, but I would say Replicant have this feature, too).

Maybe there is a problem with the phone (i9100) cause sometimes even now and before with the 0003 image the internal storage didn't mount (was losing the chosen custom ringtone settings, etc) and after a reboot was/is mounting normally.

Yes, there is. So I decided to release a little workaround, which possibly could help you, too: http://redmine.replicant.us/boards/9/topics/11421

    (1-5/5)