Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,813,956 Members 42,565 Now Online
XDA Developers Android and Mobile Development Forum

CyanogenMod-11 Sdcard as Emulated {Walkthrough} Guide

Tip us?
 
Demetris
Old
(Last edited by Demetris; 19th February 2014 at 09:59 PM.)
#1  
Demetris's Avatar
Recognized Developer - OP
Thanks Meter 6,830
Posts: 2,360
Join Date: Aug 2008
Location: Limassol

 
DONATE TO ME
Prompt CyanogenMod-11 Sdcard as Emulated {Walkthrough} Guide

Hello,
This guide will help you merge userdata and media partitions in to one Big for 16gb Nooks is aprox. 13,29GB and for 8Gb is aprox 6.1GB
What are those?
userdata is your /data partition and in that one you can currently install the apps/games until is full.
Media is your internal sdcard(emmc)

What we are going to do?
We will delete both userdata and media and make a bigger userdata and inside that we are going to mount the media partition so will become like this /data/media.

Required
1.Working CyanoBoot aka 2ndary bootloader.
2.Fastboot drivers and adb shell drivers with both of them functional
3.A special recovery to perform the merge.
4. A little patience until is implemented into cm11 as a special recovery will be needed after this merge.
You cant use any existing recoveries after this is done.I or chrmhoffmann will post a special recovery after the changes are done on device tree.


A special thanks to meghd00t for the sgdisk tool. A very valuable tool for this task.

So how this is done already!
1. Download the special recovery from here
http://goo.im/devs/demetris/Acclaim/...k-recovery.img
2. Download the new cm11 recovery from here
Not available yet
3.Put both into your working fastboot folder.
4.Enter fastboot mode with holding N and select fastboot on Cyanoboot menu.
5. Copy&Paste the next lines
Code:
fastboot flash recovery sgdisk-recovery.img
fastboot reboot
6.Enter recovery with holding N and select Internal eMMC Recovery from Cyanoboot menu.
7. Copy&Paste the next lines
Code:
adb shell
You get a # and you are now in adb shell interface and you are root so, lets delete both partitions with:
Code:
sgdisk /dev/block/platform/mmci-omap-hs.1/mmcblk0 -d 11 -d 10
And merge into one
Code:
sgdisk /dev/block/platform/mmci-omap-hs.1/mmcblk0 -n 0:0:0
Name the new partition into userdata
Code:
sgdisk /dev/block/platform/mmci-omap-hs.1/mmcblk0 -c 10:userdata
Format our new partition into EXT4
Code:
make_ext4fs -L userdata /dev/block/mmcblk0p10
Check if all done ok
Code:
parted /dev/block/mmcblk0
Code:
print
It should print in the end (for 16GB nooks)
10 1611MB 15.9GB 14315MB ext4 userdata
It should print in the end (for 8GB nooks)
10 1611MB 7734MB 61240MB ext4 userdata
Number 10 is your new partition, 14315MB/61240MB is the partition size ext4 is the filesystem and userdata is the name of the partition
After that you can issue a
reboot
Enter fastboot again and flash the new recovery when is available
Quote:
People say nothing is impossible, but I do nothing every day.
Quote:
Demetris
The Following 3 Users Say Thank You to Demetris For This Useful Post: [ Click to Expand ]
 
Demetris
Old
#2  
Demetris's Avatar
Recognized Developer - OP
Thanks Meter 6,830
Posts: 2,360
Join Date: Aug 2008
Location: Limassol

 
DONATE TO ME
As usual this remains mine for anything that can come up.
Quote:
People say nothing is impossible, but I do nothing every day.
Quote:
Demetris
The Following User Says Thank You to Demetris For This Useful Post: [ Click to Expand ]
 
chrmhoffmann
Old
#3  
Recognized Developer
Thanks Meter 2,577
Posts: 543
Join Date: Nov 2006
Dont do this yet. CM11 does not support this at the moment.

Chris

Sent from my TF300T using xda app-developers app
The Following 2 Users Say Thank You to chrmhoffmann For This Useful Post: [ Click to Expand ]
 
sagirfahmid3
Old
#4  
Senior Member
Thanks Meter 23
Posts: 172
Join Date: Jul 2013
Location: New York
Sorry if I sound like a noob, but, why exactly is it so difficult to change internal SD to external in CM11 specifically for the Nook Tablet? I have switched up the external SD as my internal SD on my Samsung GS2 running CM11 HellKat ROM quite easily. But then again, CM11 HellKat has a functioning vold.fstab, but the Nook Tablet does not. Why is that? Just curious.
Nook Color running CM7 Mirage, no gapps, Nook Tweaks app @ 1.3GHz (+500MHz past stock 0.8GHz)
Nook Tablet running CM10.1.3, no gapps, BexusNv4 kernel @ 1.3GHz (+300MHz x2 past stock 1GHz)
SGS2 T-Mobile (unlocked) running HellyBean 4.2.2, no gapps, @ 1.72GHz (+~200MHz x2 past stock 1.51GHz)
 
mikeataol
Old
#5  
Member
Thanks Meter 23
Posts: 84
Join Date: Nov 2013
Quote:
Originally Posted by sagirfahmid3 View Post
Sorry if I sound like a noob, but, why exactly is it so difficult to change internal SD to external in CM11 specifically for the Nook Tablet? I have switched up the external SD as my internal SD on my Samsung GS2 running CM11 HellKat ROM quite easily. But then again, CM11 HellKat has a functioning vold.fstab, but the Nook Tablet does not. Why is that? Just curious.
+1 on this.

The current partitoning scheme is a real hinderance. a HUGE hinderance.

are there any clear instructions anywhere to fuse sdcard to /data/media anywhere?
 
skelnik
Old
#6  
Junior Member
Thanks Meter 0
Posts: 11
Join Date: Sep 2013
This would really take the Nook Tablet to a whole new level if both partitions could be merged into a single partition as described above. Are you still planning on creating a special recovery for this?

Thanks for all of your hard work on this and Bexus.
 
rpadula
Old
#7  
Member
Thanks Meter 8
Posts: 58
Join Date: Apr 2011
Location: Sao Paulo
So, this merge died?
CM11 -> Nook Tab, Optimus G
Stock -> Droid 4
 
skelnik
Old
#8  
Junior Member
Thanks Meter 0
Posts: 11
Join Date: Sep 2013
Quote:
Originally Posted by rpadula View Post
So, this merge died?
If this is dead is there still an effort to make the media partition (internal storage) act as the SD card? Some apps (like minion rush for example) won't completely install without and external SD card. Used to be able to swap internal and external but can't find a way to do that anymore. Even then there were still issues like the media process frequently crashing. It would be nice to utilize all of the 16GB of the NT and not be required to also use an external SD card. That would be sublime.
 
Demetris
Old
#9  
Demetris's Avatar
Recognized Developer - OP
Thanks Meter 6,830
Posts: 2,360
Join Date: Aug 2008
Location: Limassol

 
DONATE TO ME
Yeah I agree with you guys but cm maintainer don't so if we merge partitions then you won't be able to use official cm
Quote:
People say nothing is impossible, but I do nothing every day.
Quote:
Demetris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Add Some Power to First Generation Snapdragon CPUs

Some older devices still remain very popular. Phones like theHTC Desire, Sony Ericsson … more

Android M Mentions Spotted in Android Code Review

While we are still waiting for Android L to be officially released, the first mentions of … more

Create a Simple Custom Launcher from Scratch

When you are starting your journey intoany sort of development, it’s never easy at the … more