[Q] How to Access a NAND filesystem without boot? - HD2 Android Q&A, Help & Troubleshooting and Genera

Hi guys,
I have a problem with my HD2. I have MAGLAR 1.13 and NAND rom from gauner "[23 JAN] gauner1986's Z-FI 0.1 (Desire Z based) [KERNEL = my own ]". + rafpigna 1.70OC kernel.
Everything works great but GP FIx was kinda slow. So I tryed to follow this trhead http://forum.xda-developers.com/showthread.php?t=900631&page=14 and I copied the sensors.bravo.so gps.bravo.so to /system/lib/hw/. I didn't replaced nothing because these files were not there. Also changed permissions from 644 to 777 on /system/lib/libgps.so. And rebooted... (this is the ref http://forum.xda-developers.com/attachment.php?attachmentid=490930&d=1295171058)
Now after load the maglar and kernel, when it shows the "HTC Quietly brilliant" phone just won't leave this stage.. and won't boot... just cycles on this stage.
I need to access filesystem to remove those files from it. How can I do it without having the phone booted?
Tks,
pmjcr

Can I do it from AD Recovery?
I can see that with MAGLDR 1.13 I have a AD Recovery mode. And if I put a zip on root of sdcard I can make ate least something... What do I have to put on the zip file in order to delete these files?...

Also see that in these zips there is a META-INF\com\google\android\update-script
In this script usually I has these commands
ui_print("Formatting System..."); to print something to the screen
format("MTD", "system"); I believe this is for formating partition
mount("MTD", "boot", "/boot") This should be to mount....
What I need is a "rm" command/syntax to remove sensors.bravo.so gps.bravo.so from /system/lib/hw
someone??...

I think I've found...
delete DATA:etc/hosts--------------delete("/data/etc/hosts");
on http://forum.xda-developers.com/showthread.php?t=936175
will try... fingers crossed

Your new sensors file may be causing the issue.
Since it appears you have Clockwork recovery, do a NAND backup then a file system format, then re-flash your ROM.
You can at least then recover the data area should this fix the issue.

I am not having any luck... this update.zip from root of SD is only for Clockworkmod and I don't have it... only magldr... As in menu i've seen "AD Recovery" I though it would work.. but no...

What is the AD Recovery for on MAGLDR and how can I use it? When I select it I will have "no boot sources".

Ok... I'm a little tired of searching... but I've realized that I need a way of doing an incremental update via DFT method. Anyone knows how?...
I really don't want to loose my s4ettings from my phone... everything was working so great... just the GPS was slow on fix... buááááááá

If you are going to continue to ask several questions in this thread between replies I suggest you edit one post over and over. It is difficult to help when you're having to quote many different posts.
If you don't have Clockwork recovery installed then you have a problem - sort of. You won't have AD Recovery, and installing it will wipe your current ROM.
My suggestion is you download CWR 1.12 which is the SD Card method, put the zipped files in the ROOT of your SDCARD and use the SD AD or SD Android boot option in MAGLDR. This should give you the option to backup your ROM and flash a new .zip ROM.

dkl_uk said:
If you are going to continue to ask several questions in this thread between replies I suggest you edit one post over and over. It is difficult to help when you're having to quote many different posts.
If you don't have Clockwork recovery installed then you have a problem - sort of. You won't have AD Recovery, and installing it will wipe your current ROM.
My suggestion is you download CWR 1.12 which is the SD Card method, put the zipped files in the ROOT of your SDCARD and use the SD AD or SD Android boot option in MAGLDR. This should give you the option to backup your ROM and flash a new .zip ROM.
Click to expand...
Click to collapse
Thanks for your adviceI was already on that stage trying a SD built. I've loaded and android from SD but getting an image required some more additional steps. I ended by installing a new built (the DL Desire one) that has a recovery method.
Thanks for your help.
Rgds,

I am curious about the topic in the title as well. I have access to a Mac and PC. Some sort of "USB" mode that allows access to the internal memory and not just the memory card.

Related

[Q][11Jan] Possibly silly question about Clockwork recovery..

Hi guys,
Ive been reading about Clockwork recovery (watched the videos etc.) but still have a question.
I am using this rom on my HD2: NexusHD2-Froyo V1.9b NAND
I have configured my phone with all my personal settings, app, etc. and I want to install clockwork recovery so that I can install Apps2SD (using the .zip installation file). My 8GB SDcard is already partitioned with 1GB ext4 partition following the 7GB fat32 partition.
The question is can I install clockwork recovery without having to flash a new rom afterwards thus loosing all my current configuration? Or installing clockwork (copy files to SD root, then flash etc) does not affect current installed NAND rom?
Sorry if I was supposed to get this info through the various threads - I just could not find a clear answer.
Regards,
F
copy over the 2 files it tells you to and follow the insteructions, it wont do anything tothe existing installtion, well it didnt to me anyways
Richy99 said:
copy over the 2 files it tells you to and follow the insteructions, it wont do anything tothe existing installtion, well it didnt to me anyways
Click to expand...
Click to collapse
cheers m8

Want to change ROM but confused about a few things.

Hi.
After getting my HD2 last week I tentatively but successfully flashed my first ROM, which was the Rafdroid 4.0.2.
I had correct radio.
I installed HSPL 2.08.
I installed MAGLDR 1.13
I got the Rafdroid ZIP file
Prepared SD card with Primary Partition and 1GB ext3 partition.
Downloaded the 400MB CWM partition and flashed to HD2
Then installed the Rafdroid Zip from SD card via CWM.
Everything seemed to go fine and I've been using the Rafdroid for a week. But now I want to try a new ROM, specifically the NexusHD2-Gingerbread V2.7 ROM.
Now I'am a bit unsure on how best to proceed still being new to the world of NAND. A few things in the Nexus ROM thread confuse me.
Installing CWM_Recovery_for_NexusHD2 (135MB system and 2MB cache)
Does this mean I need to reflash to CWM partiton size 1.3v 150MB? I'm unsure what the 2MB cache means.
Enter ClockworkMod Recovery when you're on MAGLDR 1.13 (hold "Power" button during boot) and select "AD Recovery" or "Boot AD SD" (if ever copied CWM's initrd.gz and zImage to SD).
The first part of this I understand but I don't know what the bold bit is. Do I need to copy these files to my sd card? I didn't do anything like this when I flashed Rafdoid.
Thanks for your time. Hopefully a few pointers can get me on my way
Yes, reflash cwm but with a different partition layout.
(look in cwm folder find flash.cfg, open it in notepad, you will see the numbers to change)
The bit in bold - ignore that, there are two types of cwm, one that installs to the nand, like you have, and one that runs from sd, so ignore the sd bit.
So,
Into magldr,,
usb flashing,,,
flash the new layout with the sizes the rom suggests, (you can tinker with your own sizes as you get used to changing, it's the system size that is important, a few meg bigger than the unzipped size of the system folder in the rom.zip)
When that completes, back into magldr,
Ad recovery (option 8 I think) to boot cwm, and flash the rom.
You can set the system size to what you like, so long as it is bigger than the roms system folder, but anything over is wasted, it doesn't count towards internal storage, so if the rom says 135 and you flash 150 layout, there is 15meg wasted space. (that being said, 150 is a good size to use, since quite a few roms use that or smaller,, sense free roms will mostly all fit in 150 layouts,) meaning you can switch between them without flashing cwm again. Also means you can restore cwm backups from any of them into that layout, so you can set one up, take backup, flash another, take backup, flash a third, then any time restore either of the backups.
Use flash.cfg to change partition.. Btw. I read in NexusHD rom topic you need to flash 135MB system and 2MB cache.
About the second problem:
Just make sure you have zipped rom on your sd card, enter MAGLDR, select AD Recovery and flash zip.
I think the second way is possible if you manually copy those files, never tried it.
Hi Sam and volv.
Many thanks for taking the time to answer my queries!
Should I get rid of the Rafdroid sd card layout and just re format the card to FAT32? I don't think I'll be going back to it.
Another thing about the backup - where are they stored - in the NAND memory or on the sd card for loading back into NAND?
Everything else you've posted has been very clear and super helpful. I'll definitely be a lot more confident at flashing the ROM tomorrow!
Thank you.
Warren_Orange said:
Hi Sam and volv.
Many thanks for taking the time to answer my queries!
Should I get rid of the Rafdroid sd card layout and just re format the card to FAT32? I don't think I'll be going back to it.
Another thing about the backup - where are they stored - in the NAND memory or on the sd card for loading back into NAND?
Everything else you've posted has been very clear and super helpful. I'll definitely be a lot more confident at flashing the ROM tomorrow!
Thank you.
Click to expand...
Click to collapse
Hi,
Before starting anything,BACKUP YOUR STUFF.
Go to ad recovery>backup and restore and make a backup of your current system and data.This is stored on your sd card in clockworkmod/backup.
Next ,flash your new partition.
Then go to ad recovery and wipe data,cache partition,and dalvik(advanced)
Then go back and choose install zip from sd card(having placed your new ROM zip on the root of your sd card using a card reader)
Most roms support using the ext partition, so definitely keep it.
Before you flash, in cwm, do a 'wipe data/factory reset','wipe cache', and then 'advanced - wipe dalvik cache'. This will clear out the data and such from the previous rom, so no need to format it. (there may be some leftover folders from certain apps in the fat32 partition, you can manually delete them as and if necessary, shouldnt cause any problems)
backups get saved to the sd card, in a folder called clockwork, so be sure and back that up if you plan on formatting your sd card.
Hi again.
I just want to say the flash went like clockwork (no pun intended ) The NexusHD ROM has a really nice feel to it. Its my first taste of stock Android and I like it.
I was going to sell the HD2 and keep my old Hero, but I'm not so sure now after trying NEXUS HD ROM.
Hmmn decisions decisions.
Once again thanks for all your help. It definitely filled in the missing blanks.
Ta Ta
you can use every flash.cfg and change the values to the needet. Run the flash tool and after that flash the zip via recovery

[Q] Reset android

Hi, I'm new on this forum, and I already have a problem
I just got my HD2 with android running from the phone. I was an xperia and WM user before, so I decided to give it a try. I'm trying to reset the phone (so I can costumize android) via Settings-Privacy-factory data reset, but it wont work, I hit the button "Erase everything" and noting happens.
Is there any other way to do this, maybe from the "boot manager" (I dont know the proper term for this).
...oh yes, I dont know witch specific rom is installed, I only know it is android 2.3.4
By "running from the phone " I assume you mean nand.
Turn on phone, hold power till get magldr screen, in magldr choose Ad recovery, when clockwork starts choose "wipe data factory rwsst" and "wipe cache" then restart.
yes I tried that before but it says "no boot sources"
so I guess I'm without clockwork...and I guess also this can be installed only when you install a new ROM..
GsiminL said:
yes I tried that before but it says "no boot sources"
so I guess I'm without clockwork...and I guess also this can be installed only when you install a new ROM..
Click to expand...
Click to collapse
Hi,
Backup your data before you start.
Download THIS TOOL (Don't forget to thank him)
Find your new ROM and determine the new partition size.
In the toolkit highlight Magldr update recovery,choose your size and update.
Then go to ad recovery and wipe data,cache partition,and dalvik(advanced).
Then install ROM.
The new partition + the wiping will thouroughly clean you up .
Tnx for the help, but I think I'm going to put WM back because I just found out that outlook and google can't be synced so easily as I use outlook for everything it's a shame.
Thank you very much for your help.
I use outlook. Myphoneexplorer syncs fine with outlook. (though I don't sync with google since doing so corrupts many of my contacts custom fields)
malybru said:
Hi,
Backup your data before you start.
Download THIS TOOL (Don't forget to thank him)
Find your new ROM and determine the new partition size.
In the toolkit highlight Magldr update recovery,choose your size and update.
Then go to ad recovery and wipe data,cache partition,and dalvik(advanced).
Then install ROM.
The new partition + the wiping will thouroughly clean you up .
Click to expand...
Click to collapse
can I reinstall a whole new rom ( HD2 CoreDroid HD GB 2.3.3 V3) and delete everything from the device using this tool?
GsiminL said:
can I reinstall a whole new rom ( HD2 CoreDroid HD GB 2.3.3 V3) and delete everything from the device using this tool?
Click to expand...
Click to collapse
Hi,
This tool does a lot of the hard work for you.
Remember to back up your data before you start ,because these processes wipe your system clean.
Yes,this tool wipes your device(Not the sd card).
Re-install everything.
Use the tool to re-partition your system:
system ya 390M
cache ya 5M
Then:
go to ad recovery and wipe data,cache partition,and dalvik(advanced).
then install ROM
so to install a new NAND android rom (HD2 CoreDroid HD GB 2.3.3 V3):
i need to have MAGLDR and before that the right radio and HSPL. I already have all of this because I have installed an android rom.
from what I learned today reading all sorts of things on the forum, is that I can install this rom (HD2 CoreDroid HD GB 2.3.3 V3) or any other also without doing all that staff with the SD card and partitions, CWM... or am I wrong? - From the MAGLDR USB flash. for this to work does the rom have to be a special file type or can it be .zip like for the flashing from the SDcard?
...the CWM allowes me to backup and update android, or so I understend it?
but is it possible to install via MAGLDR #4 option and install CWM afterwards?
forgot: this tool kit enables me to do all this: install new MAGLDR, CWM an then I falsh the rom? I don't understand how it works
GsiminL said:
so to install a new NAND android rom (HD2 CoreDroid HD GB 2.3.3 V3):
i need to have MAGLDR and before that the right radio and HSPL. I already have all of this because I have installed an android rom.
from what I learned today reading all sorts of things on the forum, is that I can install this rom (HD2 CoreDroid HD GB 2.3.3 V3) or any other also without doing all that staff with the SD card and partitions, CWM... or am I wrong? - From the MAGLDR USB flash. for this to work does the rom have to be a special file type or can it be .zip like for the flashing from the SDcard?
...the CWM allowes me to backup and update android, or so I understend it?
but is it possible to install via MAGLDR #4 option and install CWM afterwards?
forgot: this tool kit enables me to do all this: install new MAGLDR, CWM an then I falsh the rom? I don't understand how it works
Click to expand...
Click to collapse
Hi,
Backup your data before you start
Read this thread:
http://forum.xda-developers.com/showthread.php?t=1090783
Magldr repartition(use 5 usb flasher) (390MB, 5MB cache)
Then 8 ad recovery>wipe data,cache partition,dalvik(advanced)
Then go to install zip from sd card
Choose zip from sd card (which you should have placed on the root of your sd card,using a card reader)
After installation,reboot.
Give it time.
Some ROMS take 15-20 minutes to install.
aha so if I repartition MAGLDR my device will be wiped an the CWM will be installed. the partition sizes that you suggested are for the rom (HD2 CoreDroid HD GB 2.3.3 V3) that I'm trying to install? (I cant yet post in their thread so can't ask them)
and if I can ask this particular rom can be installed only by partitioning and flashing it by sdcard or also in MAGLDR?
malybru said:
Hi,
Backup your data before you start
Read this thread:
http://forum.xda-developers.com/showthread.php?t=1090783
Magldr repartition(use 5 usb flasher) (390MB, 5MB cache)
Then 8 ad recovery>wipe data,cache partition,dalvik(advanced)
Then go to install zip from sd card
Choose zip from sd card (which you should have placed on the root of your sd card,using a card reader)
After installation,reboot.
Give it time.
Some ROMS take 15-20 minutes to install.
Click to expand...
Click to collapse
ok I think i got it now (about time ) only one question
Can I put the .zip ROM in the SD card by connecting the phone before I start the whole process like I would put music on or does it have to be formatted and empty with only rom on it?
GsiminL said:
the partition sizes that you suggested are for the rom (HD2 CoreDroid HD GB 2.3.3 V3) that I'm trying to install? (I cant yet post in their thread so can't ask them)
Click to expand...
Click to collapse
that thread, post three, post titled 'Read read read read read!!!!!!!!!' in the section entitled FAQ,
What is in the required NAND Partition (flash.cfg)
misc ya 1M
recovery rrecov|ro|nospr filesize recovery-raw.img
boot yboot|ro 10M
system ya 390M
cache ya 5M
userdata ya|asize|hr allsize
GsiminL said:
ok I think i got it now (about time ) only one question
Can I put the .zip ROM in the SD card by connecting the phone before I start the whole process like I would put music on or does it have to be formatted and empty with only rom on it?
Click to expand...
Click to collapse
Hi,
Sd card does NOT need to be formatted.
It is best to put the new ROM onto the root of your sd card,USING A CARD READER.
This will avoid any data corruption.
malybru said:
Hi,
Sd card does NOT need to be formatted.
It is best to put the new ROM onto the root of your sd card,USING A CARD READER.
This will avoid any data corruption.
Click to expand...
Click to collapse
so it is not recommendable to copy it by normal usb connection Phone-PC
huh ok tnx guys for all your time and help
xperia was much easyer

Bit of a noob here, got a quick question!

So I just bought a HD2 last week, after a little trial and error I managed to install this ROM http://forum.xda-developers.com/showthread.php?t=1117787 following the guide in the thread.
Every thing is running fine, no bugs, really fast and am really pleased with the phone and rom.
The only thing that I am a little unsure of, is that looking around the forums at other roms and also in the MIUI forums I see a lot of people talking about needing specific cache/partition/swap (not exactly sure which) sizes to run each ROM, in the MIUI forum it says "rom need to be at 150mb for magler/cLK to work right."
But following the guide for the ROM there is no mention of this an I did not do this step, the only thing I did was use CWM to create a EXT and swap (just chose sizes I thought would suffice) to get apps2sd to work once I had installed the rom.
Now I know the ROM runs fine but my question is will it run any better if I created the correct sized cache/partition/swap (whatever the hell it is!!)?
Sorry for sounding such a noob but this phone is a little different from my old hero to install ROMs on
When you flash clockwork mod you can edit the size of the system.
Open the folder of clockwork mod you downloaded and edit flash.cfg file with notepad and change system size to 150M .
That´s it
When you flash clock work mod???
As far as I can tell CWM just runs of my SD card (if I wipe the files off the SD card that are provided with the rom, it doesnt load CWM when I hold the power button then choose the number one option)
This is what I dont get, is CWM supposed to be permanently flashed to the nand as well, like the ROM is? And if it does just run off the SD, then why does it need a certain system size and what does this do?
Okay i think i have to write much now
Okay first you flash magldr (it´s the ´base´)
then you flash Clockwork Mod via USB Flasher option in magldr:
"For MAGLDR 1.13, booting from NAND:
Download the file attached
Download a partition layout incl. recovery from this thread which fits your ROM you want to use best and unzip it into "C:\recovery" for example
Copy over the recovery image file from inside the zip archive into this folder "C:\recovery", delete existing "recovery-raw.img" and rename copied image file to "recovery-raw.img"
Flash the recovery and partition layout using "DAF.exe" as usual and described in the thread of raiderx or the ROM provider
Boot Recovery with menu point "8. AD Recovery"
You're done"
Go here to get it :http://forum.xda-developers.com/showthread.php?t=987531
Before flashing it edit the flash.cfg file like i described it before ,then flash the .zip ROM..
Thanks for the detailed reply, so I'm gathering that this will install CWM onto my nand, but as I have the ROM running fine and don't really mind that CWM runs from the SD card, are there any benefits to doing this?? And will I lose some storage space on the phone if I do this?
you can use the sd version too
I suggest that when you change your ROM next time ,use the nand version with the right partition .

Trying to install CWM from sd SD kernel failed

I want to re-partition my NAND, and don't have windows around. So I downloaded cwm-sd.zip and cwm.zip. I extracted cwm-sd.zip to the root of my sd card , copied cwm.zip with appropriate flash.cfg inserted. I will reboot, go to Mahler, ad sd. (As described)
But I will get sd kernel open failed.
I try with the latest stable clockworkmod. 5.0.26
Any ideas what the problem might be.
I want to repart nand only, so any other ideas not including windows pc are welcome, I have pc with Ubuntu on it.
Sent from my HTC HD2 using xda premium
1st-sorry, don't know why its not entering cwm
But
2n- it doesn't work like that. you can't repartition magldr from SD. If it did boot "ad SD" it would run cwm, nothing more. The SD cwm is so you can backup/flash roms without having nand cwm, but it relies on the nand already being partitioned.
If you want to partition from SD use clk instead of magldr.
I have a working CWM installed. I just want to re-part, really.
According to this thread,
http://forum.xda-developers.com/showthread.php?t=987531
it seems this should be possible. I dont want to re-install CWM though, I just want to re-part. I can cope with terminal and adb , I think, and these options are (I think) available under linux, but I dont know how to do it
Well, I disagree, but hey, you have the info. I'll be interested in reading your how-to if you manage it.
(Also, from your other threads you seem not to have noticed that partitioning also installs cwm at the same time)
deckoff said:
I have a working CWM installed. I just want to re-part, really.
According to this thread,
http://forum.xda-developers.com/showthread.php?t=987531
it seems this should be possible. I dont want to re-install CWM though, I just want to re-part. I can cope with terminal and adb , I think, and these options are (I think) available under linux, but I dont know how to do it
Click to expand...
Click to collapse
Even with this link i failed at setting up ADB on my Ubuntu machine but you may have better luck than i.
I am almost 100% sure I managed to do this way back in time. What I don't know is if I can use adb to partition NAND , and if so, how. Not to mention that the phone is not the typical android phone.
Sent from my HTC HD2 using xda premium
samsamuel said:
Well, I disagree, but hey, you have the info. I'll be interested in reading your how-to if you manage it.
(Also, from your other threads you seem not to have noticed that partitioning also installs cwm at the same time)
Click to expand...
Click to collapse
I have noticed it, I assume it will install over the existing one...
I dont have any info, I just cite a source. The process apparently fails for me, so I am stuck. I am probably misunderstanding it.
You CAN install cwm over the current one, by booting into cwm and then using flash zip from sd card, and selecting the new cwm.zip from your sd (just like flashing a rom), BUT this doesn't partition anything, it is just loading the contents of the zip into the recovery partition that already exists.
trust me, if you want to partition the phone without a pc, you need to be using cLK.
From the link above:
For MAGLDR up to 1.13, booting from SDCard (SD-files version):
Download the file attached
Extract the files to the root directory of your sdcard
Start recovery within MAGLDR with menu point "AD SD"
Recovery should start
You're done
Click to expand...
Click to collapse
What exactly is this used method used for? It is described in the Install CWM methods(if I am not wrong)
Flash.cfg files in clockworkmod.zip are used to re-part data and user partitions. What happens if I re-flash CWM.zip with custom flash.cfg file inside via method at the top of the post. Or just flashing CWM.zip with flash.cfg via the installed CWM. What and when reads the flash.cfg files and act accordingly?
It is not a question of trust, I would love to know the basic workflow of the process
The cwm that comes with a flash,cfg is for flashing to nand via usb - magldr - usb flasher, or the cLK equivalent.
the cwm-sd version, and the process outlined in your quote, is used to boot into a valid working copy of cwm from sd card instead of the nand recovery partition.
For example if your nand version of cwm gets corrupted, .. for example trying to use rom manager under magldr, corrupts the nand copy of cwm, so you can load to the sd version of cwm, and use that to do a backup of your rom and/or reinstall cwm into the nand partition. It does NOT let you repartition the nand in the process. The partitioning happens via teh daf.exe and flash.cfg, , its daf.exe that does it. cwm just works with teh contents of teh partitions, not teh actual partitions.
If you were really tight on space, you could omit the nand recovery partition altogether and only ever run cwm from sd, gaining a whole FIVE MEG to put towards the data partition!

Categories

Resources