• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[REF] How to boot your SD build from magldr [quick guide]

Search This thread

buzz killington

Senior Member
May 10, 2010
336
63
This is a very short guide for all of you looking to dual boot android from the sd card now that you have windows phone 7 taking up the nand space. It's originally posted by letama and I added a bit to it.

It's actually quite simple. All you have to do is add nand_init to one line in the init.rc file. For most builds, you will need to use a linux distro and mount the rootfs.img file, then edit the init rc file, add nand_init to this line:

Code:
service ril-daemon /system/bin/rild -l /system/lib/libhtc_ril_wrapper.so -- -d /dev/smd0
so it looks like this
Code:
service ril-daemon /system/bin/rild -l /system/lib/libhtc_ril_wrapper.so -- -d /dev/smd0 nand_init

For builds that uses the cedesmith initrd method, you have to mount the system.ext2 file, everything else is the same.

Save your file. Make sure you haven't changed the permissions and unmount the image. Copy the build to your microsd, set magldr to boot from the directory you copied it to and boot ad sd, you should be good to go.

Problems: booting it this way does not read from your startup.txt, you have to wait for cotulla to add it in future magldr. I'm not sure if the old method of updating (dumping everything in a folder named root) still works.

Disclaimer: I've tried this with jdms, hd2one, superram, desire_hd2 and mdj rEVOlution 2.3 and they all work fine with my old data image, your mileage may vary. This is a very quick guide because that's all I know :) Anymore I'll have to search google, so you might as well do that yourself :D Anyone who have a better method of editing feel free to post it. I'll add it here if you post it in this thread.

Tip from aled99 to edit without linux.
I've managed to mount system.ext2 to Windows 7. Without VM and Linux at all.
What tools are needed:
1. Windows Ext2/Ext3 driver. You can get it from here.
2. Any software to mount image to virtual drive. I've used Gizmo Drive, but there are others also working.

Tip: Gizmo doesn't show ext2 as supportable image type, when you browse for image. So, manually type *.* filter.

Some files that are already edited:
CoreDroid HD 0.4 edited by ricola7
Desire_hd2 system.ext2 file
HD2ONE 0.3.5 system.ext2
JDMS 1.62
MDJ HD v4.6
MDJ rEVOlution 2.3 rootfs.img
NexusHD2-FRG83D v1.8 from nzxtneo
Superram 1.5 from letama

Builds that already work with magldr:
DL DesireZ v2.2 from dandiest
HD2 Gingerbread/CyanogenMod7 from copenhagen
 
Last edited:

izzy spun

Senior Member
Nov 4, 2010
84
3
will this work if I have android in my nand, and want to run a different android off of sd card? Like if I wanna test drive gingerbread roms off the sd, while sticking with a froyo based rom in nand? I really want to do this.
 

buzz killington

Senior Member
May 10, 2010
336
63
will this work if I have android in my nand, and want to run a different android off of sd card? Like if I wanna test drive gingerbread roms off the sd, while sticking with a froyo based rom in nand? I really want to do this.

I haven't tried copenhagen's build but it should work the same way. Try it and let us know how it worked out :)

Edit: Actually I got curious and checked it out. Copenhagen's build does not require editing. You can boot it from sd using magldr as it is. Nice too. I think I'll play with that for a while :)
 
Last edited:

Anthonayy

Senior Member
Oct 25, 2010
386
58
Dallas
Sorry but I'm stuck on the first line. What is a linux distro? How do I edit the line? I'll be able to take care of the rest. This is the part that confuses me.
 

vista1984

Senior Member
Apr 1, 2010
462
60
NYC
This is a very short guide for all of you looking to dual boot android from the sd card now that you have windows phone 7 taking up the nand space. It's originally posted by letama and I added a bit to it.

It's actually quite simple. All you have to do is add nand_init to one line in the init.rc file. For most builds, you will need to use a linux distro and mount the rootfs.img file, then edit the init rc file, add nand_init to this line:

Code:
service ril-daemon /system/bin/rild -l /system/lib/libhtc_ril_wrapper.so -- -d /dev/smd0
so it looks like this
Code:
service ril-daemon /system/bin/rild -l /system/lib/libhtc_ril_wrapper.so -- -d /dev/smd0 nand_init

For builds that uses the cedesmith initrd method, you have to mount the system.ext2 file, everything else is the same.

Save your file. Make sure you haven't changed the permissions and unmount the image. Copy the build to your microsd, set magldr to boot from the directory you copied it to and boot ad sd, you should be good to go.

Problems: booting it this way does not read from your startup.txt, you have to wait for cotulla to add it in future magldr. I'm not sure if the old method of updating (dumping everything in a folder named root) still works.

Disclaimer: I've tried this with jdms, hd2one, superram, desire_hd2 and mdj rEVOlution 2.3 and they all work fine with my old data image, your mileage may vary. This is a very quick guide because that's all I know :) Anymore I'll have to search google, so you might as well do that yourself :D Anyone who have a better method of editing feel free to post it. I'll add it here if you post it in this thread.

thanks.. so i must use linux? any tools available in win?
 

bucksatan

Member
Jun 12, 2010
23
2
I haven't tried copenhagen's build but it should work the same way. Try it and let us know how it worked out :)

Edit: Actually I got curious and checked it out. Copenhagen's build does not require editing. You can boot it from sd using magldr as it is. Nice too. I think I'll play with that for a while :)

can you elaborate on this please.
can you give a step by step.
i am real interested in trying this.

thanks in advance.
 

buzz killington

Senior Member
May 10, 2010
336
63
Sorry but I'm stuck on the first line. What is a linux distro? How do I edit the line? I'll be able to take care of the rest. This is the part that confuses me.
It's just short for Linux distribution, such as ubuntu or redhat. I used ubuntu. Once you have it mounted you can use any text editor available.
thanks.. so i must use linux? any tools available in win?
Sorry, I don't know if there are. Maybe others can chime in. Anything that'll let you mount an ext2 image and edit its contents will do. Unfortunately I'm not familiar with any windows tools.
 

WOOZ!E

Member
Sep 27, 2010
27
4
Will this hack enable me to run Android from my SD card, with WP7 installed on the phone?

I just want to make sure, because I've been searching around, and several indidual sources have said that WP7 doesn't recognize any SD cards, including compatible SD cards.

I would really love to try WP7, but without losing my android.


Sent from my HTC HD2 using XDA App
 

TheATHEiST

Senior Member
Sep 29, 2008
4,320
960
Hull
Will this hack enable me to run Android from my SD card, with WP7 installed on the phone?

I just want to make sure, because I've been searching around, and several indidual sources have said that WP7 doesn't recognize any SD cards, including compatible SD cards.

I would really love to try WP7, but without losing my android.


Sent from my HTC HD2 using XDA App


Dude, it has nothing to do with WP7, You boot Android from MAGLDR not WP7. So you would either use a different SD card to boot into Android BEFORE booting windows or you would partition your SD card in a way that it allows you to use it for WP7 and Android at same time.
 

buzz killington

Senior Member
May 10, 2010
336
63
How can I mount the system.ext2 by using terminal?
Code:
[email protected]# mount -o loop system.ext2 /mnt
system.ext2: No such file or directory

you have to specify where your file is and I believe you have to create a mount point, you can't just put it in /mnt. Somebody correct me if I'm wrong :)

Code:
cd /mnt
sudo mkdir sys
sudo mount -o loop -t ext2 /home/usr/Desktop/system.ext2 /mnt/sys
 

aled99

Senior Member
Sep 22, 2010
54
11
windows ext2 editing

It's just short for Linux distribution, such as ubuntu or redhat. I used ubuntu. Once you have it mounted you can use any text editor available.

Sorry, I don't know if there are. Maybe others can chime in. Anything that'll let you mount an ext2 image and edit its contents will do. Unfortunately I'm not familiar with any windows tools.

I think you can edit an ext2 image with windows using the method in post #4 from this thread: http://forum.xda-developers.com/showthread.php?t=808169

I've managed to mount system.ext2 to Windows 7. Without VM and Linux at all.
What tools are needed:
1. Windows Ext2/Ext3 driver. You can get it from here.
2. Any software to mount image to virtual drive. I've used Gizmo Drive, but there are others also working.

Tip: Gizmo doesn't show ext2 as supportable image type, when you browse for image. So, manually type *.* filter.



I've tried editing the file and it seemed to save the changes, but I haven't tried booting android yet.
 
Last edited:

clio94

Senior Member
Jan 17, 2007
1,195
321
Kozani
I am trying to do this method in super ram Rom but no success. I have successfully mount system.ext2 but there wasn't any init.rc file. After a lot Google search I have managed to discover that this file is in file initrd.gz and I made the change. But the build starts and hangs in first screen.any suggestion;

Sent from my HTC HD2 using Tapatalk
 

Dark Fire

Senior Member
Aug 30, 2007
431
1
www.g400.co.uk
Cool, thanks! I seems to be working for me with MDJ FroYo HD v4.6. Has anyone had any success getting two Android ROMs running from their microSD card? I was doing this when booting from WM6.5 by putting them in different directories and modifying rel_path in the startup.txt for one of them, but obviously this method won't work until MAGLDR supports startup.txt...
 

buzz killington

Senior Member
May 10, 2010
336
63
I am trying to do this method in super ram Rom but no success. I have successfully mount system.ext2 but there wasn't any init.rc file. After a lot Google search I have managed to discover that this file is in file initrd.gz and I made the change. But the build starts and hangs in first screen.any suggestion;

Sent from my HTC HD2 using Tapatalk

I didn't do the superram built myself, but letama posted a full version later in that magldr thread. Try to see if you can find it. If not I'm sure I still have it somewhere I can post it for you.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 29
    This is a very short guide for all of you looking to dual boot android from the sd card now that you have windows phone 7 taking up the nand space. It's originally posted by letama and I added a bit to it.

    It's actually quite simple. All you have to do is add nand_init to one line in the init.rc file. For most builds, you will need to use a linux distro and mount the rootfs.img file, then edit the init rc file, add nand_init to this line:

    Code:
    service ril-daemon /system/bin/rild -l /system/lib/libhtc_ril_wrapper.so -- -d /dev/smd0
    so it looks like this
    Code:
    service ril-daemon /system/bin/rild -l /system/lib/libhtc_ril_wrapper.so -- -d /dev/smd0 nand_init

    For builds that uses the cedesmith initrd method, you have to mount the system.ext2 file, everything else is the same.

    Save your file. Make sure you haven't changed the permissions and unmount the image. Copy the build to your microsd, set magldr to boot from the directory you copied it to and boot ad sd, you should be good to go.

    Problems: booting it this way does not read from your startup.txt, you have to wait for cotulla to add it in future magldr. I'm not sure if the old method of updating (dumping everything in a folder named root) still works.

    Disclaimer: I've tried this with jdms, hd2one, superram, desire_hd2 and mdj rEVOlution 2.3 and they all work fine with my old data image, your mileage may vary. This is a very quick guide because that's all I know :) Anymore I'll have to search google, so you might as well do that yourself :D Anyone who have a better method of editing feel free to post it. I'll add it here if you post it in this thread.

    Tip from aled99 to edit without linux.
    I've managed to mount system.ext2 to Windows 7. Without VM and Linux at all.
    What tools are needed:
    1. Windows Ext2/Ext3 driver. You can get it from here.
    2. Any software to mount image to virtual drive. I've used Gizmo Drive, but there are others also working.

    Tip: Gizmo doesn't show ext2 as supportable image type, when you browse for image. So, manually type *.* filter.

    Some files that are already edited:
    CoreDroid HD 0.4 edited by ricola7
    Desire_hd2 system.ext2 file
    HD2ONE 0.3.5 system.ext2
    JDMS 1.62
    MDJ HD v4.6
    MDJ rEVOlution 2.3 rootfs.img
    NexusHD2-FRG83D v1.8 from nzxtneo
    Superram 1.5 from letama

    Builds that already work with magldr:
    DL DesireZ v2.2 from dandiest
    HD2 Gingerbread/CyanogenMod7 from copenhagen
    16
    MDJ 4.6 works too!

    Hey fellas,

    I got another Android SD-Build to boot (and run smooth) via Magldr.

    Build Name: MDJ HD 4.6 It's a Desire HD Sense build!
    http://forum.xda-developers.com/showthread.php?t=859817

    What you have to do to get MDJ to work:

    It is CRUCIAL NOT to use the usb storage option of MAGLDR!!! Take the sd out of your device and connect it to your PC using an microsd adapter!!!!!!!

    1. Backup all Data of your sd card to PC!!!!!!!!!!!!!

    2. Then format the sd card using WINDOWS (quick format is good) (NOT PANASONIC FORMATTER OR WHATEVER). THE FORMATTING STEP IS ALSO CRUCIAL!!!

    3. Move the original rootfs.img file from MDJ Build (located in "Android" folder) to some place safe on your PC to have it backed up.

    2. Now put my edited file that is attached here in the Android folder. (Obviously the attached file is zipped, so unzip it and then replace it )

    3. Now just copy the Android folder to the root of your sd card and put it in the device.

    4. Go to this tutorial from Darren and apply the steps regarding Magldr (10-23) (dont' worry, these last steps take only 2 minutes)
    http://forum.xda-developers.com/showthread.php?t=913815

    Now enjoy running WP7 and MDJ!!!!!!!!

    Have fun and I will help you out if I can

    Greetz
    Dom

    EDIT: To peops who are having the issue that android does not detect the sd card... Try this solution posted by scrondone:
    http://forum.xda-developers.com/showpost.php?p=10725793&postcount=119

    I can't really try it out myself cause I have never faced any sd issues (tried multiple builds on multile cards), but the approach sounds very promising to me (makes just sense ;))

    Credits go to scrondone for this solution!!!!!
    7
    OK ..
    I did ..
    Everything works WM7 + MDJ 4.6 in dualboot.
    I used a different approach, though it may be useful to someone who has had my problem (SD card not recognized by android), I describe it below:

    1) I have installed, unlocked and with WM7 in a smal card (8GB)
    2) I formatted a 16 GB card in FAT 32 (cluster size = 32 o 64)
    3) I copied android on the card, 16 GB HD MDJ 4.6 with the file "rootfs.7z" amended by ricola7, who charged in his post here: http://forum.xda-developers.com/showpost.php?p=10702019&postcount=93
    4) I put the 16 GB card in the phone, and booted from the SD Magldr, installed and configured Android, and verified that it had recognized the SD
    5) I removed the 16GB card, resized the partition to about 8 GB
    6) I put the SD in the phone and checked that was recognized
    7) I removed the SD, and in the empty space on the 16GB card, and copy the partition created with WM7 when I installed it on the 8 GB card

    Now everything works perfectly in dualboot ...
    Thanks again for the advice and ricola7 for the file "rootfs.7z" already modified
    6
    Core Droid HD 0.4 Desire HD Sense build works for dual boot

    Hey fellas,

    I got an Android SD-BUild to boot (and run smooth) via Magldr.

    Build Name: Core Droid HD 0.4 It's a Desire HD Sense build!
    http://forum.xda-developers.com/showthread.php?t=801607
    (This was my favorite sd build which I used over a month with no problems. It's fast and smooth)

    I wrote a more detailed tutorial in the Core Droid HD 0.4 thread which covers dual booting with WP7 aswell:

    http://forum.xda-developers.com/showpost.php?p=10689007&postcount=1106

    What you have to do to get Core Droid to work:

    It is CRUCIAL NOT to use the usb storage option of MAGLDR!!! Take the sd out of your device and connect it to your PC using an microsd adapter!!!!!!!

    1. Backup all Data of your sd card to PC!!!!!!!!!!!!!

    2. Then format the sd card using WINDOWS (quick format is good) (NOT PANASONIC FORMATTER OR WHATEVER). THE FORMATTING STEP IS ALSO CRUCIAL!!!

    3. Move the original rootfs.img file from your Core Droid Build (located in "Android" folder) to some place safe on your PC to have it backed up.

    4. Now put my edited file that is attached here in the Android folder. (Obviously the attached file is zipped, so unzip it and then replace it )

    5. Now just copy the Android folder to the root of your sd card and put it in the device.

    6. Go to this tutorial from Darren and apply the steps regarding Magldr (10-23) (dont' worry, these last steps take only 2 minutes)
    http://forum.xda-developers.com/showthread.php?t=913815

    Now enjoy running WP7 and Core Droid!!!!!!!!

    Have fun and I will help you out if I can

    Greetz
    Dom

    EDIT: I attached the edited init.rc too, but if you follow my steps above you just need the attached rootfs.img!!!

    EDIT: To peops who are having the issue that android does not detect the sd card... Try this solution posted by scrondone:
    http://forum.xda-developers.com/showpost.php?p=10725793&postcount=119

    I can't really try it out myself cause I have never faced any sd issues (tried multiple builds on multile cards), but the approach sounds very promising to me (makes just sense ;))

    Credits go to scrondone for this solution!!!!!
    3
    Modified rootfs for NexusHD2-FRG83D V1.8

    Here is a modified rootfs.img for the NexusHD2-FRG83D V1.8 build.