[Q] Unable to use adb with android SDK under windows (Mount SD Card in Recovery) - Android Software/Hacking General [Developers Only]

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.

Related

Possible to copy .zip file to SD Card's root in Fastboot

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/

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

RESOLVED: Issues with rooting CDMA Hero

For those of you who are having problems with the following codes:
Code 3: adb push unrevoked /sdcard
Code 4: adb push recovery.img /sdcard
Code 5: adb push boot-patched.zip /sdcard
Code 7: sh /sdcard/unrevoked
and getting a message: "failed to copy 'unrevoked' to '/sdcard/unrevoked': Permission denied",
or
"Can't open /sdcard/unrevoked",
You may need to format your SD Card. I had to re-mount my SD card and enable disk use. Then I formatted it via windows. Then unmounted it and tried again.
SUCCESS!!! Finally!!! Took me 2 full days at work to figure this out. Not sure if anyone has really addressed this issue or not.

[Q] help unbrick b70+ tf101

i have a major and awkward problem , my tf101 is bricked after installing Clemsyn-Blades3.2OCver22a but the weirdest thing is my micro sd card does not show up, only the internal storage. so because of that i cant infect nothing into cmw via micro sd
also .. cold boot freezes
Have you tried reformatting your card in a computer for FAT32?
Also, is your B7O SBKv1 or SBKv2? If it is SBKv1 you can use NVFlash if you need to.
i tried nvflash does not work so im guessing im sbv2.
i formatted micro sd(fat 32)
still only internal memory shows up in cwm .
dnt boot, stuck on asus symbol, tried wiping data and cold booting still , dnt work.
tried everything to my knowledge
kingx00 said:
i tried nvflash does not work so im guessing im sbv2.
i formatted micro sd(fat 32)
still only internal memory shows up in cwm .
dnt boot, stuck on asus symbol, tried wiping data and cold booting still , dnt work.
tried everything to my knowledge
Click to expand...
Click to collapse
Have you tried a different SD card?
kokopopz said:
Have you tried a different SD card?
Click to expand...
Click to collapse
i tried another sd card, but with no unveil it still does not work.
idk if this helps but im using clockwork mod v5.5.04
kingx00 said:
i tried another sd card, but with no unveil it still does not work.
idk if this helps but im using clockwork mod v5.5.04
Click to expand...
Click to collapse
I would check the CWM 5.5.0.4 thread to see if others have the same issue.
kingx00 said:
i tried another sd card, but with no unveil it still does not work.
idk if this helps but im using clockwork mod v5.5.04
Click to expand...
Click to collapse
frederuco said:
I would check the CWM 5.5.0.4 thread to see if others have the same issue.
Click to expand...
Click to collapse
Yeah take a look here
http://forum.xda-developers.com/showthread.php?t=1530337
have you tried to mount manually your sdcard? wich version of cwm you have? the CWM 5.5.0.4 only shows internal sd, but you can manually mount microsd
You will needn adb ready to use in your computer.
adb shell will give you a shell where:
enter sdcard
Code:
cd /sdcard
create a folder to mount your microsd
Code:
mkdir microsd
mount your microsd
Code:
mount /dev/block/mmcblk1p1 /sdcard/microsd
and now navigate trough sdcard to that folder
EDIT: i just had the same problem and i fixed like that,
shaola said:
have you tried to mount manually your sdcard? wich version of cwm you have? the CWM 5.5.0.4 only shows internal sd, but you can manually mount microsd
You will needn adb ready to use in your computer.
adb shell will give you a shell where:
enter sdcard
Code:
cd /sdcard
create a folder to mount your microsd
Code:
mkdir microsd
mount your microsd
Code:
mount /dev/block/mmcblk1p1 /sdcard/microsd
and now navigate trough sdcard to that folder
EDIT: i just had the same problem and i fixed like that,
Click to expand...
Click to collapse
ill give it a try
shaola said:
have you tried to mount manually your sdcard? wich version of cwm you have? the CWM 5.5.0.4 only shows internal sd, but you can manually mount microsd
You will needn adb ready to use in your computer.
adb shell will give you a shell where:
enter sdcard
Code:
cd /sdcard
create a folder to mount your microsd
Code:
mkdir microsd
mount your microsd
Code:
mount /dev/block/mmcblk1p1 /sdcard/microsd
and now navigate trough sdcard to that folder
EDIT: i just had the same problem and i fixed like that,
Click to expand...
Click to collapse
now i have a microsd folder among internal folders
when i chose to open it keeps saying files not found . i already put stock rom on the microsd
kingx00 said:
now i have a microsd folder among internal folders
when i chose to open it keeps saying files not found . i already put stock rom on the microsd
Click to expand...
Click to collapse
ok, that's probably because /sdcard is a symobolinc link to /media/data, it did happen to me also
so go to root directory and delete sdcard with rm (of course you will have to unmount everything mounted over there is there is something)
now create a folder named /sdcard and mount your microsd over sdcard
shaola said:
ok, that's probably because /sdcard is a symobolinc link to /media/data, it did happen to me also
so go to root directory and delete sdcard with rm (of course you will have to unmount everything mounted over there is there is something)
now create a folder named /sdcard and mount your microsd over sdcard
Click to expand...
Click to collapse
my adb shell skills are lacking can you please tell me how i do this
thanks in advance
kingx00 said:
my adb shell skills are lacking can you please tell me how i do this
thanks in advance
Click to expand...
Click to collapse
Code:
rm sdcard
mkdir sdcard
mount /dev/mmcblk0p7 sdcard
cd sdcard
mkdir microsd
mount /dev/mmcblk1p1 microsd
shaola said:
Code:
rm sdcard
mkdir sdcard
mount /dev/mmcblk0p7 sdcard
cd sdcard
mkdir microsd
mount /dev/mmcblk1p1 microsd
Click to expand...
Click to collapse
tried it several times and still not able to get nothing into the microsd, i can see the file but when clicked still cant adb push the stock rom
kingx00 said:
tried it several times and still not able to get nothing into the microsd, i can see the file but when clicked still cant adb push the stock rom
Click to expand...
Click to collapse
adb push? what are you talking about? i think you are messing diferent things here
shaola said:
adb push? what are you talking about? i think you are messing diferent things here
Click to expand...
Click to collapse
i did what you told me, but still unable to enter the microsd, cwm keeps informing me no files are found. ive tried the code you given me . it created the microsd file , and i unmounted and mounted it back, and still nothing appears inside the file
kingx00 said:
i did what you told me, but still unable to enter the microsd, cwm keeps informing me no files are found. ive tried the code you given me . it created the microsd file , and i unmounted and mounted it back, and still nothing appears inside the file
Click to expand...
Click to collapse
Take the microSD card out of your TF. Use USB adaptor or what ever and transfer all files you need to it.
Put it back in the TF and do what shaola stated about mounting your sd card. See if that work.
I just think there's a mis communication of what he's trying to tell you and what you're actually doing.
shaola said:
have you tried to mount manually your sdcard? wich version of cwm you have? the CWM 5.5.0.4 only shows internal sd, but you can manually mount microsd
You will needn adb ready to use in your computer.
adb shell will give you a shell where:
enter sdcard
Code:
cd /sdcard
create a folder to mount your microsd
Code:
mkdir microsd
mount your microsd
Code:
mount /dev/block/mmcblk1p1 /sdcard/microsd
and now navigate trough sdcard to that folder
EDIT: i just had the same problem and i fixed like that,
Click to expand...
Click to collapse
big thx this has worked for me
i'm happy that my transformer is not bricked
So I have the issue where my CWM version is boot looping. I know how to fix it by flashing the CWM roach fix but my SD card directory is not visible either. I unfortunately can not get my transformer driver to install. The driver that is provided from the asus website isn't working. That and the driver should be showing "APX" i believe and it's showing "Transformer".
Basically, I guess I'm asking could this be caused due to me using windows xp? If i use windows 7 would I be able to get the driver installed? Would linux be a work around as well? Can anyone any thought of the situation that or maybe a work around?
I am stuck in the same boat as the original poster. The problem I have is that Win7 pro x64 will not recognize my b70 tf101 in cwm recovery. when i am in device manager it is listed in "other devices" and the device name shows up as "transformer"
any way you could link me the proper driver ?

[Q] [RESOLVED!] Help! Recovery Can't Mount SD Card

Can't mount SD card in recovery. See http://bit.ly/LgBTUN.
Tried fix permissions, mount sdcard in recovery says Error mounting /sdcard, other stuff too. Still no go.
Found forum posts with same problem in several HTC phones but don't think the fix works for TF101.
I'd like to put the Megatron ROM on my TF101 though I'd be happy just to get ASUS upgrades. They keep failing - I think from my Dvorak keyboard mod (see device config below).
Any ideas?
TF101. Stock, rooted rom with modded key mapping for Dvorak keyboard when docked. Android Version 3.2.1. Kernel 2.6.36.3 [email protected] #1, Build Number HTK75.US_epad.8.6.5.19-20111107.
Can you still boot Android or did you already wipe?
I also see ROM manager, which is usually bad news for the TF...
That's a rather old recovery, if you can get ADB access you can try my PERI tool to reflash a newer recovery that should mount properly, and then flash a ROM with that.
Good luck!
First, thanks for the help.
I tried your tool. Besides having entertaining comments, it just left me frustrated.
You can see some screenshots at https://docs.google.com/open?id=0B46V3MQdpAUOek1GRGlvS0FKTms
I'm wondering if the problem is that I can't mount / as RW. Perhaps I'm just not getting the right args to adb's mount command. I think I should be able to remount / RW as I can run "adb shell" and then "su" to get the "#" prompt.
I do think part of the problem is that /sdcard is not actually my sdcard. It is a symlink to /mnt/sdcard which is where the physical sdcard is mounted.
I tried to modify init.ventana.rc. I think that is the right file - I just found it by poking my head around. This is what I wanted to change:
Code:
on early-init
mount debugfs debugfs /sys/kernel/debug
export EXTERNAL_STORAGE /mnt/sdcard
mkdir /mnt/sdcard 0000 system system
# for backwards compatibility
symlink /mnt/sdcard /sdcard
But I can't mount / RW so I can't change it. I tried this:
Code:
$ adb root
adbd cannot run as root in production builds
$
I'm definitely rooted. I can su to root in ADB. I also have a SuperUser that seems to be working.
Update: I can mount / RW via ES File Explorer. I can then adb shell, su, and then update files in /. I pushed my updated init.ventana.rc but when I rebooted it reverted to the original.
I'm terribly frustrated.
Any ideas? I seem to have a totally useless CWM. I can't even put a file on /sdcard/update.zip because the sdcard isn't booted when I'm in recover.
Once I get / mounted RW, can I just copy a working CWM into some system directory?
I've spent half my day messing around with this thing. I'm very comfortable with the command line and would happily do a manual install if someone could tell me how to do that.
I tried the adb equivalent of:
Code:
run_program("/sbin/busybox", "dd", "if=/tmp/recoveryblob", "of=/dev/block/mmcblk0p4");
using the 5.5 recoveryblob but it didn't seem to do anything. If I just knew the magic commands, I'd be happy to do them.
Hi there.
I just released the beta version of my EasyFlasher tool.
Try using that, it'll flash Rogue Recovery for you which should successfully mount the sdcard.
You may need to use that (It's Nvflash based) It won't work on a Tf101G or Sl101 though. Give it a shot.
PERI didn't work because your ADB drivers don't work.
Thanks for your help. I finally got a working CWM by following this thread. I then flashed the CWMs you pointed to.
Problem solved.
Though I can always f-up my upgrade to CM9 and be back here for help in a few hours.
Too Funny
I just posted my thanks reply and then noticed that you two pointed me to the solution that I found.
I appreciate your help and timeliness (and your nvflash program too).
Neil
Got my TF101 BK70 SBK1 in same situation and this thread helped me a lot.
Just put my tf into apx mode (hold up + power for 7 seconds, screen stays black but device manager can see APX device connected, then use Universal Naked drivers to fix it.
After that, just open EasyFlasher and choose which recovery you want.
I also had the same problem, I didn't see this thread so I used this workaround:
if you have the keyboard dock you can mount an external usb drive as the sdcard (under the mount options) and do all the backups/flashing from there
Sent from my Transformer using xda app-developers app
There are two sd cards, the internal sd card which is the phone's built-in USB storage, and external sd card which is the removable sd card that is physically located at the back of the phone and is sealed by your phone's battery.
so technically speaking you should be choosing the "choose zip from external sd card" based on how you described storing your rom.
I'm not sure as to why your sdcard is unmounted, but you can remount it back using CWM. There should be a "mounts and storage" section in CWM menu, where you can remount the internal USB storage by selecting "mount /sdcard".
If you want to recover the data in your Android phone, just go to http://android-recovery.net/.
Need help with this can't mount /sd card /
Here is what I am getting (pics). This is on the Tf101 with CWM via 1 click root method

Categories

Resources