Hi guys
my screen cracked today and I can't see anything, but I want to access the internal storage, can I do it through ADB command? how?
thanks
no one?
Sent from my Optimus 2X using Tapatalk
You need to be able to get the mobile into CWM recovery so adb will work. From the PC:
Code:
adb devices <- Your mobile should appear when this runs
adb shell
# mount /system
# mount /data
# mount /sdcard
Now you can copy the contents that you want with adb shell cp [source] [destination].
/sdcard is the internal memory of the phone
/sdcard/sd_external is the SD card attached to the phone (if any)
Hope this helps.
i have installed ABD and i have rebooted in recovery mode (CWM-based Recovery v5.0.2.3)
but when i type adb devices i got nothing
Any help ??
The phone has to be booted to use adb don't it with USB debugging ?
Sent from my GT-I9100 using xda premium
Hi,
I have a very similar problem, my screen is broken, though my phone still boots.
I have booted to the phone, ADB sees the device, and I can type ADB shell and get the # prompt.
I then type "mount /system" (without the quotation marks) but I get the following error message:
mount: can't read '/etc/fstab': No such file or directory
I am running Windows 7 64Bit. If anyone can advise me, that would be appreciated.
Thanks,
James
Hi, I have a smiliar need, my phone is stuck in some kind of bootmode where I cant access Android. I can however access it through adb, but when I run the mount /system command, i get:
Usage: mount -r -w -o options -t type device directory
same with /sdcard
there is no fstab file on the phone either.
How do I mount the internal storage? It's a OnePlus 3
Related
I've searched all over google and these forums and found lots instructions for different phones that don't seem to work for the vibrant.
I've been trying to modify some of the icons and such in the framework-res.apk. I'm trying to boot into recovery, mount the /system partition and push the modified file back.
Can anyone provide me with the adb command to mount the /system partition on the vibrant or a link to a thread that has the information.
Thanks...
you can't do it in stock recovery, you must be in clockworkmod recovery. IF you're in clockworkmod recovery, got the the mounts section and there you can mount /system, /data/, /sdcard and a few others with a graphical interface.
But incase you want it for some future reference:
Code:
su
mount -o rw,remount /dev/block/stl9 /system
and for this to work, su must be granted root permission (which it can't from stock recovery)
geoffcorey said:
you can't do it in stock recovery, you must be in clockworkmod recovery. IF you're in clockworkmod recovery, got the the mounts section and there you can mount /system, /data/, /sdcard and a few others with a graphical interface.
But incase you want it for some future reference:
Code:
su
mount -o rw,remount /dev/block/stl9 /system
and for this to work, su must be granted root permission (which it can't from stock recovery)
Click to expand...
Click to collapse
Thanks for the response. When I go into clockwork recovery I can't connect via adb? When I adb devices it doesn't list anything. When I'm in the stock recovery it lists my device.
Am I missing a step?
Thanks in advance for the help.
When i woke up this morning i had to hold powerbutton for, is it 10 seconds, to restart the phone. When it booted up again i got a message that said somethings wrong with the sdcard, and it asked if i wanted to format. Hell no! I got things there i really want to keep (yea stupid of me not to have it backed up!).
I went in to recovery and if i enter the "install zip from internal sdcard" i can see the card and all it's files.
If this would have happened to my external sdcard i'd just put it in my laptop doing a scandisc and all would be cool.
Now it isn't. So how do i solve this?
Sent with love from my GT-I9100 using Tapatalk
Have you tried to mount the internal SD to the PC over USB from from recovery mode, using the "mounts and storage" menu?
Considering you have CWM recovery running, if not flash a kernel with CWM and try it then.
HellcatDroid said:
Have you tried to mount the internal SD to the PC over USB from from recovery mode, using the "mounts and storage" menu?
Considering you have CWM recovery running, if not flash a kernel with CWM and try it then.
Click to expand...
Click to collapse
Hi and thanks for answer!
Yes i have CWM, just forgot to mention it.
I just tried to mount usb storage from cwm and both cards shows up, but only external can get accessed. Nothing(!) happends when i pick the scandisc option and clicks start. Just doesnt start.
Edit: still can SEE the files in cwm, just need to know how to copy them to a safe place so i can format the sd. :/
Sent from my GT-I9100 using Tapatalk
mrBira said:
Edit: still can SEE the files in cwm, just need to know how to copy them to a safe place so i can format the sd. :/
Click to expand...
Click to collapse
Hm, in that case you could copy them via an adb shell over to the external card.
adb is a command line tool that's part of the Android SDK.
Invoke a shell via
Code:
adb shell
when the phone is in CWM recovery and connected via USB.
Make sure internal and external SD are mounted (mounts and storage menu) and use the "cp" (=copy) command to copy the important files over, like
Code:
cp /sdcard/afile.dat /path/to/external/sd
(sorry don't remember where CWM mounts the external SD at the moment, IIRC it's something like /mnt/emmc, but I'm not sure right now)
The cp command can also use wildcards like "*" for all files in the given directory.
Hope that gets you closer to saving your data.
I know this may sound cliche.. Have you tried turning off your phone ans remove the sd card and re insert it back in... And boot back up?
Sent from my SHW-M250K using XDA App
HellcatDroid said:
Hm, in that case you could copy them via an adb shell over to the external card.
adb is a command line tool that's part of the Android SDK.
Invoke a shell via
Code:
adb shell
when the phone is in CWM recovery and connected via USB.
Make sure internal and external SD are mounted (mounts and storage menu) and use the "cp" (=copy) command to copy the important files over, like
Code:
cp /sdcard/afile.dat /path/to/external/sd
(sorry don't remember where CWM mounts the external SD at the moment, IIRC it's something like /mnt/emmc, but I'm not sure right now)
The cp command can also use wildcards like "*" for all files in the given directory.
Hope that gets you closer to saving your data.
Click to expand...
Click to collapse
Thanks! Will try that in a few hours when i get home. Is there any chance i could do a "cp /mnt/sdcard/" to copy the whole sd at once? But perhaps something could go wrong since the ext sd is mounted in /mnt/sdcard/external_sd
Bah i dont know.... Any command genious here who can help me further?
Sent from my GT-I9100 using Tapatalk
charon420 said:
I know this may sound cliche.. Have you tried turning off your phone ans remove the sd card and re insert it back in... And boot back up?
Sent from my SHW-M250K using XDA App
Click to expand...
Click to collapse
Yes i have tried that also, but thanks anyways!
Sent from my GT-I9100 using Tapatalk
mrBira said:
Is there any chance i could do a "cp /mnt/sdcard/" to copy the whole sd at once? But perhaps something could go wrong since the ext sd is mounted in /mnt/sdcard/external_sd
Click to expand...
Click to collapse
Yeah, with the external mounted in a path inside the internal - that will somehow get you some troubles.
Let's consider for a moment it's at /mnt/emmc, then you could do:
Code:
cp -r /mnt/sdcard/* /mnt/emmc/maybesomesubdirifyouwant/
If the external SD is mounted somewhere you can't use it (like inside the internal - but IIRC CWM doesn't do that) you can just unmount it with something like this:
Code:
umount /mnt/sdcard/external_sd
then mount it somewhere else with
Code:
mount /dev/block/mmcblk1p1 /mnt/ext_sd
.
If you want/need to create a subfolder in /mnt (or wherever) you have to remount / as read-write first:
Code:
mount -o rw,remount /
mkdir /mnt/ext_sd
HellcatDroid said:
Yeah, with the external mounted in a path inside the internal - that will somehow get you some troubles.
Let's consider for a moment it's at /mnt/emmc, then you could do:
Code:
cp -r /mnt/sdcard/* /mnt/emmc/maybesomesubdirifyouwant/
If the external SD is mounted somewhere you can't use it (like inside the internal - but IIRC CWM doesn't do that) you can just unmount it with something like this:
Code:
umount /mnt/sdcard/external_sd
then mount it somewhere else with
Code:
mount /dev/block/mmcblk1p1 /mnt/ext_sd
.
If you want/need to create a subfolder in /mnt (or wherever) you have to remount / as read-write first:
Code:
mount -o rw,remount /
mkdir /mnt/ext_sd
Click to expand...
Click to collapse
Cool, thanks! 4 hours til i get home cant wait to try this! Seems very logical and actually got some hope :-D
Sent from my GT-I9100 using Tapatalk
Solved it by formating. ;(
I've searched here, other device forums, as well as Google (not good at the Google skills though) and cannot find the answer to my issue.
I wanted to start with a blank formatted device and then install a clean recovery of a ROM from SDCARD. But my noob a** didn't read that TWRP and CWM both don't have the ability to mount the internal memory to the PC/MAC.
I either don't know what I'm doing (obvious answer) or don't know what setting to turn on/off to get the internal memory to mount to my Mac.
TF 201
TWRP 2.1.3
Bootloader Unlocked
Mac OS X Lion
Any help you guys can give me would be greatly appreciated!
--Chaz
lattera said:
Here's the blog entry. I hope this helps anyone who was in my same situation: http://0xfeedface.org/blog/lattera/2012-06-04/installing-cm9-encrypted-android-tablet
Sent from my Transformer Prime TF201 using XDA Premium HD app
Click to expand...
Click to collapse
The above xda post had the mount points needed to dab mount the microSD and then flash the ROM
Requirements
External microSD card
USB microSD card reader
ROM downloaded
adb installed properly
some shell knowledge
Click to expand...
Click to collapse
Steps (This is just how I did it. There are other ways once you've mounted the microSD)
Move your downloaded ROM to the microSD card via the reader plugged into your PC or Mac
Boot your device into the recovery of choice (I used TWRP since it was already installed before the mess up)
On your PC or Mac go into your terminal/cmd prompt
Type: adb shell
Type: cd /sdcard ....(this is the internal memory of the TF201)
Type: mkdir /microsd
Type: ls (you should see your newly created directory)
Type: mount /dev/block/mmcblk1p1 /sdcard/microsd (patience needed here)
Type: cd /sdcard/microsd
Type: ls (you should see the files you copied from your external card reader to the microSD card)
NOTE: I tried flashing in recovery from the external microSD but it failed so I had to copy the files to the /sdcard partition​
Type: cp /sdcard/microsd/name-of-rom.zip /sdcard/ (same command for other files for flash ie: Gapps)
Click to expand...
Click to collapse
After the copy I also performed a reboot back into recovery just to properly unmount/mount all the needed partitions for the flash.
Thanks
Again thanks to lattera for the mount point listed in his blog.
--Chaz
I tried the above but it says mounting /dev/block/mmcblk1p1 on /sdcard/microsd failed: No such file or Directory
karimooz said:
I tried the above but it says mounting /dev/block/mmcblk1p1 on /sdcard/microsd failed: No such file or Directory
Click to expand...
Click to collapse
It's better to use
Code:
mount /dev/block/mmcblk1p1 /data/media
to get into microsd then there is no error and you can flash without any risks of even harrder bricking.
i yesterday install a new rom to my rooted s3(intl) today i try to reboot another rom i was stuck in cwm recovery...i wanted to install another rom from my sd card. but it says cant find any file in sdcard.... i cant back restore cz i dnt have back up file in phone as i moved my back up to laptop...when i search abt thz i found out this hapn because my sd card having some issue.
You most probably have an unpartitioned sdcard, clockworkmod however assumes that is partitioned and wants to mount the first partition (/dev/block/mmcblk0p1).
You can fix this by repartitioning your sdcard so that it has a mountable fat-formatted first volume and then retry.
If you don't mind using the commandline, boot to recovery and connect via adb shell to it, then mount your sdcard manually: mount /dev/block/mmcblk0 /sdcard and retry.
Technical explanation:
cat /proc/partitions lists:
/dev/block/mmcblk0 is your FAT formatted volume (no more partitions at all)
should be:
/dev/block/mmcblk0 (whole device)
/dev/block/mmcblk0p1 (1st partition, FAT formatted)
/dev/block/mmcblk0p2 (sd-ext partition, only for those that use SD2ext and such)
im new to rooting and these stuffs plz explain what is adb shell and how i can mount my sd card....
btw i also tried factory reset it didnt wrk too....i dnt want any files i just want my phone back cz i badly need it....plz help me on this guys :crying: plzzz :crying:
In cwm under mounts and storage there should be the option to format sd card...
Adb is android debugging, it's used to connect to, pull/push files, get logs and more from your phone using a terminal or command prompt window.
http://developer.android.com/tools/help/adb.html this site shows the adb commands available including shell which is connecting to your phone via the terminal to allow you to enter commands.
Also maybe try mount USB storage through cwm and see if you can connect you phone to your pc and transfer the files needed.
If I helped you in some way, take a second to hit the Thanks button.
So I have a 32GB Samsung Evo in my phone, and I'm having terrible problems, andi don't k ow where to put this at.
At first, it kept switching to a read only state, and now its bringing up a EXOENT error.
It's formatted for VFAT, and want to switch to EXT4, maybe that'll stop the problems.
So, how do I format it for EXT4?
mke2fs -T ext4 /dev/block/yourblockdevice
do 'mount' and find which block device is the sdcard (normally mmcblk1)
you need to have root and execute those commands with adb shell or any shell emulator in android
nagalun said:
mke2fs -T ext4 /dev/block/yourblockdevice
do 'mount' and find which block device is the sdcard (normally mmcblk1)
you need to have root and execute those commands with adb shell or any shell emulator in android
Click to expand...
Click to collapse
It didn' worked for me, pls help