Need help renaming Partitions in Dual Boot kernel!! Please Help!!

ketut.kumajaya

Recognized Developer
Apr 28, 2011
4,935
14,131
0
Bekasi
How do you manage nandroid create/restore of secondrom then?

Gesendet von meinem Note II mit Tapatalk 2
By manipulating block devices.
Code snipped:
Code:
  losetup /dev/block/loop0 /.secondrom/media/.secondrom/system.img
  # Delete /system block device
  rm -f /dev/block/mmcblk0p20
  # Delete /cache block device
  rm -f /dev/block/mmcblk0p19
  # Link /system block device to /dev/block/loop0
  ln -s /dev/block/loop0 /dev/block/mmcblk0p20
  # Link /cache block device to /dev/block/mmcblk0p16
  ln -s /dev/block/mmcblk0p16 /dev/block/mmcblk0p19
My English not good enough to explain, feel free to unpack my PhilZ Touch repack from http://forum.xda-developers.com/showpost.php?p=47342530&postcount=2 . I have no chance to build Android from source before, this limitation has made me creative to reuse existing resource (PhilZ Touch, AROMA, etc).
 

DerTeufel1980

Inactive Recognized Developer
Jul 31, 2011
10,302
27,636
0
That's enough, but unfortunately not working for us. We don't have enough block devices large enough to have data partition on it.
I need to share default data partition between both roms by bind mounting (Well I could use data.img, but then the size would be fixed, what I don't like)

Edit: what's the size of your p16?

Gesendet von meinem Note II mit Tapatalk 2
 
Last edited:

ketut.kumajaya

Recognized Developer
Apr 28, 2011
4,935
14,131
0
Bekasi
My solution based on gokhanmoral's solution with different implementation, strictly follow his "rule" but simpler. Used bind mounted /data/media/.secondrom/data as 2nd ROM data storage and hidden partition p16 as /cache partition. My dual boot works on Tab 2 (OMAP4) and Tab 3 8.0 (Exynos 4212), there's no reason not work on another device.
 

DerTeufel1980

Inactive Recognized Developer
Jul 31, 2011
10,302
27,636
0
I see, but then there is no block device for secondary data. How do you manipulate/nandroid it? (I initially thought you are using hidden part for data)

Gesendet von meinem Note II mit Tapatalk 2
 

ketut.kumajaya

Recognized Developer
Apr 28, 2011
4,935
14,131
0
Bekasi
Nandroid backup for emulated sdcard device recursive copy /data excluding /data/media, so what the problem? I used scripting mount replacing mount binary for 2nd recovery, always lock /data (/data/media/.secondrom/data actually) for safety. To prevent a bad flashable zip wrong mounting /data partition.
 

kkemp31

Member
Mar 1, 2012
22
0
0
If you get this to work what's the chance of creating a hijacking at the beginning of booting like safe strap for phones with out unlocked bootloader

Sent from my SCH-I605 using XDA Premium 4 mobile app
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone