yashsingh1/xdaforums huggingface dataset:
[HD2 Android SD Development] gitanojr:
ok this is what i get when i do a "--list":

C:\>cd dd-0.6beta3

C:\dd-0.6beta3>dd --list

rawwrite dd for windows version 0.6beta3.

Written by John Newbigin <jn@it.swin.edu.au>

This program is covered by terms of the GPL Version 2.

Win32 Available Volume Information

\\.\Volume{a54b2538-d530-11df-a193-806e6f6e6963}\

link to \\?\Device\HarddiskVolume1

fixed media

Mounted on \\.\d:

\\.\Volume{de52da25-2270-11e0-b6a8-000fb0fefa69}\

link to \\?\Device\HarddiskVolume6

removeable media

Mounted on \\.\g:

\\.\Volume{a54b2539-d530-11df-a193-806e6f6e6963}\

link to \\?\Device\HarddiskVolume2

fixed media

Mounted on \\.\c:

\\.\Volume{a54b253a-d530-11df-a193-806e6f6e6963}\

link to \\?\Device\HarddiskVolume3

fixed media

Mounted on \\.\e:

\\.\Volume{a54b253d-d530-11df-a193-806e6f6e6963}\

link to \\?\Device\CdRom0

CD-ROM

Mounted on \\.\f:

NT Block Device Objects

\\?\Device\CdRom0

size is 2147483647 bytes

\\?\Device\Harddisk0\Partition0

link to \\?\Device\Harddisk0\DR0

Fixed hard disk media. Block size = 512

size is 60011642880 bytes

\\?\Device\Harddisk0\Partition1

link to \\?\Device\HarddiskVolume1

\\?\Device\Harddisk0\Partition2

link to \\?\Device\HarddiskVolume2

\\?\Device\Harddisk0\Partition3

link to \\?\Device\HarddiskVolume3

Fixed hard disk media. Block size = 512

size is 1085704704 bytes

\\?\Device\Harddisk1\Partition0

link to \\?\Device\Harddisk1\DR3

Removable media other than floppy. Block size = 512

size is 8011422720 bytes

\\?\Device\Harddisk1\Partition1

link to \\?\Device\HarddiskVolume6

Virtual input devices

/dev/zero (null data)

/dev/random (pseudo-random data)

- (standard input)

Virtual output devices

- (standard output)

/dev/null (discard the data)

So my card is on "g:" and the blue text is my sd card too?? i have an 8gb sdcard

will this work:?

C:\dd-0.6beta3>dd if=\\?\Device\Harddisk1\Partition1 of=c:\dd-0.6beta3\sdcard.img bs=8M --size --progress

Edit: i think i have to leave it as you post it:

C:\dd-0.6beta3>dd if=\\?\Device\Harddisk1\Partition0 of=c:\dd-0.6beta3\sdcard.img bs=8M --size --progress

cause that way will copy the whole sdcard, the 8gb, correct??
[HD2 Android SD Development] tigerlocc:
Hey Dom,

Which version of Core Droid are you using? 0.4 or 0.3? I seem to have better luck with the 0.3 build, even with your modified rootfs.img the htc screen hangs on bootup with the 0.4 build.

I really thought of removing WP7 altogether LOL - I like it because it's smooth and simple and not littered with icons left and right - but that's a temporary phase haha! Some of the problems I experienced with WP7:

1) HIGH battery drain (streaming music with last.fm and slacker)

2) Bluetooth headset problems (People can't hear me through BT halfway through conversation

3) Chipmunk voice (LOL do I need to explain this? haha)

4) HIGH batter drain - oh did I mention this again? It's that bad!!

OK I've left the core droid 0.4 bootscreen hanging long enough - time to retry 0.3!

EDIT: Hmmm... I'm starting to peice together the tidbits here and there. Core Droid is one of those builds that creates your data.img file for you upon first boot - I know this because when I transfer Android over it's not very big at all (at most about 500MB). I went to delete the 0.4 version off my SD card but happened to go inside the folder somehow and saw there was a data.img file there (1GB). So... it was in the works! Did I prematurely pull the plug? And if not is there something inherently "blocking" the continuation of the boot?

This is very... troublesome too me to say the least haha. Now I owe it to myself to boot up again and wait another 30 minutes just to see what happens. If nothing else happens I will jump back to core 0.3 and HOPEFULLY get it to boot again (this time i hope the messages icon shows up if it comes to that). We'll see, I'll keep you guys posted.
[HD2 Android SD Development] lan78691:
Can't get DL DesireZ rom to work... it gets stuck on the htc logo screen... waited for 20 mins. I have already reformatted my fat32 partition with 64kps and followed all the steps to make the partitions listed in this tutorial... What am I doing wrong.. please help!
[HD2 Android SD Development] tigerlocc:
Dont trip lan, it didn't work for me either. Give Core Droid 0.3 a try - that booted up for me and looked real nice too. Check it out here:

http://xdaforums.com/showthread.php?t=801607

Let us know how it goes for you. I'm about to retry it myself haha

By the way, don't forget to edit your rootfs.img file... if you'd rather just copy and paste grab it from Dom's upload at this post:

http://xdaforums.com/showpost.php?p=10688366&postcount=113

Just overwrite the one that's inside your Android folder once you extract the CoreDroid... that is if you want to do it. Let us know!
[HD2 Android SD Development] lan78691:
haha i am not tripping just asking for some help :)

thanks for the links tigerlocc... I am going to try it out now and will let you all know.. hopefully it works!
[HD2 Android SD Development] MCRHAZ:
hey i have wm7 but i turned off the phone and inserted a sd with android on it went to MGLDR menu chose from where it would boot it worked but it got stuck on the lockscreen wouldnt get passed that ny ideas this isnt from the same SD card.
[HD2 Android SD Development] tigerlocc:
lol no prob lan. Yeah please keep us posted
[HD2 Android SD Development] tigerlocc:
Hey lan saw your post on the other thread and replied to it as well. Wanted to copy this over so you can see in case you don't revisit the other thread.

"I just experienced the same issue (remember, I was able to boot this rom before as well). It would get to the spinning android screen then loop over and over... for about an hour.

I thought about it and realized the first time i got it working was after a fresh format. Meaning nothing Android system related was on the SD card when I tried to boot core droid (0.3).

Since that revelation I went back to my SD card root and removed any references to the Android system (you know those folder it creates like "LOST.DIR" of "secure.android"). Or if you want to get a higher chance of success, format your fat32 partition (windows, my computer, right click, format, quick format, 64KB) and then replace the Android folder.

How do I know? I just confirmed my theory lol after an hour of that spinning green android i did what I said above (well not the formatting part), removed the Android directory and replaced it and booted through MAGLDR and BAM! We're all good!

Now I just need to see if I'm missing anything (last time i was missing my messages icon). Update: Yup my messages icon is there!! and some other stuff too i didn't see before I'll keep you posted if not this thread then the other thread. Dont give up lan keep on it you'll get it eventually!"

Quick Note: hmmm... could this be the problem affecting other builds? You know how some have SuperRam working and others don't? I wonder if their system was... "clean" when they tried to launch it and that's how they succeeded.

Of course I happened upon this scenario myself when initially trying to boot the "desire_z" build darren posted up and didn't obtain much success.... but then again I didn't edit the rootfs.img either. Can somebody who has it working confirm this? I'm willing to try myself maybe after a few days!

I think I'll enjoy the fruits of my labor a bit more before diving in and screwing up my setup again haha. :)
[HD2 Android SD Development] darrengladysz:
I finally got this build to work using the rootfs.img file supplied by daesey and ricola:

MCCM Desire HD v4 gauner1986 kernel

http://htcpedia.com/forum/htc-hd2-r...-02-01-11-mccm-hd-v4-0-[desire-hd-sense].html

http://xdaforums.com/showpost.php?p=10688366&postcount=113

Now I have wp7 nand and desire hd on sd.

A possible solution.

I was loading most of my builds using the mass storage on the phone and connecting to the pc and was not able to get anything going.

For a change I removed the sd card and formatted and copied from the pc. I was able to easily start a build that had failed before.

I used a sd card adapter, formatted in windows to fat 32 with 64kb sectors and did a quick format. I then copied the build while in windows prior to inserting the build in my phone.

I got the build going 1st try, quickly and without problems.

Note that I replaced the rootfs.img file in all cases.
[HD2 Android SD Development] gencaslan:
That command would create an image from your card to the given path. Its resulting size should be in your case 8gb. If= stands for infile and of= for Outfile. If you switch of with if then it will copy back the image to the inserted bigger SD-card.
[HD2 Android SD Development] daysey:
Hi Ricola, thanks for all the Thanks. :)

I actually used Gizmo Manager to edit the init.rc file. The same Gizmo software that i used in mounting the rootfd.img file has some other tools like the text editor I used. You can downlod it from the link below but make sure while installing you install full options.

http://arainia.com/software/gizmo/download.html

You can actually edit the file too in Wordpad, just that it is more prone to errors. Gizmo Manager does the job perfectly though.

Hope that helps.;)

EDIT: See you already have Gizmo, if you installed the full options, then all you need do is right click on the file and select "Open with Text Editor".

Just ensure that the nand_init is added at the end of the below line as you already know (I think):

"service ril-daemon /system/bin/rild -l /system/lib/libhtc_ril_wrapper.so -- -d /dev/smd0"
[HD2 Android SD Development] Fabian1985:
(for me this option won't work have only one card reader) and the seccond option is to hard for me (I'm Dutch :P)

Ain't there a possiblity that I put on the first SD WP7 and on the seccond Android?

I don't mind I need to change them.
[HD2 Android SD Development] darrengladysz:
Yes this works
[HD2 Android SD Development] Fabian1985:
Hmmm

But how can I let this work. Because with MALGDR 1.2 boot WP7 automaticly, If I have on my other SD Card ANDROID NAND It wouldn't work right?

Can you tell me please how I can realise that?

Thanx in advance
[HD2 Android SD Development] darrengladysz:
Read the 1st post to set up magldr. You will need 2 sd cards and have to switch your card on phone power up but this will give you a manual dual boot capability.
[HD2 Android SD Development] hyellow:
Ok, so i am about to join the dual boot party, I have a quistion however.

I just ordered a 32gb card. The smaller card would be 16gb. So, if i read the instructions right and doing the math trick, I end up having the 32gb card split 50/50. So, 16gb for WP7 and 16GB for Android? However, I'd like to assign more to WP7, something like 24, because i intend to use that more and Android just as a backup plan, for satnav for example.

So, only question thus, is it possible to assign more to WP7 or am I stuck because WP7 has already partitioned the SD card on first install and so assumes it has only that amount of gb. Anybody still folowing me?
[HD2 Android SD Development] jcsy:
whatever u assign to WM7 as the spare card, would the space for it

i dont know whether you can RESIZE this partition but i used a 2GB and 16GB card

my WM7 is 1675MB while my Android has like 13GB++

i didnt resize and followed each size to the dot

i think for your case, 16GB and 32GB is the best combination

worked
[HD2 Android SD Development] cobhc:
Tried a few things said here, and I still can't seem to get any to boot past the HTC logo. I will try reformatting the SD Card again.
[HD2 Android SD Development] ricola7:
Hey Tiger and Darren,

yeah...it's working for all of us :D

Wow Darren, I didn't think that you could use the rootfs.img of core droid for mccm, but if it works, who cares ;)

@Tiger: I use core droid 0.4...and I think the battery drain in wp7 is due to a bad calibration of the battery stats in WP7...meaning it will stop loading the battery way before it reaches 100%...and then it seems that you have a high drain cause you are at two thirds after 30 minutes ;) At least I think thats the case for me...Gotta look into this.

It really seems to be crucial to NOT use the usb mass storage option of magldr but just take the sd out and connect it directly to your PC when transfer your Android files on it. And it REALLY IMPORTANT to format your

fat32 partition after you once messed with android on it.

This whole dual boot thing starts to make sense ;)

I try to make MDJ 4.6 work now using a different method of editing the init.rc. Wish me luck...

Greetz Dom
[HD2 Android SD Development] cobhc:
Yeah, guess I'll have to wait till I'm back home to have dual boot working. Oh well, will be sweet once it's sorted!
[HD2 Android SD Development] ricola7:
MDJ 4.6 works too!

Hey fellas,

MDJ 4.6 works FULLY and SMOOTHLY for me too.

Build Name: MDJ HD 4.6 It's a Desire HD Sense build!

http://xdaforums.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 your MDJ 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.

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://xdaforums.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!!!!!
[HD2 Android SD Development] ricola7:
@ all who are curious:

Obviously editiing the init.rc file using wordpad or text editor screws the file up (at least for me ;))!!!!

I found this programm to correctly edit the init.rc file:

http://www.textpad.com/download/index.html#downloads

To be on the safe side: when you added nand_init to the line, not simply click "save" in textpad but click "save as...". Choose the initial init.rc file as file name and overwrite it.

So now the process is: Open rootfs.img with Gizmo and edit the init.rc file with textpad...

Greetz Dom
[HD2 Android SD Development] zarathustrax:
I've been having no problem using the text editor in gizmo... just make your changes and hit save. It's worked for every build I've tried it on so far with no issues.
[HD2 Android SD Development] daysey:
Notepad will screw up the file but wordpad is ok, just delicate and only for those who knows what they're doing.

Replied your question about how I did the editing, guess you didn't see it?:confused:

Dont to bother again. Seen your PM.
[HD2 Android SD Development] lan78691:
haha thanks tigerlocc..well I didn't have any android files on the first boot but I was transferring the android folder with magldr... . I will try this way and see what happens. Hopefully it works! :)

update: It worked! I successfully booted into android through magldr :D

Right now I am using NexusHD2-FRG83D v1.8... going to play around with it a little and then go on to try different builds... thanks once again.
[HD2 Android SD Development] bteljuice:
So I have a small question.

In Step 4, it says place both SD card into computer, but I only have 1 SLOT for microsd adapter on my laptop.

What are my options?
[HD2 Android SD Development] orangekid:
use the SD in the phone with MAGLDR in usb storage mode, it works fine
[HD2 Android SD Development] bteljuice:
Orange KID BACK TO MY RESCUE :D

Fromm PPCGEEKS, TO XDA :D

Thanks A million m8 :D
[HD2 Android SD Development] bteljuice:
Does SD/RAM SUPERRAM 0.1 SENSE for Darkstone work for dual boot?
[HD2 Android SD Development] zarathustrax:
Actually, it seems there is issues with magldr mass storage mode with transferring files... some android builds transferred using it haven't worked while when using a sd reader they work fine. And cotulla said there was problems with transferring files that will be fixed in next version of magldr.

This doesn't mean you will necessarily have problems, but if you do have a problem and can't figure out what else it could be, keep in mind that magldr mass storage could be the issue.
[HD2 Android SD Development] bteljuice:
Thank you for the update :)

I will give it a try, but just a small question. When doing all this. Which SD card should be in the phone. The small SD with WP7 or the BIG SD ?

Fingers crossed as not to face problems

EDIT: I will use the USB mass Storage just for the paritions. When it will come to copy Android, I will use my SD adapter
[HD2 Android SD Development] jcsy:
once you remove the SD card from WM7 (smaller card), use SD readers for both cards to do the partitioning and copying of the Android

i used for both just to make sure it wasnt some device issue, magldr issue or something

of course, you need 2 sd card adapters / usb ports ;)
[HD2 Android SD Development] hyellow:
Firstly thanks for this tutorial. Everything works as described. I'm using the SD build of Phiremod, wich is imo, the best, the fastest and stable. Quick boot times.

I did had to edit the rootfs image, but that was a piece of cake, thanks again for the tutorial.

I tried to partition my sd card to asign a more space to WP7, but any attempt, was made undone again with wp7. The unformatted space that WP7 is none resizable, at least, not by me. Tomorrow I'll get my 32GB card wich I would realy like to divide unequally so WP7 has more space for my daily use, such as music, vids and games.

Does anybody has a 24gb microsd? If so, that would save my day, but I guess I am just joking. How about placing duct tape on the microsd, so WP7 can not write to that area? A no go too, right?

if anybody has solutions, let us hear.
[HD2 Android SD Development] krdvg:
Can you tell what exact changes you made to the file??

Thanks!
[HD2 Android SD Development] bteljuice:
I have a small problem. I dont have Fat 16 200mb

I have FAT 1.8Gb (in my 2GB sd card). Unlike the picture shown in first post.

VERY WEIRD
[HD2 Android SD Development] orangekid:
either unsupported card or you didn't reflash WP7 using DWI it looks like.

flash WP7 using DWI with the 2gb card in again, run WP7, then turn off the phone and see what your partition looks like,

also, is there another microSD you can try?
[HD2 Android SD Development] zarathustrax:
You can always use 2 sd cards... use the 32gb for wp7 and your other card for android. That's what I'm doing so I can have plenty of space in each OS. It's not that big of a deal switching cards when I want to switch OS's... you can even store the extra sd under the backplate by cutting a square out of the foam. I think I may even get a second 32gb card so I can have 32gb for each os.
[HD2 Android SD Development] gitanojr:
This happens to me in NexusHD2-FRG83D v1.8, it seem that is not mounting sdcard :/, any one else has this problem??
[HD2 Android SD Development] tigerlocc:
Hey that's great news guys! It is starting to make sense Dom! haha good idea with the SD cards Darren, a few posts further down the pages mentioned something of an issue with transferring files through MAGLDR (though I had no problems initially formatting for the dual boot).

I hope this is what the real issue was, I'll have to try my hand once again at some more builds now! Hey Darren, should you proceed with the original plan and post up the builds that are confirmed working?

I think that'll help out those who are just starting out and will help motivate them. I'll contribute as well when time permits!
[HD2 Android SD Development] demon187:
where do i get a modified rootfs.img file?????
[HD2 Android SD Development] darrengladysz:
Hi Tigerloc,

The initial plan has changed somewhat.

Is seems that almost all sd builds can work with the modified rootfs.img files.

Maybe a thread should be started for those. Ideally, they should be added to the initial sd build thread.

One last point. The 2 sd cards was not my idea as indicated in my 1st post. I just wrote the tutorial :)
[HD2 Android SD Development] tigerlocc:
Did you find it? LOL it's just a few posts before you... well 2 pages back hehe

Here: http://xdaforums.com/showpost.php?p=10701720&postcount=137
[HD2 Android SD Development] tigerlocc:
Well when you put it like that haha it makes sense.

Hey nonetheless you helped spread the idea and created a good tutorial for it! Thanks for that! That tutorial is starting to come out clean! A video tutorial to go along with this would be awesome huh?
[HD2 Android SD Development] hyellow:
will this mean 'the return of the sd builds'?
[HD2 Android SD Development] tigerlocc:
I honestly believe thats a possibility considering what we've been discussing in this thread. That is if you're brave enough to venture into the land of... "HD2 and the Partitions of Doom" !! mwahgagahgaha

All jokes aside yeah this is a beast of a machine this HD2 lol. Now you decide... "With great hacking, comes great responsibility"! lol :D
[HD2 Android SD Development] lan78691:
I am trying to repartition my sd card for dual boot but I am using a 1gb card and a 16gb card and when I open Easeus partition manager... I only see a Fat16 file on the smaller sd card where is the unallocated one?

Note: I have two 16gb cards... Is there a way I can somehow limit one 16gb card to only flash wp7 on 8gb worth of storage?
[HD2 Android SD Development] adityakishoor:
Video Tutorial?????

A Video tutorial would be a lot more helpful....!!! Can some 1 suggest me 1....
[HD2 Android SD Development] tigerlocc:
Hey lan did u flash WP7 through magldr? If so I'd suggest trying to flash it again.

From what I've learned I don't believe its possible, at least at the moment to "limit" the use of your SD card. In fact darren has confirmed this in a previous post in the earlier parts of this thread. When u install WP7 it FORMATS EVERYTHING regardless of partition type.

Try it again and let us know lan. If you can try to upload a screenshot for us so we can check it out.
[HD2 Android SD Development] gitanojr:
By windows partition u mean the fat32 correct?? not the wp7 partition which is also windows :p
[HD2 Android SD Development] gitanojr:
I have the same problem, have you been able to load that build until now???

Edit: just found out i have update the fix post on the builds thread :)
[HD2 Android SD Development] gitanojr:
Can this unallocated partition be anywhere like at the beginning?? cause im having problems with two sd builds i have tried, they cannot mount the sdcard, any thoughts??
[HD2 Android SD Development] hyellow:
Maybe the OP can put this into the first post.

I might have found a way to resize the unformatted space that is used for WP7.

Here is what i did.

1. resize on of my harddrive on my laptop. So i had like 30 gb of unallocated space.

2. create an unformatted partition in this unallocated space.

3. make sure you already have your SD card formatted by WP7, so it'll create that 200 MB of fat16 space.

4. Resize that 200mb to any amount for your android build. Calculate how much is needed and so you can still fit in the unformatted partition and make no space going to waste.

5. copy the newly created unformatted partition to your SD card.

6.Next, in WP7 go to settings, about and reset your phone. after it has turned of, plug in the sd card, not a single second earlier. verify your created partition in the aboout screen.

7. say thanks :-)

I've tried this with a one single 8gb card. no second SD was harmed during this procedure.

my 8gbsd has is now recognized 4gb, whil the fat16 partition remained 200mb. didn't care about that fat16 partition right now.
[HD2 Android SD Development] gitanojr:
for me this is the best text editor and is free :)

http://notepad-plus-plus.org/download