[HOWTO] SPL install with 1 SD Card and no SD Card reader - G1 Android Development

I posted this a while back but it was buried in another thread....
Steps 1-3 are from here
Step 4 is from here
IF YOU HAVE ONE SD CARD:
1. Upload new SPL on your microSD and rename to "update.zip"
2. Reboot your phone into recovery mode.
3. THIS IS IMPORTANT (perform a nandroid backup, of course) Apply the update, and once complete DON'T DO ANYTHING.. read step 4.
4. Use ADB to mount the SD card from recovery
Code:
adb shell
echo /dev/block/mmcblk0 > /sys/devices/platform/usb_mass_storage/lun0/file
##wait till your SDcard mounts in Windows and rename your OS update to update.zip##
reboot recovery
When the recovery screen comes up Alt+s and you should be good to go
I am just putting this in one place. The guides came from JesusFreke, haykuro, and matt_stang

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

failed to mount /sdcard (no such file or directory)

Motorola XOOM 3G. I am trying to upgrade to 3.1. Currently on 3.0.1
http://forum.xda-developers.com/showthread.php?t=1074609
I am trying to flash a ROM from my external micro sdcard. I getting an error E:\failed to mount /sdcard (no such file or directory) inside Android system recovery <3e> when I choose a package to install. Please help!!!
Reformat your sd card especially if it is partitioned
I did that many times. Even did it with another android phone. Also used other sdcard from my android phone.
I'm having this problem too.
Any ideas?
anothersaddream said:
Motorola XOOM 3G. I am trying to upgrade to 3.1. Currently on 3.0.1
http://forum.xda-developers.com/showthread.php?t=1074609
I am trying to flash a ROM from my external micro sdcard. I getting an error E:\failed to mount /sdcard (no such file or directory) inside Android system recovery <3e> when I choose a package to install. Please help!!!
Click to expand...
Click to collapse
Please take a look at this thread. I'm not trying to boost myself but keep you guys from having problems. I don't know if this is your problem (bad recovery from CWM) but it's been happening to a lot of smart people.
http://forum.xda-developers.com/showthread.php?t=1129397
"E:failed to mount /sdcard (No such file or directory)"
I have been trying to flash the 3.2.2 ROM on my Verizon branded 4g+WiFi Xoom and I am receiving the same message when I choose apply zip from USB:
E:failed to mount /sdcard (No such file or directory)
I have tried three different microSD cards, 512MB, 16GB class 4, and 32GB class10. I get the same message no matter what card is tried. It does not seem to be able to see its own internal storage or the external microSD card.
I was following the steps and another odd thing is that I do not have the options to perform and Nandroid backup. I have the purchased version of ROM Manager but I need root access to be able to install ClockworkMod... Since my tablet is already at 3.2.2 all I really needed was root anyway so I can run Cisco Anyconnect VPN that required root.
Any tips on getting the Xoom to see or mount the SD card, either one, would be appreciated.
+++++++++++++++++++++++++++++++++++++++++++++++++++++
Step 1: Getting Ready to Flash Rooted Honeycomb in Xoom
1. Download the ROM Android-HC-3.2.2-Stock+Rooted-1.1-SOLARNZ.zip and save the file on your desktop.
2. Once done, connect your tab to the computer, mount SD Card or SD Ext and copy the downloaded Zip file to SD Card root. .
Step 2: Put Motorola Xoom in Recovery Mode
First you need to reboot Motorola Xoom in Recovery Mode, after that you can perform a factory reset on Xoom. Follow the steps below:
1. Turn your device on, then switch it back on
2. On startup when Motorola logo appears, press and hold Volume Down button
3. When Android recovery text appears, press the Volume Up button. Your device will now enter in recovery mode.
Note: In recovery mode, you can navigate up and down using Volume Up and Volume Down keys while Power button can be used to select an option.
Step 3: Take Nandroid Backup
1. Once in recovery mode, press & hold Power button.
2. While holding the Power button, press & release the Volume Up button.
3. Navigate to “backup and restore” and select it.
4. Select “backup” to perform your data backup.
Step 4: Factory Reset Motorola Xoom
1. Once Nandroid backup is complete, navigate to Wipe data / factory reset, then press Power button to select it.
2. It will ask for confirmation, select Yes, delete all user data option to factory reset Xoom.
Step 5: Flash Rooted Honeycomb 3.2.2 ROM
1. Select Flash Zip from SD Card
2. Then select choose zip from sd card
3. Select the zip file that you put onto the root of SD card.
4. Wait for process to complete.
And there you go! You are now on the latest Android Honeycomb version and are all set to explore what’s new. In case you are facing any issues or just want to thank the ROM chef. Do let us know in the comments section just in case if you face any issues while updating your device in the comments section as just in case if you face any issues then we will try to solve them at the earliest.
I suspect that you updated your recovery via ROM Manager to a version that doesn't recognize the external sdcard. You need to flash the solarnz R4C cwm
recovery v 3.2.0.0. Rom Manager is a pain.
Also please don't flash that 3.2.2 ROM. It will break your connectivity. If you have 4G, you can flash the Odachi kernel.
Had a problem similar to yours. Make sure you have your sdcard mounted completely in it's slot. Make sure you turn the xoom off when mounting.
4g xoom root failed
ok i attempted the 5 steps but i dont get an option for a backup nor an option to install zip file, the closest is 'apply update from usb drive' then i get the E:/failed to mount /sdcard (no such file or directory). card is mounted correctly. i bypassed the backup and just did the rest, same issue. should i keep it plugged into pc while doing all this, i plug in to copy zip file then unplug it.
Assuming that you have the correct recovery version installed (see my previous post), you should keep the sdcard mounted in your Xoom. Make sure it is actually mounted. A reboot with the card seated in its slot will usually do it.
You could at least read over this guide http://forum.xda-developers.com/showthread.php?t=1249798
and check the steps listed against what you have done. That often helps.
exactly what i needed detailed instructions for dummies. hopefully i will be succesful this time, taking a break for a day this stuff is for programmers, lol.
failed to mount /sdcard (no such file or directory) galaxy y duos
I am trying to flash a ROM from my external micro sdcard. I getting an error E:\ failed to mount /sdcard (no such file or directory)
please help
If somebody can help me with more details how to do tnx.
DeanBuxton said:
I have been trying to flash the 3.2.2 ROM on my Verizon branded 4g+WiFi Xoom and I am receiving the same message when I choose apply zip from USB:
E:failed to mount /sdcard (No such file or directory)
I encountered the same issue.
It appears the XOOM does not like SD Cards that were formatted using Windows
(or perhaps Quick Formatted using Windows).
Using a 4GB FlashDrive formatted as Fat32 using Linux (i.e. Linux Mint 17.3 Cinnamon 64 bit boot CD)
resolved the issue.
Click to expand...
Click to collapse

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.

[Q] My LG Optimus V is Stuck in Clockwork Recovery

First of all, my Lg Optimus V is rooted with the Stock Virgin Mobile Rom.
Earlier I had done a factory reset on my lg optimus v. I started then it went to the clockwork recovery screen. I did not have a backup because I just wanted it to go to the stock rom like when you first get the phone. I have tried installing the aosp rom and the stock virgin mobile rom. After I have installed the rom, i rebooted the phone. It turned on then went back the the clockwork recovery screen.
I later looked around the internet looking for solutions but could not find anything. I noticed while I was looking that it said not to factory reset a rooted phone. That was my bad. I am hoping that there is a solution to this problem.
Thanks for the help!
i hope this will help you a bit
Nandroid Instructions:
1) Extract the "BCDS-20110203-0357" file into the "nandroid" folder, under the "mem=477M" subfolder.
1a) For Clockwork Recovery, place the "BCDS-20110203-0357" file in /sdcard/clockworkmod/backup
2) Boot into recovery
3) Go into the "Backup/Restore" menu, and select "Nand Restore"
4) Allow it to restore
5) Reboot! System should be stock
6) Go below and flash stock recovery
Recovery Instructions:
1) Download flash_image and the stock recovery and nandroid back up
2) Extract stock recovery.img and flash_image to the root of your sdcard
3) Open up an adb shell, or terminal emulator on your phone
4) Enter the following codes:
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock5 /system
cat /sdcard/flash_image > /system/bin/flash_image
chmod 755 /system/bin/flash_image
mount -o remount,ro -t yaffs2 /dev/block/mtdblock5
flash_image recovery /sdcard/recovery.img
reboot recovery
Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Thanks ✟
Moving to Q&A
Nondroid Instructions
Ok, I went by those instructions, and When I the backup it said the the android_secure was not found and the sd-ext.img was not found. Then I rebooted the phone and I was still at the clockwork recovery screen.
ok then try this
If you're reading this then you probably did a factory reset from the privacy menu, so now you want to fix your phone. Well if you reset from the privacy menu most likely you will be booted into the recovery menu (you need to be able to get into this menu to fix your phone), but you cannot escape it even after flashing a new rom. So in order to fix your phone you need to do the following:
Go her forums.androidcentral.com/lg-optimus-s-rooting-roms-hacks/59359-custom-recovery-xionia-clockwork-cwma-v1-2518-6-a.html (Xionia_cwma_recovery.zip_v1.2518.6) and put that file onto the root of your sd card. You can either plug your phone into a PC and use the recovery menu option in the mounts and storage option (select mount USB storage), or to access your phone's SD card from the computer, power off by pulling the battery, then take out the sd card and put it into your computer.
After transfer: select unmount USB storage if using the option in the recovery, or put uSD card back into the phone and hold home + volume down, then the power button (all at the same time until you see the LG logo)
Then you go into the recovery's main menu and choose install zip from sd card, then select zip from sd card. After flashing the Xionia recovery.zip hit the back button to get back to the main menu. Go to the Advanced section and select 'reboot recovery" You should now boot into xionia recovery. Go to the Advanced section and select "fix recovery boot loop". Go back to the main menu flash ROM (and Gapps if needed). Reboot into your new ROM and tada you are unbricked .
To get back to stock ROM and everything go here: forum.androidcentral.com/virgin-mobile-optimus-v/58106-how-return-your-phone-stock-mostly.html (stock rom)
The download is an .img file. How am I supposed to flash it. I tried putting the .img file in a zip folder and nothing. It just said aborted.
Eiscremestulle said:
If you're reading this then you probably did a factory reset from the privacy menu, so now you want to fix your phone. Well if you reset from the privacy menu most likely you will be booted into the recovery menu (you need to be able to get into this menu to fix your phone), but you cannot escape it even after flashing a new rom. So in order to fix your phone you need to do the following:
Go her forums.androidcentral.com/lg-optimus-s-rooting-roms-hacks/59359-custom-recovery-xionia-clockwork-cwma-v1-2518-6-a.html (Xionia_cwma_recovery.zip_v1.2518.6) and put that file onto the root of your sd card. You can either plug your phone into a PC and use the recovery menu option in the mounts and storage option (select mount USB storage), or to access your phone's SD card from the computer, power off by pulling the battery, then take out the sd card and put it into your computer.
After transfer: select unmount USB storage if using the option in the recovery, or put uSD card back into the phone and hold home + volume down, then the power button (all at the same time until you see the LG logo)
Then you go into the recovery's main menu and choose install zip from sd card, then select zip from sd card. After flashing the Xionia recovery.zip hit the back button to get back to the main menu. Go to the Advanced section and select 'reboot recovery" You should now boot into xionia recovery. Go to the Advanced section and select "fix recovery boot loop". Go back to the main menu flash ROM (and Gapps if needed). Reboot into your new ROM and tada you are unbricked .
To get back to stock ROM and everything go here: forum.androidcentral.com/virgin-mobile-optimus-v/58106-how-return-your-phone-stock-mostly.html (stock rom)
Click to expand...
Click to collapse
There is no zip file that I can download for Xionia recovery. There is only a .img file.
som1e said:
There is no zip file that I can download for Xionia recovery. There is only a .img file.
Click to expand...
Click to collapse
wondering the same as well. i even tried renaming to zip but the install says bad
Same I am just going to wait and see what shows up. Hopefully someone will answer!

Categories

Resources