CMxx [sdcard as Emulated] {Walkthrough} Guide

Search This thread

Demetris

Recognized Developer
Aug 15, 2008
3,094
9,469
47
Limassol
Hello,
This guide will help you merge userdata and media partitions in to one Big for 16gb Nooks is aprox. 14,3GB 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 cm 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/CM11//sgdisk-recovery.img
Mirror
http://s000.tinyupload.com/index.php?file_id=57668299249558322082
2. Download the new cm recovery from here
https://goo.im/devs/chrmhoffmann/cm-12.0/acclaim/recovery-L-acclaim-20150221-ENG.img/
Mirror
http://s000.tinyupload.com/index.php?file_id=07462035216933296298
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 14.3GB ext4 userdata
It should print in the end (for 8GB nooks)
10 1611MB 7734MB 61240MB ext4 userdata
Number 10 is your new partition, 14.3GB/6.1GB 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 [recovery-L-acclaim-20150221-ENG.img]
For F2FS support boot into new recovery
Code:
adb shell
Code:
#mkfs.f2fs /dev/block/platform/omap/omap_hsmmc.1/by-name/userdata
 
Last edited:

Demetris

Recognized Developer
Aug 15, 2008
3,094
9,469
47
Limassol
This guide is for an alternate way of #1 post guide using a big part of it throughout.
1.Download new recovery from #1
2.Flash it with fastboot
3.Boot in it
4.Download this
http://s000.tinyupload.com/index.php?file_id=14937290426749868964
unzip it and push it to /tmp with adb
Code:
adb push sgdisk /tmp/
Code:
adb shell
Code:
chmod +x /tmp/sgdisk
Code:
umount /storage/sdcard1/
Code:
/tmp/sgdisk /dev/block/platform/mmci-omap-hs.1/mmcblk0 -d 11 -d 10
Code:
/tmp/sgdisk /dev/block/platform/mmci-omap-hs.1/mmcblk0 -n 0:0:0
Code:
/tmp/sgdisk /dev/block/platform/mmci-omap-hs.1/mmcblk0 -c 10:userdata
Now depending what filesystem you want you must use the right command
EXT4 Use:
Code:
mkfs.ext4 /dev/block/platform/omap/omap_hsmmc.1/by-name/userdata
F2FS Use:
Code:
mkfs.f2fs /dev/block/platform/omap/omap_hsmmc.1/by-name/userdata
Thats it.
really :)
 
Last edited:

sagirfahmid3

Senior Member
Jul 20, 2013
209
30
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.
 

mikeataol

Senior Member
Nov 21, 2013
672
334
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

Member
Sep 6, 2013
15
0
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.
 

skelnik

Member
Sep 6, 2013
15
0
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

Recognized Developer
Aug 15, 2008
3,094
9,469
47
Limassol
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
 

Demetris

Recognized Developer
Aug 15, 2008
3,094
9,469
47
Limassol
ok guys this guide is adjusted for the new cm12 sdcard as emulated merge with f2fs filesystem support.
Enjoy
 
  • Like
Reactions: rete

rete

Senior Member
Nov 15, 2009
266
85
I previously resized emmc to ~9.5 GB ( and reduced data). I assume this method should work fine regardless of the relative sizes of these two partitions?
 

Demetris

Recognized Developer
Aug 15, 2008
3,094
9,469
47
Limassol
I previously resized emmc to ~9.5 GB ( and reduced data). I assume this method should work fine regardless of the relative sizes of these two partitions?

Doesnt matter what repartitioning sheme you have as both partitions get deleted then merged so all will end up with the same size.
When i refer to all i mean users that repartioned and those who didnt.
 
  • Like
Reactions: rete

rajsris

Senior Member
Feb 18, 2011
289
50
San Diego
If emulated sdcard has been implemented, is it no longer ok to flash back to CM11? I'm sure F2FS is not supported, but is emulated sdcard also not ok?

Also, if we need to get back to stock after this repartition method, will AdamOutler's unbrick method restore the original partitions back?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    Hello,
    This guide will help you merge userdata and media partitions in to one Big for 16gb Nooks is aprox. 14,3GB 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 cm 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/CM11//sgdisk-recovery.img
    Mirror
    http://s000.tinyupload.com/index.php?file_id=57668299249558322082
    2. Download the new cm recovery from here
    https://goo.im/devs/chrmhoffmann/cm-12.0/acclaim/recovery-L-acclaim-20150221-ENG.img/
    Mirror
    http://s000.tinyupload.com/index.php?file_id=07462035216933296298
    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 14.3GB ext4 userdata
    It should print in the end (for 8GB nooks)
    10 1611MB 7734MB 61240MB ext4 userdata
    Number 10 is your new partition, 14.3GB/6.1GB 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 [recovery-L-acclaim-20150221-ENG.img]
    For F2FS support boot into new recovery
    Code:
    adb shell
    Code:
    #mkfs.f2fs /dev/block/platform/omap/omap_hsmmc.1/by-name/userdata
    2
    This guide is for an alternate way of #1 post guide using a big part of it throughout.
    1.Download new recovery from #1
    2.Flash it with fastboot
    3.Boot in it
    4.Download this
    http://s000.tinyupload.com/index.php?file_id=14937290426749868964
    unzip it and push it to /tmp with adb
    Code:
    adb push sgdisk /tmp/
    Code:
    adb shell
    Code:
    chmod +x /tmp/sgdisk
    Code:
    umount /storage/sdcard1/
    Code:
    /tmp/sgdisk /dev/block/platform/mmci-omap-hs.1/mmcblk0 -d 11 -d 10
    Code:
    /tmp/sgdisk /dev/block/platform/mmci-omap-hs.1/mmcblk0 -n 0:0:0
    Code:
    /tmp/sgdisk /dev/block/platform/mmci-omap-hs.1/mmcblk0 -c 10:userdata
    Now depending what filesystem you want you must use the right command
    EXT4 Use:
    Code:
    mkfs.ext4 /dev/block/platform/omap/omap_hsmmc.1/by-name/userdata
    F2FS Use:
    Code:
    mkfs.f2fs /dev/block/platform/omap/omap_hsmmc.1/by-name/userdata
    Thats it.
    really :)
    2
    Dont do this yet. CM11 does not support this at the moment.

    Chris

    Sent from my TF300T using xda app-developers app
    2
    Thanks. This is nice guide for cm12 with nightlies of 22 Feb 2015 and newer.

    Chris
    1
    ok guys this guide is adjusted for the new cm12 sdcard as emulated merge with f2fs filesystem support.
    Enjoy