I have ADB installed on my g1 and i also have it partitioned with fat32 and ext2.
When i go to do the "adb push c:\userinit\userinit.sh /system/sd" from this tutorial and i get an error saying "/system/bin/sh: adb: not found"
shockaj said:
I have ADB installed on my g1 and i also have it partitioned with fat32 and ext2.
When i go to do the "adb push c:\userinit\userinit.sh /system/sd" from this tutorial and i get an error saying "/system/bin/sh: adb: not found"
Click to expand...
Click to collapse
are you running that command with terminal or cmd?
Make sure you didn't type adb shell before that command, if you did, you need to type exit, then type that command.
Thank you very much you helped solved my problem, i had typed adb shell in prior to typing in adb push! thank you
Hey guys!
So I decided to try my hand at Installing Kindle Fire HD 7" 2nd-Bootloader + TWRP Complete Tutorial. On Step 2: Grabbing Files and Backing Up, when I plug the code to cmd, it says: error: device not found. Now, I have the Fastboot icon on the KF's screen and I have the factory cable connected. Also, android sdk is installed (as the tutorial said) on my Windows 7 machine. Any ideas? Thanks in advance!
Mustang37 said:
Hey guys!
So I decided to try my hand at Installing Kindle Fire HD 7" 2nd-Bootloader + TWRP Complete Tutorial. On Step 2: Grabbing Files and Backing Up, when I plug the code to cmd, it says: error: device not found. Now, I have the Fastboot icon on the KF's screen and I have the factory cable connected. Also, android sdk is installed (as the tutorial said) on my Windows 7 machine. Any ideas? Thanks in advance!
Click to expand...
Click to collapse
You're in fastboot mode to do what? Are you restoring after a mistake? What command were you using before that error, and what was the code you used that returned with the error? For now, see if you can reboot using the following code:
Code:
fastboot -i 0x1949 reboot
You can also try doing the normal shutting down with the power button, but I've never tried that, so be careful.
seokhun said:
You're in fastboot mode to do what? Are you restoring after a mistake? What command were you using before that error, and what was the code you used that returned with the error? For now, see if you can reboot using the following code:
Code:
fastboot -i 0x1949 reboot
You can also try doing the normal shutting down with the power button, but I've never tried that, so be careful.
Click to expand...
Click to collapse
Ok, I know that I can shut down with the power button. My problem is backing up my current Amazon ROM.
CODE (found at http://forum.xda-developers.com/showthread.php?t=2271909):
adb shell su -c "dd if=/dev/block/mmcblk0boot0 of=/sdcard/boot0block.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot of=/sdcard/stock-boot.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/recovery of=/sdcard/stock-recovery.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/stock-system.img"
mkdir C:\KFHD7Backup
adb pull /sdcard/stock-boot.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-recovery.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-system.img/ [C:\KFHD7Backup]
Thanks for the quick reply.
Mustang37 said:
Ok, I know that I can shut down with the power button. My problem is backing up my current Amazon ROM.
CODE (found at http://forum.xda-developers.com/showthread.php?t=2271909):
adb shell su -c "dd if=/dev/block/mmcblk0boot0 of=/sdcard/boot0block.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot of=/sdcard/stock-boot.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/recovery of=/sdcard/stock-recovery.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/stock-system.img"
mkdir C:\KFHD7Backup
adb pull /sdcard/stock-boot.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-recovery.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-system.img/ [C:\KFHD7Backup]
Thanks for the quick reply.
Click to expand...
Click to collapse
You're trying to backup with ADB commands in fastboot mode? What are you doing in fastboot mode?
ADB is simply turning on the device, make sure ADB is on under Settings, and connect the device to the PC with the regular charging cable. That's it. Fastboot commands use "fastboot" at the beginning.
Ahhh, ok got it. One last question, when I add the following codes to backup, I get the remote object '/sdcard/stock-recovery.img/' does not exist ERROR. I've rooted it and followed the instructions.Thoughts?
adb pull /sdcard/stock-boot.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-recovery.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-system.img/ [C:\KFHD7Backup]
Mustang37 said:
Ahhh, ok got it. One last question, when I add the following codes to backup, I get the remote object '/sdcard/stock-recovery.img/' does not exist ERROR. I've rooted it and followed the instructions.Thoughts?
adb pull /sdcard/stock-boot.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-recovery.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-system.img/ [C:\KFHD7Backup]
Click to expand...
Click to collapse
Those commands tell the device to pull the images from the sdcard to the new directory, so if you have nothing on the sdcard for ADB to pull, it returns with that error. Do the first set again.
Ok, that still doesn't work, I do understand what you are saying though.
I apply these lines of codes:
adb shell su -c "dd if=/dev/block/mmcblk0boot0 of=/sdcard/boot0block.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot of=/sdcard/stock-boot.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/recovery of=/sdcard/stock-recovery.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/stock-system.img"
I still get the same error when apply these lines of codes after it:
adb pull /sdcard/stock-boot.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-recovery.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-system.img/ [C:\KFHD7Backup]
remote object '/sdcard/stock-boot.img/' does not exist
The last line of code of the first set, nothing comes up after it.
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/stock-system.img"
Usually, it comes out like this:
C:\Users\Username>adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-n
ame/boot of=/sdcard/stock-boot.img"
16384+0 records in
16384+0 records out
8388608 bytes transferred in 3.058 secs (2743168 bytes/sec)
Thanks for the quick replies guys! Appreciate it!
Mustang37 said:
Ok, that still doesn't work, I do understand what you are saying though.
I apply these lines of codes:
adb shell su -c "dd if=/dev/block/mmcblk0boot0 of=/sdcard/boot0block.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot of=/sdcard/stock-boot.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/recovery of=/sdcard/stock-recovery.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/stock-system.img"
I still get the same error when apply these lines of codes after it:
adb pull /sdcard/stock-boot.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-recovery.img/ [C:\KFHD7Backup]
adb pull /sdcard/stock-system.img/ [C:\KFHD7Backup]
remote object '/sdcard/stock-boot.img/' does not exist
The last line of code of the first set, nothing comes up after it.
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/stock-system.img"
Usually, it comes out like this:
C:\Users\Username>adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-n
ame/boot of=/sdcard/stock-boot.img"
16384+0 records in
16384+0 records out
8388608 bytes transferred in 3.058 secs (2743168 bytes/sec)
Thanks for the quick replies guys! Appreciate it!
Click to expand...
Click to collapse
Is there a folder called "KFHD7Backup" under the C: drive? Also, check your personal folder, some images might be in there.
ALRIGHT! Finally, I used hashcode's code and it worked. I also found it in my personal folder. Thanks a lot!
Mustang37 said:
ALRIGHT! Finally, I used hashcode's code and it worked. I also found it in my personal folder. Thanks a lot!
Click to expand...
Click to collapse
o.o
I'm lost and I need help. I copied my code from Hashcode, so...I'm lost. Anyway, complete the guide and get flashing.
Thank you for the tools you are developing here and the help you are giving.
My KFHD7 is rooted and adb works.
I apply these lines of code:
adb shell su -c "dd if=/dev/block/mmcblk0boot0 of=/sdcard/boot0block.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot of=/sdcard/stock-boot.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/recovery of=/sdcard/stock-recovery.img"
adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/stock-system.img"
I checked on my Kindle with ESExplorer and I can see on the sdcard the 3 files: stock-boot.img, stock-recovery.img and stock-system.img.
But when I want to move them to C, I received the message
remote object '/sdcard/stock-boot.img/' does not exist
I can't see the files on the internal storage of the Kindle, via the computer. But I can see others files which are there.
Did I miss something?
Thank you in advance,
Jeanphi
I had issues with the syntax of that command at first too, try typing this instead:
"adb pull /sdcard/stock-boot.img ."
That should pull the file into the directory u have the command prompt cd'd into. Another note I couldn't get it to accept c:\ as a acceptable syntax, so being a Linux user I found on windows u can run "adb pull /sdcard/stock-boot.img /users/username/desktop" and basically / acts as c:\, if u want to put it in a specific place.
Sent from my Amazon Kindle Fire HD running CM10.1 Tablet UI using xda-developers app
stunts513 said:
I had issues with the syntax of that command at first too, try typing this instead:
"adb pull /sdcard/stock-boot.img ."
That should pull the file into the directory u have the command prompt cd'd into. Another note I couldn't get it to accept c:\ as a acceptable syntax, so being a Linux user I found on windows u can run "adb pull /sdcard/stock-boot.img /users/username/desktop" and basically / acts as c:\, if u want to put it in a specific place.
Sent from my Amazon Kindle Fire HD running CM10.1 Tablet UI using xda-developers app
Click to expand...
Click to collapse
Thank you for the quick reply.
I'm also using Linux, even if I'm a beginner.
So this not a problem of Windows.
Both OS show the same symptoms: the following error message and the fact that in both cases, I can't see the files on the sdcard when I look on the Internal storage of the Kindle, with the computer, even if can see other files (but not any file with an .img extension)
[email protected]:~$ adb pull /sdcard/stock-boot.img
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
5958 KB/s (8388608 bytes in 1.374s)
[email protected]:~$ adb pull /sdcard/stock-boot.img/
remote object '/sdcard/stock-boot.img/' does not exist
I copied with ESexplorer the three files (stock-boot.img, etc) on Download on the Kindle.
Then,
[email protected]:~$ adb pull /sdcard/Download/stock-boot.img/
remote object '/sdcard/Download/stock-boot.img/' does not exist
[email protected]:~$
(Download is with a capital D on the Kindle)
So the files are available on the Kindle. The problem is to find a way to put them on the computer.
Can I mail them to me ?
Jeanphi.
That's still the wrong syntax, don't put a / after the end of the filename, instead put a space and a period.
Sent from my Amazon Kindle Fire HD running CM10.1 Tablet UI using xda-developers app
stunts513 said:
That's still the wrong syntax, don't put a / after the end of the filename, instead put a space and a period.
Sent from my Amazon Kindle Fire HD running CM10.1 Tablet UI using xda-developers app
Click to expand...
Click to collapse
Sorry. I haven't seen the new syntax.
It works perfectly with Linux (Ubuntu).
Thanks again.
I will try the following steps of your thread about the 2nd bootloader, but I might wait til I have a factory cable.
Jeanphi
---------- Post added at 10:19 AM ---------- Previous post was at 10:08 AM ----------
jeanphi506 said:
Sorry. I haven't seen the new syntax.
It worked perfectly with Linux (Ubuntu). I have now the three files on my computer.
Thanks again.
I will try the following steps of your thread about the 2nd bootloader, but I might wait till I have a factory cable.
Jeanphi
Click to expand...
Click to collapse
Spelling corrections
Same Problem.. can't fix
Mustang37 said:
ALRIGHT! Finally, I used hashcode's code and it worked. I also found it in my personal folder. Thanks a lot!
Click to expand...
Click to collapse
Hi,
I have same problem... but I didn't understand how did you fixed it.
what's the hashcode? how can I use it? could you please explain.
thanks in advance...
Hello forum. First experience with this device.
Software Version 7.4.8
ADB drivers working, finds device.
No factory Cable.
"adb shell reboot bootloader" returns /system/bin/sh: su Reboot-bootloader: Not found
"adb shell" returns prompt with "$"
"su" command returns "Operation not permitted"
Do I need to be root before I can get into fastboot?
I want to use fastboot to downgrade to version 7.2.3 in order to properly flash the second bootloader.
Thanks for your feedback.
FillTheVoid said:
Hello forum. First experience with this device.
Software Version 7.4.8
ADB drivers working, finds device.
No factory Cable.
"adb shell reboot bootloader" returns /system/bin/sh: su Reboot-bootloader: Not found
"adb shell" returns prompt with "$"
"su" command returns "Operation not permitted"
Do I need to be root before I can get into fastboot?
I want to use fastboot to downgrade to version 7.2.3 in order to properly flash the second bootloader.
Thanks for your feedback.
Click to expand...
Click to collapse
Nope, type "adb reboot bootloader"
FillTheVoid said:
Hello forum. First experience with this device.
Software Version 7.4.8
ADB drivers working, finds device.
No factory Cable.
"adb shell reboot bootloader" returns /system/bin/sh: su Reboot-bootloader: Not found
"adb shell" returns prompt with "$"
"su" command returns "Operation not permitted"
Do I need to be root before I can get into fastboot?
I want to use fastboot to downgrade to version 7.2.3 in order to properly flash the second bootloader.
Thanks for your feedback.
Click to expand...
Click to collapse
You need to be rooted, have the SDK package downloaded and the environment set up (set paths) and then CD from the tools folder and issue the command "adb shell su -c reboot bootloader"
Edit: Do I all in one line with no quotations. This is the way to access the bootloader on a Kindle with no factory cord.
Sent from my Nexus 7 Flo running Odex SinLess ROM 4.4.2 with ElementalX kernel using XDA Premium 4 mobile app
---------- Post added at 09:15 PM ---------- Previous post was at 09:04 PM ----------
stunts513 said:
Nope, type "adb reboot bootloader"
Click to expand...
Click to collapse
You need to be rooted, have the SDK package downloaded and the environment set up (set paths) and then CD from the tools folder and issue the command "adb shell su -c reboot bootloader" Probably don't have too set paths when CD but it's a good thing to do.
Sent from my Nexus 7 Flo running Odex SinLess ROM 4.4.2 with ElementalX kernel using XDA Premium 4 mobile app
Someone who has the moto x (XT1097) updated on the lollipop 5.1 could extract the files through the attached procedure?
I would like to try the procedure below:
http://forum.xda-developers.com/showpost.php?p=60224688&postcount=415
Thanks!
OznerCall said:
Someone who has the moto x (XT1097) updated on the lollipop 5.1 could extract the files through the attached procedure?
I would like to try the procedure below:
http://forum.xda-developers.com/showpost.php?p=60224688&postcount=415
Thanks!
Click to expand...
Click to collapse
i can extract from my phone and share the files with anyone, no probs with that
tramuyo said:
i can extract from my phone and share the files with anyone, no probs with that
Click to expand...
Click to collapse
that would be great, i need to unbrick my phone too
Those files won't work. Those are for the first gen moto x. We have a different processor in the second gen.
Sent from my XT1095
But from our phone, with a similar procedure
haanzj said:
But from our phone, with a similar procedure
Click to expand...
Click to collapse
Won't work. We need the moto x gen 2 files. Until we have them this procedure won't work. We have to wait until they are leaked.
The only reason this works on the first gen is because the files needed were leaked from motorola. Unfortunately we still don't have the files for the second gen yet, so we must wait.
Sent from my XT1095
I just looked in the bat file, don't use it!
It copies your imei info!
Sent from my XT1095
Oops. So don't do this
adb shell su -c "dd if=/dev/block/mmcblk0 of=/sdcard/partitions.mbn bs=6144 count=1"
adb shell su -c "dd if=/dev/block/mmcblk0 of=/sdcard/pt.bin bs=1024 count=10"
adb shell su -c "dd if=/dev/block/mmcblk0p2 of=/sdcard/sbl1.mbn"
adb shell su -c "dd if=/dev/block/mmcblk0p3 of=/sdcard/sbl2.mbn"
adb shell su -c "dd if=/dev/block/mmcblk0p4 of=/sdcard/sbl3.mbn"
adb shell su -c "dd if=/dev/block/mmcblk0p5 of=/sdcard/aboot.mbn"
adb shell su -c "dd if=/dev/block/mmcblk0p6 of=/sdcard/rpm.mbn"
adb shell su -c "dd if=/dev/block/mmcblk0p7 of=/sdcard/tz.mbn"
Click to expand...
Click to collapse
What about that?
haanzj said:
What about that?
Click to expand...
Click to collapse
Those ones are fine, it is the one that says pds that has imei info in it.
Sent from my XT1095
I'm unable to use the adb push command on my rooted OnePlus 3t running OOS 4.0.2. My device shows up after typing adb shell and im also able to execute 'su' command but after that if i try adb push <source> <destination> it returns the following
OnePlus3T:/ $ su
OnePlus3T:/ # adb push 1Carbon /sdcard/
sush: adb: not found
127|OnePlus3T:/ #
I've already downloaded the latest platform-tools and drivers.
is there any solution for this? Thanks in advance!
UTK18 said:
I'm unable to use the adb push command on my rooted OnePlus 3t running OOS 4.0.2. My device shows up after typing adb shell and im also able to execute 'su' command but after that if i try adb push <source> <destination> it returns the following
OnePlus3T:/ $ su
OnePlus3T:/ # adb push 1Carbon /sdcard/
sush: adb: not found
127|OnePlus3T:/ #
I've already downloaded the latest platform-tools and drivers.
is there any solution for this? Thanks in advance!
Click to expand...
Click to collapse
You don't do adb shell,that means your running this command from your phone's terminal which isn't what your trying to do.sp instead of adb shell just do the ADB push command
HeXDeMoN said:
You don't do adb shell,that means your running this command from your phone's terminal which isn't what your trying to do.sp instead of adb shell just do the ADB push command
Click to expand...
Click to collapse
Ohh such a beginners mistake there xD Also, im trying to push some pics via adb so that their timestamp is preserved and it requires me to run adb as root. i now tried adb root and then the push command which worked but timestamps were still altered. what am i doing wrong now?
Anyone?
Bump.