• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[DEV] [MOD] Repartitioning

USBhost

Recognized Contributor
Oct 23, 2013
5,984
6,900
0
u:r:usbhost:s0
http://forum.xda-developers.com/showthread.php?t=1388996
Has anyone thought of doing this?


Edit: compiling parted is harder then i thought !!

I will work on getting parted built for our Nexus 9
Because Parted 1.8.8.1.179-aef3 does not work on our Nexus 9

Note: will update this thread with a lot more info
When I get it working.

Note: if I got it built
I will test this on my Nexus 7 first. if everything goes well
Then I will do this on my Nexus 9






http://www.gnu.org/software/parted/

XDA:DevDB Information
Repartition Test, ROM for the Nexus 9

Contributors
USBhost
ROM OS Version: 2.3.x Gingerbread

Version Information
Status: Testing

Created 2015-11-06
Last Updated 2015-11-06
 
Last edited:

Ishwara Sandesh C M

Senior Member
Mar 29, 2014
253
90
0
Puttur
http://forum.xda-developers.com/showthread.php?t=1388996
Has anyone thought of doing this?


Edit: compiling parted is harder then i thought !!

I will work on getting parted built for our Nexus 9
Because Parted 1.8.8.1.179-aef3 does not work on our Nexus 9

Note: will update this thread with a lot more info
When I get it working.

Note: if I got it built
I will test this on my Nexus 7 first. if everything goes well
Then I will do this on my Nexus 9






http://www.gnu.org/software/parted/
I think in nexus 9 , repartitioning is not required as apps are installed in internal storage and no limit is there.. :confused::what:
 

doitright

Elite Member
Oct 31, 2014
1,512
861
0
I think in nexus 9 , repartitioning is not required as apps are installed in internal storage and no limit is there.. :confused::what:
There is even more utility for purpose of dualbooting a more conventional linux distro.
I.e., add a menu-driven multi-boot bootloader to the start of the boot partition, allow to select either a conventional android boot, or a <pick your favorite linux flavor> boot, which of course, loads a different kernel, and a different base filesystem. It is conceivable to share the userdata partition, i.e. /data/media for regular linux userdata and sharing data between android and another distro, but it would be helpful to set a couple of GB aside for the system data.
 
  • Like
Reactions: Ishwara Sandesh C M

adwinp

Elite Member
Jun 22, 2008
1,989
304
0
urandom
http://forum.xda-developers.com/showthread.php?t=1388996
Has anyone thought of doing this?


Edit: compiling parted is harder then i thought !!

I will work on getting parted built for our Nexus 9
Because Parted 1.8.8.1.179-aef3 does not work on our Nexus 9

Note: will update this thread with a lot more info
When I get it working.

Note: if I got it built
I will test this on my Nexus 7 first. if everything goes well
Then I will do this on my Nexus 9






http://www.gnu.org/software/parted/
This approach requires you to be S-OFF & modify your bootloader - this also requires a modified kernel.
I have been using another less invasive approach successfully since ~3 years (even posted about it somewhere on xda); I'm basically using the system partitions (userdata, cache, system) as separate LVM volumes.
You can even have encryption!
You just need a LVM binary (and cryptsetup if you need encryption - automatic decrypting if you have the key as OTG) and a slightly modified boot.img (along with the recovery if you want to avoid manual work):
Obviously, you need to modify the fstab to point to the /dev/mapper paths as well as the LVM initialising part as service at the top of your init.rc
 

USBhost

Recognized Contributor
Oct 23, 2013
5,984
6,900
0
u:r:usbhost:s0
This approach requires you to be S-OFF & modify your bootloader - this also requires a modified kernel.
I have been using another less invasive approach successfully since ~3 years (even posted about it somewhere on xda); I'm basically using the system partitions (userdata, cache, system) as separate LVM volumes.
You can even have encryption!
You just need a LVM binary (and cryptsetup if you need encryption - automatic decrypting if you have the key as OTG) and a slightly modified boot.img (along with the recovery if you want to avoid manual work):
Obviously, you need to modify the fstab to point to the /dev/mapper paths as well as the LVM initialising part as service at the top of your init.rc
This this a nexus
So S-OFF is not needed

And I don't think you need to modify the bootloader


P.S.
Can any one help me compile parted
So far no luck
 

adwinp

Elite Member
Jun 22, 2008
1,989
304
0
urandom
This this a nexus
So S-OFF is not needed

And I don't think you need to modify the bootloader


P.S.
Can any one help me compile parted
So far no luck
1: you could use the fdisk builtin busybox binaries
2: you could use sgdisk instead fdisk/sgdisk. There are even some on xda: http://forum.xda-developers.com/showthread.php?t=1605535
3: here are some busybox (along with a variant compiled against glibc instead of bionic), LVM, & cryptsetup binaries: https://drive.google.com/file/d/0B8rpJsF4EG0Yb2FWT3liOTRucnM
 
  • Like
Reactions: USBhost