{guide}Flash rom to sdcard for dual boot from windows - Atrix 4G General

This is how I flashed a rom to my sdcard for dual booting
This method is for roms that use normal updater-script
If you want to do this with a rom that uses the aroma installer such as Nottachtrix go here http://forum.xda-developers.com/showthread.php?p=25901115#post25901115
I was only able to achieve this after following sendust7 linux guide for dual boot and adapting to windows so all credit goes to him.
His method IMHO is better but if you are hell bent on doing this with windows then here it is
Again these are the steps I took. If you try this and break something I'm not responsible.
Pre-requisites
Notepad++
Minitool partition wizard
Android SDK (google adb for dummies to get everything you need)
Cygwin (if you dont have it start install now and it might be done when its time to use it)
The rom zip you want on your sdcard
Moto-fastboot (search this forum)
Knowledge of ADB and fastboot
Fully Charged Battery
winrar
boot.img from rom currently flashed to phone (pull this from rom.zip that you currently have flashed to phone
Backup everything from internal and external sdcard
NANDROID NOW!!!!!!
Insert sdcard into computer and open minitool partition wizard.
Create four partitions and format them with the same filesystem that the rom uses (ext3 or ext4) name them accordingly (system data and cache) and make primary.
These are the partition sizes I went with and only because i didnt feel like adjusting the slider anymore. But These values did ensure they were big enough to hold the phone partitions. The first partition is whats left over after resizing other partitions and will be formatted to fat32
first partition is whats left over and formatted as fat32
system=353 MB

1st ever reply...
thank for make a guide...

thank you for making a Windows guide.

Related

Help Request- Partitioning a 8GB SD Card for Mytouch 3g, Have Cyanogen 4.0.2

Hello XDA Developers.
I have hit a brick wall trying to partition my 8gb SD card for my MyTouch3g, and could use a little help, i can getting very frustrated and any help will be appreciated .
Questions:
1) Is there any way to partition the 8GB SD card on the computer, then just put it into the MyTouch3g?
2) How do i know what size partitions should be for my 8GB card?
I cannot get adb set up on the computer properly to do it, also many of the guides are for the G1 and involve typing things in the recovery console with the hardware keyboard.
I have googled for hours trying to find a guide specifically for partitioning with the Mytouch3g without using adb, but could not find one.
Side note: I rooted my phone using the 1touch method.
you can use Amon_Ra's recovery and it'll do it for you automatically.
http://theunlockr.com/2009/08/22/how-to-root-the-mytouch-3g-or-g1-in-one-click/
...
maybe dumb question, can i flash the Amon_Ra's recovery img after already having the cyanogen recovery img...or do i need to start with a clean slate?...and any advice if im using the stock 4gb SD card as far as partitioning/format for better performance?
i need help too...
please help a noob!!!
i'm in the exact same boat. using cyanogen 4.0.2 also and an 8gb sd card too.
please help...
Same
Yeah im worried about flashing another recovery image over the Cyanogen recovery image.
I rooted using the 1-touch method that auto installed Cyanogen Recovery image....dont know if flashing another recovery image would brick it or not
if you guys have the myTouch and unsure, unroot then root again using the Amon_Ra method on unlockr
http://theunlockr.com/2009/08/22/how-to-unroot-your-mytouch-3g/
I use Amon_Ra's recovery and I know it does the partition for me automatically, but how do I know what size my partitions are ? For example, there are some roms that require 96Mb's for Swap...Any help will be greatly appreciated and thanx to all the Devs for their hard and continous work on the G1 and MT3G....
unk2009 said:
I use Amon_Ra's recovery and I know it does the partition for me automatically, but how do I know what size my partitions are ? For example, there are some roms that require 96Mb's for Swap...Any help will be greatly appreciated and thanx to all the Devs for their hard and continous work on the G1 and MT3G....
Click to expand...
Click to collapse
Did you ask this in every thread?............search please!!!!
Cyan's recovery should have an option to auto format your card
you can use Amon_Ra's recovery img without flashing it to your phone!
Just boot it, instead of flashing it.. and select the option to partition the sdcard and then reboot...
No changes to your phone... just a partitioned sdcard!
use the following commands with fastboot loaded on your phone (back + power)
fastboot boot your_recovery_img.img
Hope this helps
philicibine said:
you can use Amon_Ra's recovery img without flashing it to your phone!
Just boot it, instead of flashing it.. and select the option to partition the sdcard and then reboot...
No changes to your phone... just a partitioned sdcard!
use the following commands with fastboot loaded on your phone (back + power)
fastboot boot your_recovery_img.img
Hope this helps
Click to expand...
Click to collapse
does this really work? first time i have seen this reported. Have you done it? If you have could u give me some more detailed instructions on how to do it. Please and thank you. If this is a totally noob request I apologize,I am new to this.
Follow this guide and you can partition the card how you like.
http://forum.xda-developers.com/showthread.php?t=535914
It really is easy to do, just try.
Here's what I am doing. I'm a complete noob and it took days and days of tinkering and reading through this site to refine this. I've done it multiple times now with experimental ROMs and it works great for me.
Put your SD card in your computer's reader, or a 3rd party reader device. Copy all the files to your hard drive in a backup folder of some kind.
Go get GParted at http://gparted.sourceforge.net/
You can download the iso image. Use a program like http://www.imgburn.com/ to burn the iso image to a CD which will be bootable.
Once you have the Boot CD with GParted you can boot your computer up with it in the disc drive. Make sure your BIOS settings have the CD before your hard drive to check for boot sequence.
GParted will start up, I pick the defaults. It reads my SD reader with my 8GB Class 6 inserted. Make sure you select your SD card from the drop menu, the default is my computer hard drive which you don't want to touch!
I delete all the partitions on the card.
The first partition is your FAT32 and it will be the largest partition.
The next Partition you want to make is an ext2, ext3, or ext4 partition. I use ext3. I make this partition about 800 MB. This is where the Cyanogen ROM will copy your apps to automatically when it detects it.
The last partition is going to be a Linux Swap file and should be about 32 MB.
I've seen where some people use a 64 MB swap file but I think the general consensus of 32 is fine.
Once you are done, close out GParted and pull the CD out when it ejects your tray. When you reboot the computer without the CD in it, your Windows OS should boot right up like normal.
In Windows you should see the large FAT32 partition on your SD card. Windows won't see the ext3 or swap partitions. Copy your SD card files back to your SD card and eject the card.
When you put the card in your MyTouch3G, turn on the phone. Leave it alone when your screen comes up. The Cyanogen ROM will detect your ext3 partition and begin copying all your apps to it. At first it will look like you have no apps but they will begin appearing as they are copied to your SD card. It may take a couple minutes depending on how many apps you have.
The GParted CD is an easy way in the future to wipe out partitions on your card and set it up for you.

[Q] CM7 SD Boot - Can you expand EXT4

I've had a lot of success creating a bootable CM7 using the size agnostic preparation instructions. (Here) I want to keep the Nook at stock, for a variety of reasons. Anyway, I created a very nice installation on a 16gb uSD card and did a lot of work setting up LP+ and my hundred-odd android apps. (I also have an Evo 4G). I was fortunate enough to get a 32gb uSD at a great price and want to move my installation over to that. The most successful by making an image with the Win32DriveImage and flashing that back to the 32gb uSD card, which leaves a large area of un-partitioned space. I've tried a couple downloaded tools but have been unsuccessful. Is there a command I can use in Terminal Emulator to to do that? I know I can use the agnostic procedure to start from scratch, but I'd really hate to do that.
The only thing that would make starting over is if someone can point me to instructions that would allow me to have an installation that boots from uSD and has fully functional CWR and Rom Manager. I love how it works on my EVO to download and install updates with a couple clicks. (Everything I've tried there seems to mess with the core Nook).
Thanks a lot!
Rob
Use Minitool Partition Wizard, or another windows partition manager to expand the last storage partition.
LBN1 said:
Use Minitool Partition Wizard, or another windows partition manager to expand the last storage partition.
Click to expand...
Click to collapse
Thanks for the suggestion. I tried a few partition managers and run into the same problem including with MiniTool. It will start the process of expanding or copying and expanding in one step, but it will eventually say "file system error" just before it finishes. It suggests repairing the file system, but none of the tools can do this with the ext4 partition. Still trying though. Gonna give the Acronis partition manager a whirl.
bitbearmi said:
Is there a command I can use in Terminal Emulator to to do that? I know I can use the agnostic procedure to start from scratch, but I'd really hate to do that.
Click to expand...
Click to collapse
You can edit partitions with fdisk from the terminal emulator. I suggest googling, it's a pretty old school tool and isn't very friendly. You should easily be able to resize your "sd" partition with that. Actually more accurately you should be able to delete that last partition and then create a bigger one in it's place. won't keep your data, but you can just copy it over to your computer and resize, then copy back.
Another option would be gparted which comes with basically every live linux cd ever. That one can actually do true resizes and should handle ext4 partitions easily (it is a linux file system after all)
bitbearmi said:
The only thing that would make starting over is if someone can point me to instructions that would allow me to have an installation that boots from uSD and has fully functional CWR and Rom Manager. I love how it works on my EVO to download and install updates with a couple clicks. (Everything I've tried there seems to mess with the core Nook).
Click to expand...
Click to collapse
You don't need to start over. Get a new uboot.bin for your cards boot partition from here.
Then get the clockwordmod kernel and ramdisk from the zip at the end of this post. Put the uImage and uRamdisk on the sd card as uAltImg and uAltRam.
Now when you choose sd:alternate from the boot menu it will boot you into clockwork.
Thank you so much. I think that will do the trick.
..rob
ylixir said:
You don't need to start over. Get a new uboot.bin for your cards boot partition from here.
Then get the clockwordmod kernel and ramdisk from the zip at the end of this post. Put the uImage and uRamdisk on the sd card as uAltImg and uAltRam.
Now when you choose sd:alternate from the boot menu it will boot you into clockwork.
Click to expand...
Click to collapse
OK. All is well and the dual-boot solution is super-convenient. But I'm a little perplexed as to how to work with CWM in this environment. Ideally I'd like this to work just as it does on my EVO, Rom Manager lets me know there is a new version, I select it, it downloads asks if an want Gapps and backup (yes please) then it does its thing. Maybe that is way too much to ask. If so, then the main things I need to know are how to instal an updated build that I download separately? Do I just copy it to the root of the boot partition.
Sorry for being such a n00b with the nook. Its funny but I'm much more confident messing with my phone, which if bricked, is pretty catastrophic. (LOL)
The instructions for updating CM7 for the agnostic build is in the OP's post for that build.
"How to update to a new build:
put the new build you want to try on the first partition. (the name must be update-cm-*.zip or cm_encore_full*.zip or just update-*.zip)
Boot from the SDcard in the recovery mode (see above) and the new snapshot would be installed.
The partition layout would be preserved, filesystems are NOT reformatted, so your data should be safe."
Also, Easeus Partition Manager is supposed to be able to resize partitions w/o destroying data. YMMV, of course. I used it to extend ext 4 but prior to putting anything there.
Didn't have any luck with easus either, but ended up using a gparted boot which worked great. Normally I would use recovery nandroid to backup the rom before installing the updated, but when I did that by booting into alternate, I ended up backing up the nook rom to the root partition, so I think the safest thing to do is to use win32diskmanager to image the entire sd card.
ylixir said:
You don't need to start over. Get a new uboot.bin for your cards boot partition from here.
Then get the clockwordmod kernel and ramdisk from the zip at the end of this post. Put the uImage and uRamdisk on the sd card as uAltImg and uAltRam.
Now when you choose sd:alternate from the boot menu it will boot you into clockwork.
Click to expand...
Click to collapse
So, just to make absolutely sure, if I already have CM7 installed on an SD card, which I've been using as a daily driver, installing apps, downloading Kindle books, PDFs, and the like, but I want to put CWMR onto the SD card, the steps you outlined should be OK?
NOTE: I know, I know, if I'm confused I probably shouldn't be screwing around with things...But the size-agnostic SD CM7 method was so bloodless that I thought the other stuff would be pretty easy to do. For whatever reason, adding stuff like the OC kernel and CWMR has been a little confusing.

Setting up EXT4 with EXT4 Recovery Nand to use ParanoidAndroid JellyB SD with WP7

hi, i have been trying to get a dual boot with wp7 (hd20 8779) with android jellybean (paranoidandroid) using ext4 on the sd.
i have right now:
magldr v1.13
ext4 recovery nand
partitions:
1st FAT 14gb
2nd EXT4 1gb (made via ext4 recovery)
there is no 'nativesd' folder that i can see on the sd card (to put the jellyb.zip rom in?) and it (ext4 recovery) will not let me install zip from sd (either jellyb.zip rom or dual installer zip. it just says:
Finding update package...
Opening update package...
Installing update...
Installation aborted.
I am also confused about which rom I should go about installing first at this point. wp7 or droid?
---- edit:
ok, i was using the wrong android rom. aokp nativesd worked. booted, tested it, all ok. but then i went to install wp7 and it erased it. wp7 booted, worked. took out sd, hooked sd up to computer, repartitioned to have wp7 ||| fat32 ||| ext4, but then when i put it back into phone and booted to wp7 (to make sure it was still there), it said available storage was entire sd card. so i powered down and tried to boot into android. now android was gone. tried to boot into ext4 recovery and that was gone too.
i am very close now. i just need help partitioning this correctly. i know now that the latest version of minitool will let me partition to ext 4 so that's no problem now. can someone please help me set up my partitions so that i don't lose one installation with another? also, i don't know how to check if something is mmcblk0p2 or how to set it to that. i haven't been able to find any instructions in doing so, just mentions of it across the forums.
please help
Okay.
You probably have WP7 now, right? You've already partitioned the card with xboxmod's CABs, haven't you? If not, please do those two steps before continuing.
Windows Phone 7 wipes entire SD card and creates its own partition every time it's installed or hard reset, and because of that you can't install Android ROM first and then WP7.
After that, just take MiniTool, delete the FAT partition and create two new:
First FAT partition, then on the rest create EXT partition. It should be mmcblk0p2 then, but you want to check it anyway. How to was in that thread:
6. (WP7 users) make sure the EXT4 partition is located @ /dev/block/mmcblk0p2
To check this mount your sd-ext partition in 4EXT recovery and use adb shell or QtADB shell and type df
Click to expand...
Click to collapse
If you don't have ADB yet, please download Android SDK where that tool is included. Or try QtADB, but I haven't used that one.
That instruction translates to:
1. Run 4EXT Recovery
2. Choose Mount... option
3. Mount /sd-ext
4. Run adb shell (type that in CMD when in folder with adb.exe, I hope you can navigate with CMD)
5. Type df and press enter.
Then install the ROM using 4EXT SD Recovery. Nothing complicated, I hope. That's how I've done that at least.
thank you
Spaqin said:
Okay.
You probably have WP7 now, right? You've already partitioned the card with xboxmod's CABs, haven't you? If not, please do those two steps before continuing.
Windows Phone 7 wipes entire SD card and creates its own partition every time it's installed or hard reset, and because of that you can't install Android ROM first and then WP7.
After that, just take MiniTool, delete the FAT partition and create two new:
First FAT partition, then on the rest create EXT partition. It should be mmcblk0p2 then, but you want to check it anyway. How to was in that thread:
If you don't have ADB yet, please download Android SDK where that tool is included. Or try QtADB, but I haven't used that one.
That instruction translates to:
1. Run 4EXT Recovery
2. Choose Mount... option
3. Mount /sd-ext
4. Run adb shell (type that in CMD when in folder with adb.exe, I hope you can navigate with CMD)
5. Type df and press enter.
Then install the ROM using 4EXT SD Recovery. Nothing complicated, I hope. That's how I've done that at least.
Click to expand...
Click to collapse
wp7 is installed. after several searches, i'm not seeing the cab files you're talking about. the current partition structure is 200mb fat ||| 14.67gb 'other' ||| I saw that part in the thread with mmcblk0p2, but I had no idea how to specify that when I made the partition or how to check it. Thank you. Yes, I have the Android SDK (had no idea that's where to find ADB) Thanks for elaborating that for me. I am going to do all this right now!
--- edit
how do i check to make sure its mmcblk0p2?
if i just repartition in minitool everything, do i still need the xboxmod cab files i can't find?
--- edit
i repartitioned with minitool and this is what i have now:
1st) 7.88mb (free) 0 (used) unallocated logical
2nd) 5.81gb (free) 11.65mb (used?) fat32 logical
3rd) 1.46gb (free) 101.80mb (used?) ext4 primary
4th) 7.67gb (free) 7.67gb (used) unformatted primary
now, i'm going to install ext4recovery nand and try to install android, is this correct?
--- edit
i'm not seeing adb anywhere. In android sdk tools i have two shortcuts: AVD Manager and SDK Manager. I don't see adb in either. I'm loaded into EXT4 Recovery Nand now.
--- edit
After looking in the android sdk program directory in windows i found adb-has-moved.txt It says:
Code:
The adb tool has moved to platform-tools/
If you don't see this directory in your SDK,
launch the SDK and AVD Manager (execute the android tool)
and install "Android SDK Platform-tools"
Please also update your PATH environment variable to
include the platform-tools/ directory, so you can
execute adb from any location.
--- edit
when i get this completely finished, I'm going to do it again to another phone, and I'm going to make a COMPLETE step by step guide from start to finish for noobies like me and post it.
---- edit
after going to a cmd prompt and navigating to the 'platform-tools' directory and typing adb, press enter, then typing 'df', press enter, i get this error:
Code:
'df' is not recognized as an internal or external command, operable program or batch file.
--- edit
i'm attaching a screenshot, i used the command 'adb shell' then enter then the command 'df'. although i have no idea if this is doing this to my sd card on my phone which has the sd-ext mounted.
Oh, you resized WP7 like that (with partitioning tool), okay, it's fine too. You will have to hardreset though. No need to use CABs then.
ADB is in C:\android-sdk-windows\platform-tools if you've downloaded it (platform tools) from that installer/updater of course.
Browse there with CMD and use adb shell.
Please remember to set both FAT and EXT4 partitions primary, else it won't work.
After you check if the partition is in that mmc02 thing, you can install the ROM with the recovery.
thank you
Spaqin said:
Oh, you resized WP7 like that (with partitioning tool), okay, it's fine too. You will have to hardreset though. No need to use CABs then.
ADB is in C:\android-sdk-windows\platform-tools if you've downloaded it (platform tools) from that installer/updater of course.
Browse there with CMD and use adb shell.
Please remember to set both FAT and EXT4 partitions primary, else it won't work.
After you check if the partition is in that mmc02 thing, you can install the ROM with the recovery.
Click to expand...
Click to collapse
ok i'm attaching a screenshot of my partitions in minitool. i made the fat primary as well. now i'm going to copy over the aokp jellybean rom and try to install it. fingers crossed! also, i hard reset wp7 when i first installed it. i'm afraid if i do it now, it will undo all the partitioning steps i've taken after that. is this correct?
---- edit
ok, something went wrong, because after i installed android from ext4 recovery nand, i powered down, booted into magldr 1.13 and selected '1. Boot WPH' and it said: 'WPH not installed.' aaaaaaahhhhhh!!!! lol
any ideas where i might have gone wrong?
---- edit
btw, when i booted into android (1st boot) i checked the space, and it said the 5.81gb or whatever it was, so i think the partitions are intact. could this be a 'uselast24NAND' issue? i don't think i did that when i installed wp7, i couldn't remember when i was supposed to do that. ah geeeeeeeez
noobinius said:
ok i'm attaching a screenshot of my partitions in minitool. i made the fat primary as well. now i'm going to copy over the aokp jellybean rom and try to install it. fingers crossed! also, i hard reset wp7 when i first installed it. i'm afraid if i do it now, it will undo all the partitioning steps i've taken after that. is this correct?
Click to expand...
Click to collapse
First check that WP7 still boots (if you've followed most of the tutorial for the old dual boot 1 sd card method you should be fine, otherwise you'll have to start over), and don't use 4ext nand recovery (doubt it'll run anyway), you need the 4ext SD version.
Just follow this , with the difference being having 3 partitions at the end ( FAT32|||EXT4|||WP7) then install via a SD ported recovery
thank you
HypoTurtle said:
First check that WP7 still boots (if you've followed most of the tutorial for the old dual boot 1 sd card method you should be fine, otherwise you'll have to start over), and don't use 4ext nand recovery (doubt it'll run anyway), you need the 4ext SD version.
Click to expand...
Click to collapse
ok, thanks hypoturtle. ok, i am going to take a little break, then find the sd version of 4ext, then i'm going to task29 this monster with hd2 toolkit and completely start over. i will update this thread with what happens and what i did. when i'm done i plan to make a complete step by step guide with links and all so there will be something with ALL the information and links in one place, placing all credit where it is due to the original developers. i am not a developer.
Yeah, that was the problem. You can't use NAND recoveries when on WP7 because they will format NAND and prepare partitions for Android, deleting WP7. For that you need SD Recovery ported by Xylo (available in NativeSD thread). After WP7 is installed, you don't even touch anything that's NAND related because it will break everything.
Check this video tut http://forum.xda-developers.com/showthread.php?t=944288
1. install wp7
2 make android partition as in vid.
You should have after the above.
<50% of sd card volume as FAT32 on first partition (primary)
>50% of volume unformatted (WP7) on second (primary)
Then you can create ext4 partition as second partition (also set as primary), I would use minitool again to shrink your FAT partition (but use 4ext recovery sd to format it see http://forum.xda-developers.com/showpost.php?p=31247925&postcount=3464 and the post before it)
So you have 3 partitions 1. fat android 2. ext4 3. wp7
I have not tried a smaller wp7 partition than 50%, don't know if it would work but 96edwy has suggested not to do this in vid.
thank you
thank you guys for your help. i have got it working and have made a step by step guide as i did it. just one problem, and i reaaaaallly hope its not a big problem. but in android it says no sd card. i need to know how to show whatever explorer program i use in android to look at the fat32 partition. anyone know?
i also need to know how to make wp7 see the fat32 partition that will have all the media files on it. anyone?
as soon as i get this information, i will post the guide. but i don't want to post it if there is something wrong (android and windows not reading the fat32 parition).
other than that both operating systems are still there and android is running from ext4 from folder nativesd!!!
noobinius said:
thank you guys for your help. i have got it working and have made a step by step guide as i did it. just one problem, and i reaaaaallly hope its not a big problem. but in android it says no sd card. i need to know how to show whatever explorer program i use in android to look at the fat32 partition. anyone know?
i also need to know how to make wp7 see the fat32 partition that will have all the media files on it. anyone?
as soon as i get this information, i will post the guide. but i don't want to post it if there is something wrong (android and windows not reading the fat32 parition).
other than that both operating systems are still there and android is running from ext4 from folder nativesd!!!
Click to expand...
Click to collapse
Check that all the partitions are set as primary, that's the only thing I can think of.
HypoTurtle said:
Check that all the partitions are set as primary, that's the only thing I can think of.
Click to expand...
Click to collapse
well, i just checked it. i'm attaching the screenshot that shows the partitions. i'm a little scared to change the last one (the wp7 one) to primary for fear of messing it all up again. also, that shouldn't effect androids view of the fat32 which is set to primary right?
noobinius said:
well, i just checked it. i'm attaching the screenshot that shows the partitions. i'm a little scared to change the last one (the wp7 one) to primary for fear of messing it all up again. also, that shouldn't effect androids view of the fat32 which is set to primary right?
Click to expand...
Click to collapse
Can't imagine that would cause the issue, you have them layed out as Fat32 | EXT4 | Unallocated right? Have a look at df again see if vold/179:1 appears, have attached mine from PA
thank you!
HypoTurtle said:
Can't imagine that would cause the issue, you have them layed out as Fat32 | EXT4 | Unallocated right? Have a look at df again see if vold/179:1 appears, have attached mine from PA
Click to expand...
Click to collapse
so thats how you see if it's called mmcblk0p2 or not.... finally. i never used it to set these up. is it too late? i don't even know how to get adb on my phone like you did, and i tried running adb shell from my computer but it keeps saying error: device not found.
how do i get it running on my phone as you did to check?
noobinius said:
so thats how you see if it's called mmcblk0p2 or not.... finally. i never used it to set these up. is it too late? i don't even know how to get adb on my phone like you did, and i tried running adb shell from my computer but it keeps saying error: device not found.
how do i get it running on my phone as you did to check?
Click to expand...
Click to collapse
Use terminal emulator, type su to get to shell then df (or anyother busybox/adb shell command)
thank you!
HypoTurtle said:
Use terminal emulator, type su to get to shell then df (or anyother busybox/adb shell command)
Click to expand...
Click to collapse
ahh, great. well, i got there did it, no 179 error or any other error. i tried taking a screenshot with volume down + power key, but it doesn't seem to want to do it, maybe cuz it doesn't no where to save it idk.
anywayas, it shows:
/dev/block/mmcblk0p2 /nativesd
/dev/block/mmcblk0p2 /system
/dev/block/mmcblk0p2 /data
tmpfs /dev
tmpfs /mnt/asec
tmpfs /mnt/obb
other than sizes, that is all it shows...
noobinius said:
ahh, great. well, i got there did it, no 179 error or any other error. i tried taking a screenshot with volume down + power key, but it doesn't seem to want to do it, maybe cuz it doesn't no where to save it idk.
anywayas, it shows:
/dev/block/mmcblk0p2 /nativesd
/dev/block/mmcblk0p2 /system
/dev/block/mmcblk0p2 /data
tmpfs /dev
tmpfs /mnt/asec
tmpfs /mnt/obb
other than sizes, that is all it shows...
Click to expand...
Click to collapse
Screenshot is turned on in settings, system, power menu but yea it wouldn't work anyway, other than reformating the fat partition, i can think of much else you can try, i think you may have to tempt fate here and change the wp7 part to primary, can't recall if it messes anything up at this stage, i don't think so, as long as it doesn't require a format.
THANK YOU!!!
HypoTurtle said:
Screenshot is turned on in settings, system, power menu but yea it wouldn't work anyway, other than reformating the fat partition, i can think of much else you can try, i think you may have to tempt fate here and change the wp7 part to primary, can't recall if it messes anything up at this stage, i don't think so, as long as it doesn't require a format.
Click to expand...
Click to collapse
WOW, rock on man.. you did it. reset wp7 partition to primary, both operating systems still working. and android is reading the fat32 partition now. Thank you sooo much for your help. I am thrilled we did it!!
Okay, I posted a guide on EXACTLY what I did with screenshots in an ACTUAL step by step process so it will be easier for the next person that doesn't know what they're doing just like I didn't. It is here: http://forum.xda-developers.com/showthread.php?p=31406820#post31406820
Guide
noobinius said:
thank you guys for your help. i have got it working and have made a step by step guide as i did it. just one problem, and i reaaaaallly hope its not a big problem. but in android it says no sd card. i need to know how to show whatever explorer program i use in android to look at the fat32 partition. anyone know?
i also need to know how to make wp7 see the fat32 partition that will have all the media files on it. anyone?
as soon as i get this information, i will post the guide. but i don't want to post it if there is something wrong (android and windows not reading the fat32 parition).
other than that both operating systems are still there and android is running from ext4 from folder nativesd!!!
Click to expand...
Click to collapse
PLEASE.. let us know where and how to get a hold of your NOOB Guide.. I would be very interested in it even if it all doesn't work!
TERRAREX0784 said:
PLEASE.. let us know where and how to get a hold of your NOOB Guide.. I would be very interested in it even if it all doesn't work!
Click to expand...
Click to collapse
Okay, I posted a guide on EXACTLY what I did with screenshots in an ACTUAL step by step process so it will be easier for the next person that doesn't know what they're doing just like I didn't. It is here: http://forum.xda-developers.com/show...0#post31406820

[Q&A] [30 OCT 2012][DEV] NativeSD Rom Boot Script for HD2

Q&A for [30 OCT 2012][DEV] NativeSD Rom Boot Script for HD2
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [30 OCT 2012][DEV] NativeSD Rom Boot Script for HD2. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
Unexpected end of archive
File: adbfixed_ramdisk_NativeSD_AOKP.zip
Archive seems to be corrupted.
rebgershon said:
Thanks for your speedy reply.
I have some further questions though:
1. which 'recovery' do you mean and where will I find Titanium backup and tytung tool?
2. I have downloaded the paragon software to copy the sd card contents which I will try to do now. However, what are the 'normal' methods used to resize as I mentioned in my previous post that the ext4 partition seems fixed when using the mini tool partition software?
TIA,
Geoff.
---------- Post added at 10:05 AM ---------- Previous post was at 09:59 AM ----------
Robbie,
I have put the sd card into the slot on my computer (which is a year old HP laptop) and also tried in a USB port but the Paragon software is not recognising the card at all, with only the c drive being shown. However, I am able to see the contents of the fat32 partition of the SD card through explorer as normal. Am I doing something wrong??
Click to expand...
Click to collapse
Which recovery did you use to install the rom? does it have facility to backup ext partitions? I know macs18max edited SDrecovery can do this from the first post here http://forum.xda-developers.com/hd2-android/nand-dev/nov-17-2015-kernel-3-0-101-t3251438 others can too.
titanium backup can be found in play store, free and paid versions. haven't used it myself for a while and only used free one. people on this forum swear by it though.
tytung's NativeSD backup might have to be searched for, I'm afraid.
Don't know why your ext partition is not showing up. What rom(s) are you using?
magldr or clk?
Sounds like you will have to use a backup method from the phone as opposed to pc, to store the contents on your FAT partition, then move/copy them to pc.
does this make sense?
Robbie P said:
Which recovery did you use to install the rom? does it have facility to backup ext partitions? I know macs18max edited SDrecovery can do this from the first post here http://forum.xda-developers.com/hd2-android/nand-dev/nov-17-2015-kernel-3-0-101-t3251438 others can too.
titanium backup can be found in play store, free and paid versions. haven't used it myself for a while and only used free one. people on this forum swear by it though.
tytung's NativeSD backup might have to be searched for, I'm afraid.
Don't know why your ext partition is not showing up. What rom(s) are you using?
magldr or clk?
Sounds like you will have to use a backup method from the phone as opposed to pc, to store the contents on your FAT partition, then move/copy them to pc.
does this make sense?
Click to expand...
Click to collapse
Thanks again Robbie. Tis whole thing gets wierder as follows:
I'm using Nexus HD2 Jellybean-CM10_V1.3a as the rom. In the recovery directory of the SD card there's the Jellybean rom as mentioned, clrcad (dated 8/7/2010, haret, initrd.zip, startup text document & zImage (dated 5/9/2012).
There's also a NativeSD directory with the same files as the recovery directory.
Running Haret from the recovery directory takes me to 4EXT Recovery v2.2.7 RC5.
It also shows: E: can't find misc
E: failed to find "cache" partition to mount at "/cache".
In the info section it lists the sd-ext partition ext4 1012MiB free 135.5mb, sdcard fat32 14175 MiB free 8.0gb.
Attempt to backup fails as can't find cache partition, boot, recovery logs on E:
I loaded the Paragon software on my newer laptop but no ext partition was found. I then loaded the Paragon software on an older laptop and hey presto the partition was there. I tried to back this up on the pc but had repeated problems with files not being read. Then suddenly the ext partition disappeared on the pc but phone booted into Android-phew!.
I tried on the 1st pc and suddenly it recognised the ext partition. I tried backing up the partition but again had read problems. The fat32 partition backed up without 1 error.
So where do I go now? I don't want to loose the data in the ext partition but don't seem to be able to backup. Any suggestions welcome.
Geoff.
rebgershon said:
Thanks again Robbie. Tis whole thing gets wierder as follows:
I'm using Nexus HD2 Jellybean-CM10_V1.3a as the rom. In the recovery directory of the SD card there's the Jellybean rom as mentioned, clrcad (dated 8/7/2010, haret, initrd.zip, startup text document & zImage (dated 5/9/2012).
There's also a NativeSD directory with the same files as the recovery directory.
Running Haret from the recovery directory takes me to 4EXT Recovery v2.2.7 RC5.
It also shows: E: can't find misc
E: failed to find "cache" partition to mount at "/cache".
In the info section it lists the sd-ext partition ext4 1012MiB free 135.5mb, sdcard fat32 14175 MiB free 8.0gb.
Attempt to backup fails as can't find cache partition, boot, recovery logs on E:
All the above is normal for NativeSD, your sdrecovery doesn't allow for backing up the ext partition
I loaded the Paragon software on my newer laptop but no ext partition was found. I then loaded the Paragon software on an older laptop and hey presto the partition was there. I tried to back this up on the pc but had repeated problems with files not being read. Then suddenly the ext partition disappeared on the pc but phone booted into Android-phew!.
I tried on the 1st pc and suddenly it recognised the ext partition. I tried backing up the partition but again had read problems. The fat32 partition backed up without 1 error.
So where do I go now? I don't want to loose the data in the ext partition but don't seem to be able to backup. Any suggestions welcome.
Geoff.
Click to expand...
Click to collapse
perhaps paragon wasn't the best choice for backing up. Try the recovery linked-to above, put it on your sdcard and run haret from its folder (you might have to change the folder name so that it is not the same as your other recovery folder). then select backup, then scroll down to sdext, tick it and swipe, it should copy to your FAT, and it seems you have plenty of space there. I haven't tried this backup method, which is why I said use 2 methods to backup. the more the merrier.
There are free sms, phone and app backup applications such as superbackup in playstore.
There was also a way to copy the whole sdcard as an image, partitions included, I will have a look for it.
Robbie P said:
perhaps paragon wasn't the best choice for backing up. Try the recovery linked-to above, put it on your sdcard and run haret from its folder (you might have to change the folder name so that it is not the same as your other recovery folder). then select backup, then scroll down to sdext, tick it and swipe, it should copy to your FAT, and it seems you have plenty of space there. I haven't tried this backup method, which is why I said use 2 methods to backup. the more the merrier.
There are free sms, phone and app backup applications such as superbackup in playstore.
There was also a way to copy the whole sdcard as an image, partitions included, I will have a look for it.
Click to expand...
Click to collapse
Robbie thanks again.
I downloaded the recovery folder from your link but there's only 2 files in it namely initrd.gz and zImage, there's no haret. I have copied the haret, clrcad & startup text files files from the old recovery directory but it just hangs on running haret.
Geoff.
Sorry Geoff, I am not giving you very good advice. That recovery has a 3.0 kernel in it, and won't boot from haret. Am working ATM, will reply later.
Robbie P said:
Sorry Geoff, I am not giving you very good advice. That recovery has a 3.0 kernel in it, and won't boot from haret. Am working ATM, will reply later.
Click to expand...
Click to collapse
Hi again Robbie,
I have good news and bad!!
I managed to eventually get the Paragon software to recognise the ext4 partition on my new laptop. What's odd is that the ext4 partition is listed under the name of the c drive. I then unmount and remount the ext4 with a new drive letter and I can then read/write. So having managed to mount, I was able to copy off all the files from the FAT32 & ext4 partitions to my hard disk. That's the end of the good bit.
As its 3 years since I did the last Jellybean install, I'd forgotten what to do and kept seeing posts about magldr and custom radio roms. I tried to boot into magldr on the phone while doing the sd card backups but it wouldn't go into it. I had assumed I must have installed it when I did the original SD rom install and I then wrongly assumed I needed to reinstall the HSPL4 and custom radio roms to get it on again. The former was ok but the latter caused the phone to hang on reboot at the HTC logo. At this point I went to the bootloader screen but after having the 4 colour screen I then got the white screen with blue writing for updating the rom from an sd card (there must have been an unzipped rom on the card). I mistakenly hit the install rom button and this erased all the phone's data before I'd had chance to use SD Backup, a programme I hadn't bothered using since long before I converted to Android.
I then looked back in my old bookmarks and came across a facebook guide to the Native SD installation which didn't mention magldr at all and it was at this point that I realised I'd not previously loaded it on the phone, although I did eventually manage to get it on after downgrading the HSPL to 2.08 and successfully flashing the custom radio only to be permanently booting into magldr-so I again reflashed the stock rom to get rid of it! What a waste of time!!
Having backed up the sd card partitions, I erased the partitions and made a new ext4 of 3gb and copied back the files to both partitions. I tried to boot the haret in the native SD folder but the phone hung at the HTC logo and then rebooted itself back into windows. I tried installing the jelly bean rom as an update using ext4 recovery but no joy. I tried wiping the ext4 partition and reformatting with EXT4 recovery then installing the rom as a new install which then booted into Android ok after which I overwrote the ext4 files with the previously saved ones. Now I get a boot into the CyanogenMod screen but no further even after waiting 30 mins. I also tried using NAtiveSD onetouch recovery to try and make a backcup of the old system and then restore over the new install (but not the boot files) but again I just get the hung CyanogenMod screen.
So do you have any idea of how I might get a successful boot with my old data? Perhaps I'm missing something else in the overwrite/restore process but I can't see what.
Any further help would be grateful-perhaps you have forum contact who might be able to help as well.
TIA,
Geoff.:crying:

[HOWTO] [L/M/N] Move /data to external SD the hard way

Hello, in this thread I'll show you how to move the /data partition to your microSD card in order to increase the storage space, and bypass the speed limits of our poor eMMC memory.
Disclaimer:
I'm not responsible for any data loss or any other kind of problems. Follow the tutorial and everything will be fine. In case of problems, reflash the boot.img of your ROM or reflash the whole ROM and you'll reboot to Android using the usual /data partition.
Pros:
more storage space
slightly shorter app loading times
Cons:
you cannot eject your SD card from your phone when it is turned on
Requirements:
a computer
some kind of adapter to put the microSD into the computer
a 16 GB (or higher), class 10 (or better) microSD
Any recent L (untested), M (tested) or N (tested) ROM and TWRP 3
these two zips: https://www.androidfilehost.com/?w=files&flid=113749
Step 0: prepare the SD card
using your computer, shrink the only partition you have on your SD card and leave at least 6 or 7 GB of unallocated space. Be sure not to shrink too much the first partiton (which will continue to be used as a normal storage partition) because you'll have to store a nandroid backup in it! This is why I recommend you to use a 32 GB SD card. Then create a new partition using the unallocated space. If you're using Windows or OS X, create a fat32 partition, if you're using Linux, create an ext4 partition.
Step 1: patch the recovery and backup, then restore
In the AFH folder I posted in the requirements you'll find two zips. Download them and reboot to recovery, then take a nandroid backup of your /data partition and store it on your SD card (TWRP will automatically use the first partition of the SD card, the one with all your current content). Now flash twrp_fstab_patcher.zip. Power off your phone and then turn it on and boot into TWRP. Now go to Wipe > Advanced Wipe > select Data > Change Filesystem > choose ext4 or f2fs (as you prefer). Confirm and check that the Data partition has been formatted to the chosen filesystem. Restore the backup you've made.
Step 2: migrate the data of the internal storage
Reboot to Android and using a file manager that lists both of your SD card's partitions (FX works for me) and copy all the content of your internal storage (photos, music, app data etc.) to *2nd_sdcard_partition*/media/0.
Step 3: patch the kernel
Now you're ready for the last step. Flash kernel_fstab_patcher.zip and reboot. The end!
Warning: you need to reflash kernel_fstab_patcher.zip after you change/update ROM/kernel otherwise your phone will use the "old" data partition! Similarly, you must flash twrp_recovery_patcher.zip each time you update TWRP 3 (this doesn't happen very often).
Well, I hope I put all the needed info in this thread, I'll keep it updated with my latest suggestions etc. If you have got problems, report them. If you find something that doesn't make any sense in this post, tell me. Enjoy!

Categories

Resources