FORUMS

[MOD][CM11] Classic sdcard mount

23 posts
Thanks Meter: 40
 
By S-I-M-O-N, Junior Member on 3rd July 2014, 09:56 PM
Post Reply Subscribe to Thread Email Thread
22nd April 2015, 04:03 AM |#31  
Senior Member
Flag Hanover
Thanks Meter: 37
 
More
Quote:
Originally Posted by tobby88

But I try to get this working on CM12 - and there's no need to do the work twice if you already got this running.

I just compiled a CM12 with your changes, booted it and so far it seemed to work. I'll do some more tests and also I try to create a version of TWRP using the same partition layout.
 
 
23rd April 2015, 02:51 PM |#32  
Junior Member
Flag Firenze
Thanks Meter: 0
 
More
Thumbs up
Great!
24th April 2015, 05:50 PM |#33  
Senior Member
Flag Hanover
Thanks Meter: 37
 
More
So, here is one test build
Warning, there may be errors in it. Especially in this dirty-patched TWRP version.

CM12.1 with classic sdcard mount: http://tobby.eu/downloads/cm.html?fi...CIAL-xt897.zip
MD5: http://tobby.eu/downloads/cm.html?fi...897.zip.md5sum
TWRP2.8.6.0 with classic sdcard mount: http://tobby.eu/downloads/cm.html?fi...-datamedia.img

If everything works as expected and if users are interested in it, I will create a thread for it and post updates.
The Following 2 Users Say Thank You to tobby88 For This Useful Post: [ View ]
26th April 2015, 12:50 AM |#34  
Junior Member
Flag Firenze
Thanks Meter: 0
 
More
Fantastic!
i have reflashed my photon q using your UNOFFICIAL build and all is working great!
Thank you very very much!

Can you explain to me what is "TWRP2.8.6.0 with classic sdcard mount" ?
Is a sort of modded TWRP recovery?
Let me know
26th April 2015, 09:50 PM |#35  
Senior Member
Flag Hanover
Thanks Meter: 37
 
More
Quote:
Originally Posted by pizzulicchio

Fantastic!
i have reflashed my photon q using your UNOFFICIAL build and all is working great!
Thank you very very much!

Thank you, too, for testing it. I am now testing it since Friday Looks like it is running without any problems.

Quote:
Originally Posted by pizzulicchio

Can you explain to me what is "TWRP2.8.6.0 with classic sdcard mount" ?
Is a sort of modded TWRP recovery?
Let me know

Basically there are the same changes as in the CM-build. So it will not create a /data/media directory anymore and it will not mount this internal (emulated) mass storage. Instead it will set the external card as default (mounted on /sdcard instead of /external_sd like inside of this CM build).
A backup of /data will now include all directories and not exclude anything anymore. A wipe of /data will now not "rm -rf" all files on the filesystem but recreate (format) the filesystem in the same way it already does for all other wipes (/system, /cache, ...).

This makes it MUCH easier to backup and restore and especially to change between different filesystems (ext4 to f2fs or f2fs to ext4 p.e.), especially for those people who have problems with the filesystem-corruption in f2fs.
21st May 2015, 10:53 PM |#36  
Junior Member
Flag Firenze
Thanks Meter: 0
 
More
can i update using classic cyanogenmod update notification? or updatin will i lose the classic sdcard mount?
21st May 2015, 10:58 PM |#37  
Retired Forum Moderator / Recognized Developer
Thanks Meter: 3,766
 
Donate to Me
More
Quote:
Originally Posted by pizzulicchio

can i update using classic cyanogenmod update notification? or updatin will i lose the classic sdcard mount?

You will certainly lose it, any updates to the boot.img.
22nd May 2015, 12:49 AM |#38  
Senior Member
Flag Hanover
Thanks Meter: 37
 
More
Quote:
Originally Posted by pizzulicchio

can i update using classic cyanogenmod update notification? or updatin will i lose the classic sdcard mount?

You will loose it. So you have to flash new "classic-sdcard-mount-builds". I sometimes compile new versions, because I am using this on my Photon Q as well. Take a look at this (crappy) page http://tobby.eu/downloads/cm.html New builds are available now (just uploaded them). But I didn't test the 21th and 22th builds - so make a backup before you flash them!
Last edited by tobby88; 22nd May 2015 at 02:28 AM.
The Following 3 Users Say Thank You to tobby88 For This Useful Post: [ View ]
30th September 2015, 06:47 AM |#39  
Member
Thanks Meter: 4
 
More
Quote:
Originally Posted by S-I-M-O-N

This mod for CM11 on moto_msm8960 brings back the classic sdcard mount we know from devices like the Nexus One.
No more cluttering of /data with files which should go to sdcard.

Features:
- External sdcard mounted as /sdcard
- Internal memory fully available for /data

Installation:
- Have a nandroid backup of /boot and /system at hand if something goes wrong
- Simply flash the zip over your existing CM11 installation
- Wipe data is not necessary but will help if you have problems.
Deleting only the data of the concerned apps should be sufficient. (Only apps storing data on sdcard are effected)
- Files which were on the emulated sdcard can be found at /data/media/0. This is also the location where you have to put your zip files to be able to flash them with OpenRecovery.

Method:
Adjusting of following CM11 files to be in line with Nexus One example configuration according to:
http://source.android.com/devices/te...g-example.html

boot.img
- init.qcom.rc
- fstab.qcom

framework-res.apk
- storage_list.xml

See my github for details: https://github.com/S-I-M-O-N/android...a_moto_msm8960

Disclaimer:
This was developed and tested on a Photon Q but should work on all moto_msm8960 devices with CM11.
I cannot be held responsible if anything goes wrong while using this mod.
Thank you to everyone this work is based on: Cyanogenmod team for providing CM11, Google for providing Android and everybody else

Download
I will try to keep this thread updated and provide a flashable zip for the latest CM11 snapshot.
See attachment at the bottom.


Regards,

Simon


Downloads for:
cm-11-20140609-SNAPSHOT-M7-moto_msm8960.zip
cm-11-20140708-SNAPSHOT-M8-moto_msm8960.zip
cm-11-20140916-SNAPSHOT-M10-moto_msm8960_jbbl.zip cm-11-20141008-SNAPSHOT-M11-moto_msm8960_jbbl.zip
cm-11-20141112-SNAPSHOT-M12-moto_msm8960_jbbl.zip

I'm running CM11 version 11-20140326-NIGHTLY-moto_msm8960, I'm guessing none of these would work for me without getting stuck in a bootloop, is that correct? Thanks for the help!
22nd October 2015, 10:24 PM |#40  
Senior Member
Thanks Meter: 31
 
More
It seems that the cm 12.1 snapshots do not support the SD-card with ext4/f2fs as a filesystem.
Have to go back to FAT32 >.<
(Hate this incompatibility of Android.)

The reason is probably the same as this: https://github.com/LegacyXperia/loca...ests/issues/75
The fc of an app is nearly the same, a few words at the end are different.:
java.lang.RuntimeException: Unable to get provider com.android.providers.media.MediaProvider: java.lang.IllegalArgumentException: can't obtain external volume ID even though it's mounted

(The error-message has been copied from the link and have been modified to the "remembered" error-message.)
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes