Possible to copy .zip file to SD Card's root in Fastboot - myTouch 3G, Magic Android Development

Hi all,
I am just going to cut to the chase, I only have HBoot and Fastboot USB modes availalbe on my phone. I need to delete the only file that is on the Fat32 partition of my SD card and then copy another onto it.
I don't have an adapter for the SD card that I can plug into my computer so I'm hoping to accomplish this with Android SDK.
ADB is out of the question because my Magic won't boot up to normal mode.
Any help is appreciated.

Doesn't your hboot allow you to mount the sdcard to your computer? If not you may be able to use fastboot to install an hboot that supports this.

RA's recovery ROM (or I think any new one) will allow you to mount the sdcard. Just use fastboot to load it.
If you can't do that for somereason, and solely want to rely on the sdk, use adb like this:
adb shell
adb mount sdcard
cd sdcard
rm <filename>
exit
adb push <filename> /sdcard/

Related

Another brick? Please help!

I followed this tutorial (2nd post down), got some errors during the process and failed to complete it.
Now my phone hangs on the vodafone splash screen on boot. I think it is empty - without a rom.
However, it will boot to recovery and the bootloader fastboot.
Is there anything I can do to fix it or is it just a brick now?
Any help is much appreciated.
Cheers,
Flitar
boot into recovery and perform update with some rom
you will need to have some external device to write your microsd
If you get to a modded recovery image, you can run adb
1. Run "adb shell".
2. Once you're connected, remount the microsd card (it the os is broken it doesn't mount it automatically, at least on my phone) by running "mount /dev/block/mmcblk0p1 /sdcard"
3. Run "exit" on the terminal, so you can go back to your desktop computer.
4. Copy an update file to the sd card using adb, for example: "adb push [name_of_the_file] /sdcard/update.zip
5. Run the update from the recovery menu.
6. Reboot.
If that doesn't work, and if you did a nandroid backup, you still can update using fastboot by using the image files from the sd card (wich, by the way, you can copy from the phone back to the pc by using the command "adb pull [remote_file_name] [local_file_name]
Thanks you guys!
Sorted, phone is fine now.

Clone an SD card (including EXT3) to another?

Like ghosting a HDD to another, I wanted to know if there's an app that can do this?
I think my 8GB LG branded MicroSD is failing as Windows keeps reporting that the drive needs to be scanned when I mount it via USB from my Desire so I'd like to just get a new Sandisk 8GB card and clone the old to new one to avoid having to go through restoring backups and so on.
If anyone has any ideas that would be grand!
check winimage.
That app can make image and recover it to drives!
Doesnt matter if disk is bigger than previous ( NB! may need to resize to get total space if its bigger, cannot remember)
I've always used it for vmware ESXi embedded sticks, made a million of them and the app works!
also linux routers.
Hope this helps.
vmware ESXi runs linux so it supports EXT!
No need for a program, copy data from fat partitions vis pc and use this ( from cyanogen wiki page) Used it three times now and no problems
Upgrading SD / Moving data to new SD
If you are using RA recovery, this is all done for you by making a BART backup. The following is if you're wanting to do it from the command line.
1. First, backup your ext partition on to your fat32 partition. Note, you will need enough free space to hold all of your apps.
* In Terminal Emulator or recovery console:
mount -a [enter]
tar cvf /sdcard/ext.tar /system/sd [enter]
Note that you must have root access for Terminal Emulator. If you get "permission denied" after entering the above command, then try entering the command "su". "sudo" will not work. After entering "su" try the above command again.
* Or, Using ADB shell from your PC:
adb shell
mount -a [enter]
tar cvf /sdcard/ext.tar /system/sd [enter]
2. Next, mount your SD card and download/backup everything on your fat32 partition. Make sure to get the ext.tar file that you just created in the previous step.
3. Change cards/repartion, or do whatever it is you planned to do here. For instructions on creating new partitions see the installation instructions above.
4. If you're not already, reboot into your recovery. Restore your backup files to your fat32 partition. Don't boot into CM yet!
5. Either go to console or ADB shell and type:
*
mount -a [enter]
*
tar xvf /sdcard/ext.tar [enter]
6. Double check that your directories are moved with:
ls /system/sd [enter]
7. Now you can reboot into CM!
8. Run fix permissions to fix any corrupted permissions.
9. Enjoy your new card!
If you have Amon Ra's recovery on your android phone you can do a bart backup with your old sd card, partition the new sd card as required, copy the bart backup to new sd card and then do a bart restore. It is what i did when i upgraded from my 2gb to 8gb, worked a treat.
Since I created this thread a few great things have happened, EXT4 support in unrevoked permanent flashed AmonRA recovery being the main one so now I am sorted thanks!
I use Gparted just copy paste

[Q] Unable to use adb with android SDK under windows (Mount SD Card in Recovery)

I'm trying to run: adb shell, but I keep getting error msg: "adb" is not recognized as file or program.
I have Adnroid SDK r08, lattest from the site, installed on my Windwos XP.
I'm doing this, because I cant mount my SD Card on Clockwork, so I can't proceed Flashing with a new ROM, the phone it self under Android, is recognizing the memory.
It is formated under FAT32 and was re-formated with the phone as a couple of posts suggests.
Could someone help me? Thanks
Before running adb, you should change your working directory to the directory where it is located.
For example, if you've installed android sdk in C:\andsdk, then you should use the following command to use it:
Code:
cd C:\andsdk\tools
adb shell
Done, I can already access to adb shell, but when Im trying to mount the sdcard, it says that its unable to mount.
So when I'm trying to Install ROM from SD Card, at Recovery Menu - Clockwork, it says that its unable to mount the SDCard.
Are you sure that your SD card is inserted properly?
Well the card works perfectly when I'm running Android. No problems at all.
Then, they came up (problems) as soon as I went into Recovery menu (Clockwork) and the phone was rooted perfectly with unrevoked 3.31
Things that I've already tried:
- Format SDCard under Fat32 and re format it with the phone => The SD Card works perfectly under Android but cannot mount on Recovery Menu.
- Format SDCard under Ext3 and 4, same as previous.
Any suggestion are welcome, and thank you so much.
When you ask ADB to list devices ('adb devices'), is yours recognised?
As soon as I got into Recovery Menu:
Ran: adb devices
This is what I got:
List of devices attached:
XXXXXXXXXXX - recovery
Click to expand...
Click to collapse
xxx - corresponds to my phone code
Then I do:
adb shell
mount /sdcard
And I get:
mount: mounting /dev/block/mmcblk0p1 on /sdcard failed: No such file or directory
Any suggestions?
Thank you!
Have you tried mounting the SD card in ADB while booted into Android?
This thread sounds like a similar thing, and might be worth reading.

flashing custom rom without sd card

my sd card got broken and reflashed to original 2,3 rom. now i want to go back to custom rom. can any1 help me flash custom recovery without sd card. thanks
Sent from my LG-P500 using XDA
mrbulanescu said:
my sd card got broken and reflashed to original 2,3 rom. now i want to go back to custom rom. can any1 help me flash custom recovery without sd card. thanks
Sent from my LG-P500 using XDA
Click to expand...
Click to collapse
I doubt that's possible
Sent from my LG-P500 using xda premium
I think you can only flash official roms with kdz because custom roms needs SD card to use "flash zip from sdcard" in the recovery.
There must be a way for flashing ROM through adb.
there is, basically look up how to copy files from PC to phone using adb, and just copy everything in the ROM onto the / (root) of your phone, as all flashable zips do is copy the stuff from your sd card onto your phone
Flash mage
Use Android Commander version 0.7.9.10 by PanPiotr. It has a option to flash your phone under device menu. I have never used it so I don't know if it will work, but it might be worth a try. http://androidcommander.com/ here is the link for the software It is a very powerful application I would recommend to any andriod user, good luck I would like to know if it works for you. All of the features I have used work perfect.
mrbulanescu said:
my sd card got broken and reflashed to original 2,3 rom. now i want to go back to custom rom. can any1 help me flash custom recovery without sd card. thanks
Sent from my LG-P500 using XDA
Click to expand...
Click to collapse
I only understoood that you flashed.stock firmware using kdz and have no sd, so steps are as follows:
1.root optimus 1 using superoneclick
2.flash cwm using adb
3.reboot in recovery
4.mount /system
5.then format /system
6.flash rom using adb
or
just copy paste files in /system of your phone
I mean the files which are in zip of custom rom
How to Flash a ROM Without an SD Card
​
This is for all those who don't have a working sdcard, sdcard slot, etc. but want still to flash a new rom
Prerequisites:
Flash an Amon_RA recovery if you're using Clockwork
Access to a computer that had AndroidSDK tools on it - you'll be using ADB
Put whichever ROM.zip you want to flash in your android-sdk\tools folder - I would rename it to something simple. (My example which I'll be using for this tut is: C:\AndroidSDK\toosl\ROM.zip)
Directions:
Reboot into the Amon_RA recovery
Wipe data/factory reset, cache, and dalvik via the recovery menu
Open up cmd/terminal on your computer
Navigate to your android-sdk\tools directory
Enter the following in cmd/terminal:
Code:
adb shell
mount data
*wait a second or two* You may or may not get the "/ #" line returned.
Despite what happens press "Ctrl+C" to break the command and get back to the standard AndroidSDK\tools> directory
Enter the following in cmd/terminal:
(replace "ROM.zip" with the name you're using)
Code:
adb push ./ROM.zip /data/
*this will take anywhere from 30sec to a min depending on the rom.zip size*
Then we do this in cmd:
Code:
adb shell
recovery --update_package=DATA:ROM.zip
Wait for it to finish flashing/updating
Reboot
ENJOY
Brief rundown of what we just did:
Wiped /data/ to free up space for the zip
Put our ROM.zip onto the /data/ partition since we don't have an SD Card to work with.
Told the recovery to flash from our /data/ partition instead of /sdcard/
.......
is there a way to toggle signature verification through adb? My sd card slot is not working and i am trying to flash back to stock to go to sprint for repair but when I run the command and reboot into recover it says signature failed and then I can not pick the update.zip i put in the data partition.
by.adrian said:
How to Flash a ROM Without an SD Card
​
This is for all those who don't have a working sdcard, sdcard slot, etc. but want still to flash a new rom
Prerequisites:
Flash an Amon_RA recovery if you're using Clockwork
Access to a computer that had AndroidSDK tools on it - you'll be using ADB
Put whichever ROM.zip you want to flash in your android-sdk\tools folder - I would rename it to something simple. (My example which I'll be using for this tut is: C:\AndroidSDK\toosl\ROM.zip)
Directions:
Reboot into the Amon_RA recovery
Wipe data/factory reset, cache, and dalvik via the recovery menu
Open up cmd/terminal on your computer
Navigate to your android-sdk\tools directory
Enter the following in cmd/terminal:
Code:
adb shell
mount data
*wait a second or two* You may or may not get the "/ #" line returned.
Despite what happens press "Ctrl+C" to break the command and get back to the standard AndroidSDK\tools> directory
Enter the following in cmd/terminal:
(replace "ROM.zip" with the name you're using)
Code:
adb push ./ROM.zip /data/
*this will take anywhere from 30sec to a min depending on the rom.zip size*
Then we do this in cmd:
Code:
adb shell
recovery --update_package=DATA:ROM.zip
Wait for it to finish flashing/updating
Reboot
ENJOY
Brief rundown of what we just did:
Wiped /data/ to free up space for the zip
Put our ROM.zip onto the /data/ partition since we don't have an SD Card to work with.
Told the recovery to flash from our /data/ partition instead of /sdcard/
Click to expand...
Click to collapse
Flash using kdz uploader. Search and read before flash. There are some tutorials on these forums.
u can also use fastboot
i am following this way but i get error "device not found". please help
Didn't Work For Me
I Want To Flash CM9 ICS On My LG P500. I Followed The Steps EXACTLY LIKE IN THE GUIDE! I Have Amon_RA Build:RA_thunderg-3.0.6-GNM and it said can't install because no such thing exist in that directory...? I DONT Have A SD CARD Also... Is ClockWorkMod Recovery Any Better?
Isn't better buy a new sd card than anticipade some unnecessary problems?
orbit09 said:
Isn't better buy a new sd card than anticipade some unnecessary problems?
Click to expand...
Click to collapse
Sometimes the problem isn't about buy an sdcard, but the phone doesn't recognize any sdcard
orbit09 said:
Isn't better buy a new sd card than anticipade some unnecessary problems?
Click to expand...
Click to collapse
My LG phone doesn't even have an ad card slot. Entire phone is riveted shut so I can't even change the battery if I needed to. So this advice is completely relevant and necessary.

this is a question about ADB

when you upload a file to a device ( adb push) where does it go? I cannot see any of my zip files in any subdirectory via recovery filemanager. So I can't install them obviously.
It should go where you tell adb where to put it... i.e. adb push whatever.zip /storage/emulated/0 should put it in your internal storage (not in a subfolder). With my old Archos tablet I used adb push update.zip /data/media/0 (which is a symlink to internal storage).

Categories

Resources