[Q] ADB Push and internal storage - Nexus 5 Q&A, Help & Troubleshooting

Hi all,
I accidentally deleted internal storage while I was trying to flash paranoid android on my Nexus 5. I then managed to push the ROM.zip back into my phone's internal storage using ADB Push. I installed the ROM but after the ROM installed, the zip file is no longer in the internal storage. What happened to the zip package? Where did it go?
Thanks for your help in advance.

/data/media

Sorry
The media dir is blank. I used the command as ADB push ROM.zip /sdcard

thenighthawk said:
Sorry
The media dir is blank. I used the command as ADB push ROM.zip /sdcard
Click to expand...
Click to collapse
Use
adb rom.zip /sdcard/
Sent from my Nexus 5 using XDA Free mobile app

thenighthawk said:
Sorry
The media dir is blank. I used the command as ADB push ROM.zip /sdcard
Click to expand...
Click to collapse
It isn't blank. You're just using a file explorer without permissions to view it.
If you used CWM recovery when you adb pushed, its as already state by @Aerowinder... . In /data/media because CWM recovery still mounts /sdcard as /data/media instead of what android 4.2+ mounts it as which is /data/media/0
Sent from my Nexus 5 using Tapatalk

rootSU said:
It isn't blank. You're just using a file explorer without permissions to view it.
If you used CWM recovery when you adb pushed, its as already state by @Aerowinder... . In /data/media because CWM recovery still mounts /sdcard as /data/media instead of what android 4.2+ mounts it as which is /data/media/0
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
I used TWRP v2.6.3
I will look in TWRP Mount settings if I can configure the permissions.

thenighthawk said:
I used TWRP v2.6.3
I will look in TWRP Mount settings if I can configure the permissions.
Click to expand...
Click to collapse
What permissions?
Sent from my Nexus 5 using Tapatalk

You're right. There are no permissions to configure in TWRP file explorer.
Should I switch to CWM?

Just boot into android and use a proper file explorer with root access.
Or you can use adb and Linux command line to
mount /data
ls /data/media
To see if the file is there.
Also I know with Philz recovery when you formatted /sdcard, the 0 folder from /data/media/0 was gone leaving only /data/media (until a commit was made to recreate 0) so its possible TWRP does the same making /sdcard temporarily mount to /data/media
Anyway not sure where it is if its not there
No don't change to CWM
Sent from my Nexus 5 using Tapatalk

Related

[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 ?

Can't mount SD

i've boot into bootloader and cilck clear storage
after doing this , my sdcard can't mount anymore
anyone can help?
leslieng509 said:
i've boot into bootloader and cilck clear storage
after doing this , my sdcard can't mount anymore
anyone can help?
Click to expand...
Click to collapse
anyone help?
If you have a custom recovery like twrp boot to recovery and go to mount and make sure sd card is ticked off
Sent from my Nocturnalized Beast
E.Cadro said:
If you have a custom recovery like twrp boot to recovery and go to mount and make sure sd card is ticked off
Sent from my Nocturnalized Beast
Click to expand...
Click to collapse
I tried to mount in the CWM recovery and it got error
TWRP is the solution
I'd Rather use TWRP, it's safer and Easier. It has SD Card Support, it's touch and with a Keyboard! you can rename your backups etc.
execute as admin and it should fastboot into TWRP...
forum.xda-developers.com/showthread.php?t=1677447
onexroot.com/one-x-roms/how-to-install-custom-rom-on-rooted-att-htc-one-xxl/
(add www at first, I couldn't add since I'm a new user.)
use a *.bat if you like;
leslieng509 said:
I tried to mount in the CWM recovery and it got error
Click to expand...
Click to collapse
leslieng509 said:
I tried to mount in the CWM recovery and it got error
Click to expand...
Click to collapse
Known issue, SD mount doesn't work on CWM for this device. CWM doesn't really support our device, and TWRP is recommended.
Does the phone boot normally, or can it be seen by ADB?
open terminal
then type
su (enter)
mkdir /sdcard/emmc (enter)
busybox mount -t vfat -o rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020 /dev/block/mmcblk1p1 /sdcard/emmc (enter)
done
Sent from my GT-P1000 using xda premium
redpoint73 said:
Known issue, SD mount doesn't work on CWM for this device. CWM doesn't really support our device, and TWRP is recommended.
Does the phone boot normally, or can it be seen by ADB?
Click to expand...
Click to collapse
everything works fine.but the phone cant find the sdcard and cant find by adb
asvantypography said:
open terminal
then type
su (enter)
mkdir /sdcard/emmc (enter)
busybox mount -t vfat -o rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020 /dev/block/mmcblk1p1 /sdcard/emmc (enter)
done
Sent from my GT-P1000 using xda premium
Click to expand...
Click to collapse
It didn't works...,.....
Help..
Really need help. ..
can you send me a SS?
Are you using TWRP? If so, you should be able to go into the menu and remount. If not, try using adb.
Devs recommend using TWRP because CWM is giving issues.I was in a similar situation with a wiped sd card, so what I did was to relock the boot loader, then get into fastboot, connect the device to my pc, and run the 1.85 AT&T RUU.
Sent from my HTC One X using Xparent SkyBlue Tapatalk 2
finally fixed by flashing ruu
thanks all
leslieng509 said:
It didn't works...,.....
Click to expand...
Click to collapse
asvantypography said:
open terminal
then type
su (enter)
mkdir /sdcard/emmc (enter)
busybox mount -t vfat -o rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020 /dev/block/mmcblk1p1 /sdcard/emmc (enter)
done
Sent from my GT-P1000 using xda premium
Click to expand...
Click to collapse
It worked for me. Thanks.
davidcole said:
It worked for me. Thanks.
Click to expand...
Click to collapse
dont just say thanks hit the button please
Sent from my GT-P1000 using xda app-developers app

Problem partition 48mb

Hello, I have a problem with my one s, after the 's-off I installed the latest TWRP.
Mistakenly I did wipe the sdcard, now when I mount it by only 48 mb ...... How do I restore \ recreate the partition to 12gb?
here http://forum.xda-developers.com/showpost.php?p=45621060&postcount=68
If this twrp won't mount as usb storage, you should try flash twrp S4 in One_S_All-In-One_Kit_v3.5
If you can't boot in Android to copy a rom, you make this in twrp and Mount (push mount and back many time until you'll see usb storage in My Computer)
In command line
adb push HTC_One_S_-_MaximusHD_10.0.0.zip /sdcard/
Click to expand...
Click to collapse
and wait
HTC_One_S_-_MaximusHD_10.0.0.zip or your rom.zip, something like that.
I solved it by installing the recovery of maximushd via sideload Thanks Anyway!

Whatsapp with Multirom

I'm currently using multirom to test android L and use Kitkat, I want to use the same Whatsapp account.
Is it possible if I have the same emei and android id on both roms and I use Helium to sync Chatlogs?
I don't use multirom so I'm not familiar with the data structure but in the 2nd ROM, can you not symlink from the original /data/data/WhatsAppDir to the new one?
Sent from my Nexus 5 using Tapatalk
Do you mean ln -s /data/data/Whatsappfolder /2Rom/data/data/whatsappfolder?
That's a symlink, yes.
Sent from my Nexus 5 using Tapatalk
When trying with download folder I got a error that this function is not implemented (I have root and busybox)
You're maybe doing it the wrong way round. Also I'm not sure if it will work because I don't know the folder structure.
Sent from my Nexus 5 using Tapatalk
dav20011 said:
When trying with download folder I got a error that this function is not implemented (I have root and busybox)
Click to expand...
Click to collapse
I have never linked a data folder on android, but if "ln -s ..." doesn't work, maybe you should try "busybox ln -s ..." ?
keiwop said:
I have never linked a data folder on android, but if "ln -s ..." doesn't work, maybe you should try "busybox ln -s ..." ?
Click to expand...
Click to collapse
Just realised he tried to link the download folder. He cannot link that as it's on /sdcard. You can only link ext4 partitions, not FAT, exFAT, NTFS etc /system and /data are the only linkable directories
rootSU said:
Just realised he tried to link the download folder. He cannot link that as it's on /sdcard. You can only link ext4 partitions, not FAT, exFAT, NTFS etc /system and /data are the only linkable directories
Click to expand...
Click to collapse
Isn't the Nexus 5 /sdcard formatted as ext4 since it's just a FUSE virtual file system of part of the /data partition?
raptir said:
Isn't the Nexus 5 /sdcard formatted as ext4 since it's just a FUSE virtual file system of part of the /data partition?
Click to expand...
Click to collapse
No. /data is ext4 (or f2fs for some of us). /sdcard itself is not ext4. FUSE doesn't support symlinking
You can test it yourself
Code:
su
mkdir /data/data/test
ln -s /data/data/test /sdcard/test
function not implemented
ln -s /data/data/test /data/media/0/test
successful
You can see in /data/media/0/test that symlinking is working. Add a file and it appears in /data/data/test. However, /sdcard/test as it is a symlink, not directory, is not visible or accessible
Is the root dir also use able for symlink? I got a read only error but I changed everything rwx
Edit: Use terminal emulator chmod and not es file explorer
Last question: does anybody know where multirom saves the roms?
i know im late...
But: multirom stores the roms at /data/media/0/multirom/roms
Were you successful using whatsapp on 2 roms?

Adb mount system data no root

Hi, is there a way I can mount /data and /system for either RW or R permissions on an unrooted device?
For Read on /data I want to be able to pull the wpa_supplicant.conf file out of an unrooted phone...
Sent from my VS986 using Tapatalk

Categories

Resources