View Single Post
Posts: 362 | Thanked: 426 times | Joined on Nov 2010 @ Italy, Lombardia
#1440
Originally Posted by geekygenes View Post
I have read this thread and it does not help me mount and install both Nitdroid and Gingerbread on one parititon so in otherwords without partitioning anything, I have tried myself but If I mount say /home /android and try to extract and install I run into two things.
Number1: Either install and extract overwrites the previous Android OS.
Number2:The kernals can only be mounted and installed /and and again the problem of over writing each other

I am struggling to find a way to do this without backing up and repartitioning the flash storage.
Theorically it is possible a solution like this:
  • Use a big optFS (Maemo's /home), at least 4GB but bigger is better
  • Create on it an android directory with one subdirectory for each nitdroid version you want to install (i.e. Nitdroid 0.0.9, Gingerbread, Gingerbread mido's version)
    sudo gainroot
    cd /home
    mkdir nitdroid-container
    cd nitdroid-container
    mkdir froyo-1
    mkdir gingerbread-1
    mkdir gingerbread-2
    cd /home
  • Mount the directory
    mount -o bind /home/nitdroid-container/froyo-1 /and
    and install your Nitdroid (i.e Froyo) as usual.
    Dismount directory when finished
    umount /and
  • Mount the directory
    mount -o bind /home/nitdroid-container/gingerbread-1 /and
    and install your Nitdroid (i.e Gingerbread) as usual.
    Dismount directory when finished
    umount /and
  • Mount the directory
    mount -o bind /home/nitdroid-container/gingerbread-2 /and
    and install your Nitdroid (i.e mido's Gingerbread) as usual.
    Dismount directory when finished
    umount /and
  • Modify the multiboot's script to add a "pivot_root to subdir" capability
  • Create 3 multiboot's boot scripts (i.e. 33-froyo.item, 44-ginger1.item, 55-ginger2.item) with correct options on them

The most difficult step is to enhance multiboot's capabilities, but it is an rather easy job for people with linux's script skills

Last edited by Fabry; 2011-01-09 at 03:19.