"cannot stat 'rom.zip': No such file or directory" - Galaxy S 5 Q&A, Help & Troubleshooting

So I have to push my rom from my pc to my phone since I did not do this and now I have no rom on my phone. I try to push it using "adb push rom.zip /sdcard/" and it does not work. Can someone please help me? I really want my phone to work again :crying:

kevinm614 said:
So I have to push my rom from my pc to my phone since I did not do this and now I have no rom on my phone. I try to push it using "adb push rom.zip /sdcard/" and it does not work. Can someone please help me? I really want my phone to work again :crying:
Click to expand...
Click to collapse
Give me a few details about your device. What model number? Rooted? Custom Recovery installed? If you have a custom Recovery installed look below?
Do you have TWRP or Philz Recovery installed? If yes, can you boot to recovery using the correct button sequence?If yes, while in recovery, connect to your PC and let the drivers install. Click on the Windows Start button and select Computer. Do you see your Galaxy S5 listed? If yes, double click on your device and see if Internal Storage is listed. If so, you can copy and paste your ROM Zip to internal storage and then flash it in recovery.
Let me know if this helps your situation or if we need to go a different route.
Sent from my Nexus 6 using XDA-Developers mobile app

fast69mopar said:
Give me a few details about your device. What model number? Rooted? Custom Recovery installed? If you have a custom Recovery installed look below?
Do you have TWRP or Philz Recovery installed? If yes, can you boot to recovery using the correct button sequence?If yes, while in recovery, connect to your PC and let the drivers install. Click on the Windows Start button and select Computer. Do you see your Galaxy S5 listed? If yes, double click on your device and see if Internal Storage is listed. If so, you can copy and paste your ROM Zip to internal storage and then flash it in recovery.
Let me know if this helps your situation or if we need to go a different route.
Sent from my Nexus 6 using XDA-Developers mobile app
Click to expand...
Click to collapse
Thank you for replying
It's a G900P, right now it's not rooted because I wiped everything off my phone, including my old ROM.
My custom recovery is Philz, and yes I can get to recovery mode. However, when I connect my phone to my PC, I don't see my phone listed.

kevinm614 said:
Thank you for replying
It's a G900P, right now it's not rooted because I wiped everything off my phone, including my old ROM.
My custom recovery is Philz, and yes I can get to recovery mode. However, when I connect my phone to my PC, I don't see my phone listed.
Click to expand...
Click to collapse
While booted into recovery, have you tried using a different USB port on your PC? Have you tried a different USB cable as well? If this doesn't change anything, look below:
Do you have a micro SD card that you can stick into your PC and copy the ROM zip to it? If so, copy the ROM to the micro SD card and stick it into your S5 and flash the ROM zip using Philz. That's the way I do it.

fast69mopar said:
While booted into recovery, have you tried using a different USB port on your PC? Have you tried a different USB cable as well? If this doesn't change anything, look below:
Do you have a micro SD card that you can stick into your PC and copy the ROM zip to it? If so, copy the ROM to the micro SD card and stick it into your S5 and flash the ROM zip using Philz. That's the way I do it.
Click to expand...
Click to collapse
I have tried using different USB ports and cables, but I still have the same problem. Sadly, I don't have a microSD card.

If you can't get anything else to work then a microSD card will be the best way. Even if you have to borrow a card you can get the job done.
Just a quick question. Do you have the Samsung USB drivers installed to your PC?
Sent from my Nexus 6 using XDA-Developers mobile app

fast69mopar said:
If you can't get anything else to work then a microSD card will be the best way. Even if you have to borrow a card you can get the job done.
Just a quick question. Do you have the Samsung USB drivers installed to your PC?
Sent from my Nexus 6 using XDA-Developers mobile app
Click to expand...
Click to collapse
Yep, I have them installed, but my phone still doesn't get recognized.

fast69mopar said:
If you can't get anything else to work then a microSD card will be the best way. Even if you have to borrow a card you can get the job done.
Just a quick question. Do you have the Samsung USB drivers installed to your PC?
Sent from my Nexus 6 using XDA-Developers mobile app
Click to expand...
Click to collapse
Is there any other way I can do this?

kevinm614 said:
Yep, I have them installed, but my phone still doesn't get recognized.
Click to expand...
Click to collapse
Okay. I think I may have overlooked a step earlier in your ADB error. It looks like your trying to push your ROM.zip from your home directory instead of pushing the ROM zip from the files actual location. What folder is the ROM zip saved in? Is it in the "DOWNLOADS" folder? If so, then you ADB command would be:
adb push ~/Downloads/rom.zip /sdcard/
Let me know if changing your ADB command works and pushes the ROM.zip to your internal storage.

fast69mopar said:
Okay. I think I may have overlooked a step earlier in your ADB error. It looks like your trying to push your ROM.zip from your home directory instead of pushing the ROM zip from the files actual location. What folder is the ROM zip saved in? Is it in the "DOWNLOADS" folder? If so, then you ADB command would be:
adb push ~/Downloads/rom.zip /sdcard/
Let me know if changing your ADB command works and pushes the ROM.zip to your internal storage.
Click to expand...
Click to collapse
I still get the same error, cannot stat '~/Downloads/rom.zip': No such file or directory.

Okay. Here's what we need to do. I missed this part too and that's my bad. Boot to recovery and select "Mounts and Storage". Plug in the USB cable to the device. Now, make sure your device shows UNMOUNT SDCARD and UNMOUNT SYSTEM. You want your SDCARD and SYSTEM to be mounted so you can push the file.
Now that you are connected, open your command prompt and run your ADB push commands and tell me what happens. Does it transfer your file successfully?
Sent from my Nexus 6 using XDA-Developers mobile app

fast69mopar said:
Okay. Here's what we need to do. I missed this part too and that's my bad. Boot to recovery and select "Mounts and Storage". Plug in the USB cable to the device. Now, make sure your device shows UNMOUNT SDCARD and UNMOUNT SYSTEM. You want your SDCARD and SYSTEM to be mounted so you can push the file.
Now that you are connected, open your command prompt and run your ADB push commands and tell me what happens. Does it transfer your file successfully?
Sent from my Nexus 6 using XDA-Developers mobile app
Click to expand...
Click to collapse
There is no mount/unmount sdcard option, but there is a "format /data and /data/media (/sdcard)" option. I can find the umount /system option though.

kevinm614 said:
There is no mount/unmount sdcard option, but there is a "format /data and /data/media (/sdcard)" option. I can find the umount /system option though.
Click to expand...
Click to collapse
Well, that's weird because I am looking at the Philz menu right now as we speak. I selected "Mounts and Storage" from the main screen. Now, while looking down the list in "Mounts and Storage" I see this:
mount /efs
unmount /cache
mount /system
unmount /data
mount /preload
mount /sdcard
mount /external_sd
mount /ext-sd
format /cache
format /system
format /data
format /preload
format /sdcard
format /external _sd
format /ext-sd
format /data and /data/media (/sdcard)
mount USB storage
*****Go Back*****
Does your Philz not look like this in the Mounts and Storage menu? If it does, then you want to see these two below:
Unmount /system
Unmount /sdcard
Sent from my Nexus 6 using XDA-Developers mobile app
---------- Post added at 04:29 AM ---------- Previous post was at 04:25 AM ----------
fast69mopar said:
Well, that's weird because I am looking at the Philz menu right now as we speak. I selected "Mounts and Storage" from the main screen. Now, while looking down the list in "Mounts and Storage" I see this:
mount /efs
unmount /cache
mount /system
unmount /data
mount /preload
mount /sdcard
mount /external_sd
mount /ext-sd
format /cache
format /system
format /data
format /preload
format /sdcard
format /external _sd
format /ext-sd
format /data and /data/media (/sdcard)
mount USB storage
*****Go Back*****
Does your Philz not look like this in the Mounts and Storage menu? If it does, then you want to see these two below:
Unmount /system
Unmount /sdcard
Sent from my Nexus 6 using XDA-Developers mobile app
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my Nexus 6 using XDA-Developers mobile app
---------- Post added at 04:30 AM ---------- Previous post was at 04:29 AM ----------
fast69mopar said:
Well, that's weird because I am looking at the Philz menu right now as we speak. I selected "Mounts and Storage" from the main screen. Now, while looking down the list in "Mounts and Storage" I see this:
mount /efs
unmount /cache
mount /system
unmount /data
mount /preload
mount /sdcard
mount /external_sd
mount /ext-sd
format /cache
format /system
format /data
format /preload
format /sdcard
format /external _sd
format /ext-sd
format /data and /data/media (/sdcard)
mount USB storage
*****Go Back*****
Does your Philz not look like this in the Mounts and Storage menu? If it does, then you want to see these two below:
Unmount /system
Unmount /sdcard
Sent from my Nexus 6 using XDA-Developers mobile app
---------- Post added at 04:29 AM ---------- Previous post was at 04:25 AM ----------
Sent from my Nexus 6 using XDA-Developers mobile app
Click to expand...
Click to collapse
This is just a quick pic from a Google search I found and it matches my Philz menu.
Sent from my Nexus 6 using XDA-Developers mobile app

fast69mopar said:
Well, that's weird because I am looking at the Philz menu right now as we speak. I selected "Mounts and Storage" from the main screen. Now, while looking down the list in "Mounts and Storage" I see this:
mount /efs
unmount /cache
mount /system
unmount /data
mount /preload
mount /sdcard
mount /external_sd
mount /ext-sd
format /cache
format /system
format /data
format /preload
format /sdcard
format /external _sd
format /ext-sd
format /data and /data/media (/sdcard)
mount USB storage
*****Go Back*****
Does your Philz not look like this in the Mounts and Storage menu? If it does, then you want to see these two below:
Unmount /system
Unmount /sdcard
Sent from my Nexus 6 using XDA-Developers mobile app
---------- Post added at 04:29 AM ---------- Previous post was at 04:25 AM ----------
Sent from my Nexus 6 using XDA-Developers mobile app
---------- Post added at 04:30 AM ---------- Previous post was at 04:29 AM ----------
This is just a quick pic from a Google search I found and it matches my Philz menu.
Sent from my Nexus 6 using XDA-Developers mobile app
Click to expand...
Click to collapse
All I see are
unmount /system
mount /data
unmount /cache
mount /firmware
mount /firmware-modem
format /boot
format/system
format /data
format /cache
format /firmware
format /firmware-modem
format /data and /data/media (/sdcard)
mount USB storage

kevinm614 said:
All I see are
unmount /system
mount /data
unmount /cache
mount /firmware
mount /firmware-modem
format /boot
format/system
format /data
format /cache
format /firmware
format /firmware-modem
format /data and /data/media (/sdcard)
mount USB storage
Click to expand...
Click to collapse
Another question, I know you said you didn't have a micro SD card but what about a USB-OTG device? You could connect it to your PC and save your new ROM zip to it. Then, You can select Mounts and Storage and then select Mount USB storage.
I need to look again the Galaxy S5 to see why you cannot see the SD card in Mounts and Storage. Ill post back shorlty.
Sent from my Nexus 6 using XDA-Developers mobile app

fast69mopar said:
Another question, I know you said you didn't have a micro SD card but what about a USB-OTG device? You could connect it to your PC and save your new ROM zip to it. Then, You can select Mounts and Storage and then select Mount USB storage.
I need to look again the Galaxy S5 to see why you cannot see the SD card in Mounts and Storage. Ill post back shorlty.
Sent from my Nexus 6 using XDA-Developers mobile app
Click to expand...
Click to collapse
Nope, I have seen that, but I don't have it. If my problem still occurs over the weekend, I might buy a micro SD or a USB OTG.

kevinm614 said:
Nope, I have seen that, but I don't have it. If my problem still occurs over the weekend, I might buy a micro SD or a USB OTG.
Click to expand...
Click to collapse
The SD card or OTG will fix your problem. Let me know what you do. Good luck.

kevinm614 said:
So I have to push my rom from my pc to my phone since I did not do this and now I have no rom on my phone. I try to push it using "adb push rom.zip /sdcard/" and it does not work. Can someone please help me? I really want my phone to work again :crying:
Click to expand...
Click to collapse
Root Your Phone .. Install Custom recovery like PhiLz Recovery... Flash the rom using custom recovery You may Put your rom into your sd card .. It will definitely work for You ^_^

ZuBaiR ChAuDhrY said:
Root Your Phone .. Install Custom recovery like PhiLz Recovery... Flash the rom using custom recovery You may Put your rom into your sd card .. It will definitely work for You ^_^
Click to expand...
Click to collapse
The OP has Philz Recovery installed but he cannot get his PC to recognize his device while booted into recovery. I suggested that he/she use a Micro SD CARD or a USB OTG to save a ROM zip to and then flash it in recovery. I was waiting to see if the OP purchased a micro SD card or OTG.
Sent from my Nexus 6 using XDA-Developers mobile app

fast69mopar said:
The OP has Philz Recovery installed but he cannot get his PC to recognize his device while booted into recovery. I suggested that he/she use a Micro SD CARD or a USB OTG to save a ROM zip to and then flash it in recovery. I was waiting to see if the OP purchased a micro SD card or OTG.
Sent from my Nexus 6 using XDA-Developers mobile app
Click to expand...
Click to collapse
I purchased a micro SD last night and all is going well. Thanks a lot

Related

[Help] My x10i is boot cycling after messing around

hi.
I already had my x10 with wolfbreak v6 and with rendeiro2005 (crowds) BlackEditionHD v0.2.
but I tried to restore user data and I f**ked up.
actual situation:
cycling boot.
when I try to reinstall wolfbreak or blackeditioHD roms, xrecovery says: ""can't mount /sdcard" and doesn't install.
last thing I did was to re-install the ftf bundle provided by wolfbreak (2.3.3 kernel and baseband .71 only).
need help, please
go to xrec wipe data dalvik, etc and fix premission
try again
if not
partition tools -> mount sd card if it is already mount the unmount card remount card
try then
if it still does not do the means the card is currupted. connect x10 to computer
go to partiton tooll-> mount usb storage copy every thing on hard drive.
not sure but format to fat32 copy your xrec file try to mount to xrec
try to do it again
when the the phone started format card via anroid
marcoplo said:
does not boot ot xrec?
Click to expand...
Click to collapse
yes, but I can't install anything.
I choose "Install custom zip" and then I can navigate on sdcard folders. But when I select somthing to install it always gives the "can't mount /sdcard" error.
i havent readed prop.
marcoplo said:
go to xrec wipe data dalvik, etc and fix premission
try again
if not
partition tools -> mount sd card if it is already mount the unmount card remount card
try then
if it still does not do the means the card is currupted. connect x10 to computer
go to partiton tooll-> mount usb storage copy every thing on hard drive.
not sure but format to fat32 copy your xrec file try to mount to xrec
try to do it again
when the the phone started format card via anroid
Click to expand...
Click to collapse
already tried all those suggestions.
connecting x10 to computer and mounting usb storage didn't work too.
I can see the drive letter but I can't access it.
I can access sdcard files/folders using another phone.
and I can access it via adb shell too.
made a file copy via adb shell and it worked.
so it seems the sdcard is ok.
Problem solved
Solution:
had to install gingerbread ready xRecovery 0.3
used option A: in this post from zdzihu
http://forum.xda-developers.com/showthread.php?t=859571
I made an sdcard backup using another card-reader before.
I thought it would delete all sdcard content... but I was wrong.
thanks anyway
;-)

[Q] A Q about ext4

Hi,
I'm in need of some info. The newer nightlies support ext4. After what I have understood the transfer isn't automatically done so one needs to take a backup of the things I wanna save from the sd card and then enter recovery mode and manually format the sdcard. Is that right?
I would also like to know how big files ext4 supports and if it's possible to mount an ext4 formatted sdcard in a pc?
Cheers
FlashTec80 said:
Hi,
I'm in need of some info. The newer nightlies support ext4. After what I have understood the transfer isn't automatically done so one needs to take a backup of the things I wanna save from the sd card and then enter recovery mode and manually format the sdcard. Is that right?
I would also like to know how big files ext4 supports and if it's possible to mount an ext4 formatted sdcard in a pc?
Cheers
Click to expand...
Click to collapse
The convertion to ext4 only effects the internal /data partition. The SD is not touched and also shouldn't be touched. Android, for now, cannot handle a SD not formated as FAT32. Windows also cannot read these partitions by default, only with the help of extra tools like Ext2FSD.
To convert your internal /data partition, choose advanced backup in CWM Recovery and select "data", when the backup is finished, exit the recovery via "go back" until you see the bootmenu.
- Select Tools
- Select File System Tools
- Select Format Data and Cache in ext4 !!!The internal /data partition will be erased!!!
- Go back to Stable Recovery
- Restore your "data" backup via advanced restore
- Aaaand done!
Ok thanks, but doesnt CMX support NTFS on sd card?
FlashTec80 said:
Ok thanks, but doesnt CMX support NTFS on sd card?
Click to expand...
Click to collapse
Yes it does. Your point being?
FlashTec80 said:
Ok thanks, but doesnt CMX support NTFS on sd card?
Click to expand...
Click to collapse
Well, maybe i was wrong with the FAT32. i just thought it's due to compatibility issues with USB Mass Storage...
Sent from my MB525 using xda app-developers app
Ok then i got the knowledge i wanted, Thanks

[Q] Can't mount /sdcard

Somehow I managed to make it so my Nexus 4 can't mount internal sdcard. I've tried formatting it from CWM and everything, no luck.
What do I do to get a working phone again?
You can't use "mount /sdcard" with the N4 because it is the command to mount *external* sdcard
What are you trying to achieve?
If you're trying to flash a zip already in sdcard:
flash zip => 0 => your sdcard folder
to push to sdcard, use adb push filename /sdcard/0/filename
Sent from my Nexus 4 in a Faraday cage
Apparently using that command ("mount /sdcard") actually destroyed the mounting of it so it couldn't be mounted in CWM.
Only way to resolve was wiping /data

[Q] [PA 3.99] Enable USB mass storage instead of MTP?

Hello,
Is there a way to enable USB Mass Storage on Paranoid Android 3.99? I know it will supposedly prevent the phone from accessing the virtual sdcard partition while plugged to a computer, but this would be a minor annoyance in comparison to the complete pain in the ass that is MTP:
1. Transfers are slow and unreliable (stopping unexpectedly...)
2. It can only perform one task at a time (can't browse folders while copying files for example)
3. Poor implementation on Windows (Explorer keeps asking stupid questions like "are you sure this type of file will be recognized by your device?")
4. Computers with restricted user rights prevent MTP devices from installing.
and so on...
I've tried the following trick:
Code:
su
setprop persist.sys.usb.config mass_storage
reboot
But it didn't work.
Please help. I know it may require a lot of effort but I don't care: MTP is really too much of an annoyance.
No you cannot mount the sdcard as usb mass storage
In order to do that the sdcard has to be it's own fat partition.
On the nexus 4 it is part of the data partition and the folder is fused to the sdcard mount point.
Basically meaning that you can't mount /sdcard because it's not able to be mounted as it's not actually a partition.
And secondly the format is ext4 so even if you could mount it, it would not be readable by Windows
Sent from my Nexus 4 using xda app-developers app
Alex240188 said:
No you cannot mount the sdcard as usb mass storage
In order to do that the sdcard has to be it's own fat partition.
On the nexus 4 it is part of the data partition and the folder is fused to the sdcard mount point.
Basically meaning that you can't mount /sdcard because it's not able to be mounted as it's not actually a partition.
And secondly the format is ext4 so even if you could mount it, it would not be readable by Windows
Click to expand...
Click to collapse
How would Android react if /sdcard was actually a separate FAT32 partition mounted in its usual location?
CutterX said:
How would Android react if /sdcard was actually a separate FAT32 partition mounted in its usual location?
Click to expand...
Click to collapse
According to this article that should work.
http://www.engadget.com/2011/11/21/ice-cream-sandwich-supports-usb-mass-storage-after-all-galaxy-n/
Swyped from my Nexus 4 using Tapatalk 4
CutterX said:
How would Android react if /sdcard was actually a separate FAT32 partition mounted in its usual location?
Click to expand...
Click to collapse
It would work. However doing that is not an easy task.
It would require;
1. Changing the partition table on the phone.
2. Rewriting the bootloader (not 100% sure on this one, but it would be needed to flash any rom from the bootloader (stock)).
3. Rewriting a recovery to support the new partition.
4. Finally making the changes to the rom to support ums mounting.
Sent from my Nexus 4 using xda app-developers app
It looks like this would be something in relatively high demand. So I've been trying to get Android/vold to mount and recognize a vfat image as an sdcard but haven't had any success. It might be easier to work with if I killed off the fuse mount to start, but I'm not really looking to do that right now. Manually mounting the image isn't a problem (busybox mount or using losetup first to establish the loop) but without Android recognizing it, there's no chance of being able to use usb mass storage.
Of course the inherent issue will then be "lost" space with regards to the internal storage, since it'd be dedicated to the "sdcard". It seems most users would be fine with this, setting aside a gig or two.

[Q] Can't mount sdcard in CWM 6.0.4.4. Help!

Guys, all of a sudden CWM can't mount the sdcard. I wiped the data in order to install Vanir's ROM. I was previously on Rayglobe's. Is there anyway to come outta this? I'm desperate guys, please help me. I don't want this costly phone to become a brick! It's D802 BTW.
nvidiageek said:
Guys, all of a sudden CWM can't mount the sdcard. I wiped the data in order to install Vanir's ROM. I was previously on Rayglobe's. Is there anyway to come outta this? I'm desperate guys, please help me. I don't want this costly phone to become a brick!
Click to expand...
Click to collapse
Sorry,correct me if my knowledge was wrong - but how u want to mount a SD-Card when the phone has no slot for it?
Hi,
Yes, you can't mount sdcard in recovery with phones without sdcard (the recovery can't mount the link to the internal memory, even if it's called sdcard), if you have an USB OTG cable you can mount your external sdcard and make backup or put into it some flashable zip's...
If you wiped data, why you want to mount your sdcard , you have your rom in the internal memory so just flash it...
kont0mat said:
Sorry,correct me if my knowledge was wrong - but how u want to mount a SD-Card when the phone has no slot for it?
Click to expand...
Click to collapse
Internal storage is named "sdcard", even though that doesn't make any sense. I've Nexus 4 and it shows the same thing too.
viking37 said:
Hi,
Yes, you can't mount sdcard in recovery, if you have an USB OTG cable you can mount your external sdcard...
If you wiped data, why you want to mount your sdcard , you have your rom in the internal memory so just flash it...
Click to expand...
Click to collapse
I used to flash other ROMs through "sdcard" from CWM menu before, it was working perfectly until now. There's also "external_sdcard" sub-menu too.
nvidiageek said:
I used to flash other ROMs through "sdcard" from CWM menu before, it was working perfectly until now. There's also "external_sdcard" sub-menu too.
Click to expand...
Click to collapse
Hum... No need to mount your sdcard to flash your rom... Like I said external sdcard is if you use an USB OTG cable, it's the link for your external USB storage.
In CWM navigate to the sdcard then where you put your rom, simple...
But if you wiped your sdcard in recovery, it will be harder for sure...
Or I don't understand what you mean
So I flashed TWRP D802 ver. from Flashify, but now I can't even do a factory reset as it says that it cannot mount /data. Now I can't wipe nor can I install a zip from TWRP. Please help me.
Just flash stock. Go to general section. "Go back to stock"

Categories

Resources