Related
Hey,
I'm following the tutorial over at G2 Hacks:
g2hacks.co m/g2-hacks/how-to-root-g2-phone
(omit the space between 'co' and 'm/')
I came across a problem at the beginning of the cmd portion.
This is what I type and the error I get.
Code:
C:\AndroidSDK\tools>adb push su \sdcard\su
failed to copy 'su' to '\sdcard\su': Read-only file system
How do you solve this problem?
EDIT: Go to 3rd post.
kpaekn said:
Hey,
I'm following the tutorial over at G2 Hacks:
g2hacks.co m/g2-hacks/how-to-root-g2-phone
(omit the space between 'co' and 'm/')
I came across a problem at the beginning of the cmd portion.
This is what I type and the error I get.
Code:
C:\AndroidSDK\tools>adb push su \sdcard\su
failed to copy 'su' to '\sdcard\su': Read-only file system
How do you solve this problem?
Click to expand...
Click to collapse
If you're wanting to root, go straight to the source; the guide in the Wiki here is based on the work the devs who actually found the means to root the device.
http://forum.xda-developers.com/wik...sion#Rooting_the_Vision_.28G2.2FDZ.29_and_DHD
Sent from my T-Mobile G2 using XDA App
I was following the tutorial from the Wiki Guide:
ht tp://forum.xda-developers.co m/wiki/index.php?title=HTC_Vision#Rooting_the_Vision_.28G2.2FDZ.29_and_DHD
(omit the space between 'ht' and 'tp' , 'co' and 'm/')
I came across a problem under the TEMP ROOT section.
This is what I type and the error I get.
Code:
C:\AndroidSDK\tools>adb push su \sdcard\su
failed to copy 'su' to '\sdcard\su': Read-only file system
How do you solve this problem?
kpaekn said:
I was following the tutorial from the Wiki Guide:
ht tp://forum.xda-developers.co m/wiki/index.php?title=HTC_Vision#Rooting_the_Vision_.28G2.2FDZ.29_and_DHD
(omit the space between 'ht' and 'tp' , 'co' and 'm/')
I came across a problem under the TEMP ROOT section.
This is what I type and the error I get.
Code:
C:\AndroidSDK\tools>adb push su \sdcard\su
failed to copy 'su' to '\sdcard\su': Read-only file system
How do you solve this problem?
Click to expand...
Click to collapse
Is USB debugging turned on and is the SDcard not mounted?
Sent from my T-Mobile G2 using XDA App
Sounds like the SD card is mounted on your PC and not the phone ? It needs to be mounted on the phone or this won't work.
Sent from my HTC Desire Z
All that command does is copy that file from your computer to the sdcard. You could accomplish the same thing by dragging and dropping that file to the sdcard.
The 'push' command just means "copy from location A to location B"
Sent from my HTC Vision using XDA App
You could always just mount the SDcard... but anyway, to solve this type in "adb remount" and enter the command before pushing the file
Sent from my HTC Vision using XDA App
USB debugging is on and SD is not mounted to my computer.
I tried directly copying the files onto the sdcard, but when I need to push rage, busybox, etc. I cannot access the data folder graphically from the computer.
So I'll still need to use cmd.
I tried the remount, but this is what I get:
Code:
C:\AndroidSDK\tools>adb remount
remount failed: Operation not permitted
kpaekn said:
USB debugging is on and SD is not mounted to my computer.
I tried directly copying the files onto the sdcard, but when I need to push rage, busybox, etc. I cannot access the data folder graphically from the computer.
So I'll still need to use cmd.
I tried the remount, but this is what I get:
Code:
C:\AndroidSDK\tools>adb remount
remount failed: Operation not permitted
Click to expand...
Click to collapse
The adb remount error is expected (the command requires your ro.secure prop to be set to 0, which you can't do until you have rooted).
So you were able to copy files to the SD card? Just to verify again, you should try mounting the SD card to you computer (so it shows up as a device on your computer's file explorer), copy over a file, unmount the card from your computer (and remember to also hit the button on phone to do so), and then try the ADB push commands again.
Ok, with the phone on plug it into your computer and mount USB storage. Drag and drop 'su' and superuser.apk into the sdcard then unmount USB storage. Make sure USB debugging is on at this point (you'll see it in the notification task bar). Do these commands:
Code:
adb push rage /data/local/tmp/rage
adb push busybox /data/local/tmp/busybox
adb push root /data/local/tmp/root
adb shell chmod 0755 /data/local/tmp/*
Then in the terminal app type:
Code:
/data/local/tmp/rage
You'll see some message pop up saying something about 'forked #### childs' and that's temp root. Then follow the instructions on running gfree to gain full root. Btw, you can just copy and paste all those commands if you think you'll make a mistake.
You may also be able to run the '/data/local/tmp/rage' command with the 'adb shell' command, never tried it myself though.
kpaekn said:
I was following the tutorial from the Wiki Guide:
ht tp://forum.xda-developers.co m/wiki/index.php?title=HTC_Vision#Rooting_the_Vision_.28G2.2FDZ.29_and_DHD
(omit the space between 'ht' and 'tp' , 'co' and 'm/')
I came across a problem under the TEMP ROOT section.
This is what I type and the error I get.
Code:
C:\AndroidSDK\tools>adb push su \sdcard\su
failed to copy 'su' to '\sdcard\su': Read-only file system
How do you solve this problem?
Click to expand...
Click to collapse
Oh come on !!!
the path separator in linux (and the phone is a linux computer) is / and not \ !!!
So the command is:
Code:
C:\AndroidSDK\tools>adb push su /sdcard/su
Just to tell you something about the unix shell:
The \ char is a so called escape character that you use to tell the shell that it should not ignore the next character even if it is a white space (i.e. space)
You would use it if you have to specify a path that contains spaces:
i.e.:
Code:
mkdir dir\ with\ 3\ spaces
will create a directory with the name "dir with 3 spaces". This would not work without the \ characters.
have fun - Guhl
Haha... it's funny how simple the answer was.
Thanks for your guys' help.
Hey everyone,
Currently I have 2.3.4, and so I decided to follow this guide,
[GUIDE] Downgrade G2 (2.3.3) & DZ (2.3.3) & mT4g (2.3.4) w/ S-ON to Stock Froyo
http://forum.xda-developers.com/showthread.php?t=1178912&highlight=downgrade
Anyways, this is how far I got, and I'm currently stuck.. the fre3vo file is definitely placed in platform tools, and I've re-downloaded it and placed the file in there again, however I got the same error message,
cannot stat 'fre3vo': No such file or directory
C:\Users\WC>adb shell cat /dev/msm_rotator
/dev/msm_rotator: invalid length
C:\Users\WC>adb push fre3vo /data/local/tmp
cannot stat 'fre3vo': No such file or directory
C:\Users\WC>adb push fre3vo /data/local/tmp
cannot stat 'fre3vo': No such file or directory
I have been on xda for awhile now, however, I'm usually just browsing and reading around, and I did not have enough posts to qualify me for posting the question on the guide itself. Any help would be greatly appreciated, thanks everyone.
one2345shutup said:
Hey everyone,
Currently I have 2.3.4, and so I decided to follow this guide,
[GUIDE] Downgrade G2 (2.3.3) & DZ (2.3.3) & mT4g (2.3.4) w/ S-ON to Stock Froyo
http://forum.xda-developers.com/showthread.php?t=1178912&highlight=downgrade
Anyways, this is how far I got, and I'm currently stuck.. the fre3vo file is definitely placed in platform tools, and I've re-downloaded it and placed the file in there again, however I got the same error message,
cannot stat 'fre3vo': No such file or directory
C:\Users\WC>adb shell cat /dev/msm_rotator
/dev/msm_rotator: invalid length
C:\Users\WC>adb push fre3vo /data/local/tmp
cannot stat 'fre3vo': No such file or directory
C:\Users\WC>adb push fre3vo /data/local/tmp
cannot stat 'fre3vo': No such file or directory
I have been on xda for awhile now, however, I'm usually just browsing and reading around, and I did not have enough posts to qualify me for posting the question on the guide itself. Any help would be greatly appreciated, thanks everyone.
Click to expand...
Click to collapse
Make sure that file is in the same directory adb is in or that you have the location of adb set in your system path.
Sent from my T-Mobile G2 using XDA App
...and make sure that you unpack it
ah yes.. i understand now.. thank you guys
the fre3vo file is in the same folder as the adb.exe and the path is set to platform-tools ( where the both files are) and it still doesn't work. WHY ? im so furious right now... please help...
Jasiekor said:
the fre3vo file is in the same folder as the adb.exe and the path is set to platform-tools ( where the both files are) and it still doesn't work. WHY ? im so furious right now... please help...
Click to expand...
Click to collapse
Are you running the command from the platform-tools directory? You need to cd to where ever a file is that you're wanting to manipulate, setting the path only matters with commands (ie. what you manipulate with)
Sent from my HTC Vision using XDA App
Help!
I am having the same issue.
ADB recognizes my device but I cannot push and get the 'cannot stat 'fre3vo': No such file or directory'.
I thought that this is something to do with the path? Here is how I set it:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\%SystemRoot%;C:\android-sdk-windows\platform-tools;C:\android-sdk-windows\tools
Any suggestions would be greatly appreciated!
It's nothing to do with your Path. The Path sets whether Windows can find a command or not, in this case the adb command.
The error message about not being able to find fr3vo is because whatever folder you are running the command from, does not contain the fr3vo file. Where is "fr3vo" located on your PC ? Cd to wherever that is (i.e. so if you type "dir" it shows up), and then run adb from there.
Sent from my Desire Z running CM7.
I have placed the files in: C:\android-sdk-windows\platform-tools
This is where ADB is and I am using command prompt...
Apologies for my ignorance!
joeleenus said:
I have placed the files in: C:\android-sdk-windows\platform-tools
This is where ADB is and I am using command prompt...
Click to expand...
Click to collapse
Ok, before you run adb, do "cd \android-sdk-windows\platform-tools". That will change your current folder to the one where you've put the files, so then adb will be able to find them.
Sent from my Desire Z running CM7.
Thank you! Apologies for noobiness...
fre3vo no such file or directory
OriginalGabriel said:
Make sure that file is in the same directory adb is in or that you have the location of adb set in your system path.
Sent from my T-Mobile G2 using XDA App
Click to expand...
Click to collapse
photobucket(dot)com/albums/t366/b0yhustla/775f98d7(dot)png
photobucket(d0t)com/albums/t366/b0yhustla/f9cb92ef(dot)png
This is what i get and this is how my files are set up what am i doing wrong ?
I have a T Mobile HTC G2
Android version
2.3.4
b0yhustla said:
photobucket(dot)com/albums/t366/b0yhustla/775f98d7(dot)png
photobucket(d0t)com/albums/t366/b0yhustla/f9cb92ef(dot)png
This is what i get and this is how my files are set up what am i doing wrong ?
I have a T Mobile HTC G2
Android version
2.3.4
Click to expand...
Click to collapse
I'm no expert, but are you running the command from the same folder that fre3vo is in?
i.e.: in your case, ****-right click in your platform-tools folder and select "open command window here".
EDIT - the forum is blocking the word S H I F T, that should be s h i f t right click
Downgrade HTC does not provide "invalid length"
I am trying to downgrade my HTC Glacier (MyTouch 4g) following Setherio's downgrade guide and am running into this problem.
Step should be
Code:
> adb shell cat /dev/msm_rotator
/dev/msm_rotator: invalid length
But I get
Code:
/system/bin/sh: cat: /dev/msm_rotator: No such file or directory
I ran the command prompt from my platform-tools folder which has the fre3vo and misc_version files in it. I am new to adb and searched the web and XDA for an answer but could only find "permission denied" information related to this step. Thanks in advance!
Needed drivers
Turns out I just needed the HTC drivers on my computer. From there things have been smooth so far. Hope this helps anyone running into the same issue. Thanks for looking.
helpmeplz55 said:
I am trying to downgrade my HTC Glacier (MyTouch 4g) following Setherio's downgrade guide and am running into this problem.
Step should be
Code:
> adb shell cat /dev/msm_rotator
/dev/msm_rotator: invalid length
But I get
Code:
/system/bin/sh: cat: /dev/msm_rotator: No such file or directory
I ran the command prompt from my platform-tools folder which has the fre3vo and misc_version files in it. I am new to adb and searched the web and XDA for an answer but could only find "permission denied" information related to this step. Thanks in advance!
Click to expand...
Click to collapse
no such file of directory
I'm experiencing the same problems as other ppl before me.
I've type in "c:\android-sdk-windows\platform--tools>adb push fre3vo /data/local/tmp cannot stat 'fre3vo' : no such file of directory"
I've moved the fre3vo file to that location also unzipt the file.
but i still get a reply that the file is not there??
what am i doing wrong??
sorry. i was out of this for quite some time.
Screenshots can help as well as copy and pasting all input/output from cmd here
Sent from my Nexus 4 using XDA Premium 4 mobile app
apparently my anti virus scanner was acting up that why it did not work.
the for replying
Crazy I am trying to downgrade an old G2 and am having exact same issue...
I open cmd from C:\platform-tools with shift+right click method and after trying to push fre3vo it says "cannot stat fre3vo no such file or directory exists." My fre3vo file is in the platform-tools folder on my C drive. The file is there adb just does not see it for whatever reason.
ALL THANKS TO Rodrigo José Fuentes (rodrigojfuentes) !!!!!!
NOT to ME!
http://forum.xda-developers.com/showthread.php?t=1606353
http://forum.xda-developers.com/showthread.php?t=1509095
NEW Root method for Motorola Android Phones
Hi! I just created this thread to let you know that thanks to user dettofatto and me, there's a new root method for Motorola Android Phones (I don't know if it will work for other brands).
NOTE: I tried this method with Gingerbread, I don't know if this will work with other versions.
The method is far from easy, but it works if none of the existing exploits and tricks don't.
Ok, there are some simple-like steps to root your phones:
A) if you have droid pro with 2.3.6 argentinian: http://www.mediafire.com/?aweayb68szubuci and go to 2, if you don't have:
1. If you have an unrooted gingerbread, ask for a rooted gingerbread userdata partition image (aka CG37) with a modified local.prop file and USB debugging enabled.
The value that you need to modify is ro.sys.atvc_allow_all_adb from 0 to 1.
IMPORTANT: The best you can do is to double wipe the phone and then modify local.prop an allow USB debugging, so the data partition doesn't have any of your personal information.
Then you can create a userdata partition image by typing this in the shell (with root access)
Code:
dd if=/dev/block/userdata of=/sdcard/CG37.smg
or
Code:
busybox dd if=/dev/block/userdata of=/sdcard/CG37.smg
and let it do its work.
2. Once you got your CG37.smg in the SD card, you will have to boot into linux (so you can use sbf_flash).
3. When you are in linux, you need to extract the folder contained in the zip that you can download here mediafire.com/?n100jj66130lgra
4. Then you need to copy the CG37.smg and your original SBF (the non rooted one) to that folder.
5. Now you'll have to start a terminal with root permissions, and move to the folder by typing
Code:
cd <folder>
(where folder is the folder I just mentioned, without the <>, you can drag the folder to the terminal if you don't want to type its address)
4. Then you need to resize that partition to 200 Mb, since sbf_flash won't allow you to flash a big image (approx. 1,1 Gb). You have to type this
Code:
efsck -f CG37.smg
resize2fs CG37.smg 200M
5. Then you need to type
Code:
chmod +x sbf_flash
and then you need to start your phone into bootloader and connect it to the computer, then you type
Code:
./sbf_flash -r --userdata CG37.smg ORIGINAL.sbf
(where ORIGINAL corresponds to the name of your SBF)
and let it its work.
5. Once the phone started up, you now need to run this command
Code:
bash finishroot.sh
And let it finish the work.
6. Now you have your phone rooted. You can just reboot into recovery mode and do a double wipe, because the files that we needed are now in system partition.
Info:
http://forum.xda-developers.com/showthread.php?t=1509095
1) Error:
e2fsck -f CG37.smg
Click to expand...
Click to collapse
2) When I do this:
bash finishroot.sh
Click to expand...
Click to collapse
I get this error:
Code:
finishroot.sh: line 1: ./adb: Permission denied
finishroot.sh: line 2: ./adb: Permission denied
finishroot.sh: line 3: ./adb: Permission denied
finishroot.sh: line 4: ./adb: Permission denied
finishroot.sh: line 5: ./adb: Permission denied
finishroot.sh: line 6: ./adb: Permission denied
finishroot.sh: line 7: ./adb: Permission denied
finishroot.sh: line 8: ./adb: Permission denied
finishroot.sh: line 9: ./adb: Permission denied
finishroot.sh: line 10: ./adb: Permission denied
Then I finish root on Windows with SuperOneClick 2.3.3
Sudo bash finishroot.sh....
Sent from My Motosola....
dettofatto said:
Sudo bash finishroot.sh....
Sent from My Motosola....
Click to expand...
Click to collapse
Code:
[email protected]:~/Desktop/236ArgenEuro$ sudo -s
[email protected]:~/Desktop/236ArgenEuro# bash finishroot.sh
finishroot.sh: line 1: ./adb: Permission denied
finishroot.sh: line 2: ./adb: Permission denied
finishroot.sh: line 3: ./adb: Permission denied
finishroot.sh: line 4: ./adb: Permission denied
finishroot.sh: line 5: ./adb: Permission denied
finishroot.sh: line 6: ./adb: Permission denied
finishroot.sh: line 7: ./adb: Permission denied
finishroot.sh: line 8: ./adb: Permission denied
finishroot.sh: line 9: ./adb: Permission denied
finishroot.sh: line 10: ./adb: Permission denied
sudo bash finishroot.sh
Click to expand...
Click to collapse
Correct finishroot.sh file:
Code:
chmod +x adb
./adb wait-for-device
./adb root
./adb remount
./adb push su /system/bin
./adb shell chmod 4755 /system/bin/su
./adb push Superuser.apk /system/app
./adb push busybox /system/bin
./adb push bootstrap-1.0.0.5-droid2.apk /system/app
./adb shell chmod 666 /system/app/Superuser.apk
./adb shell chmod 755 /system/bin/busybox
When you are in linux, you need to extract the folder contained in the zip that you can download here mediafire.com/?n100jj66130lgra
Click to expand...
Click to collapse
I attach zip to this message with correct finishroot.sh and bootstrap-1.0.0.5-droid2.apk
dettofatto said:
2. Once you got your CG37.smg in the SD card, you will have to boot into linux (so you can use sbf_flash).
Click to expand...
Click to collapse
this may be a silly question but you mean linux on pc?? not from from the console on the phone
ok, no matter now, I know everything
Do you have a link for the sbf file.
Thanks
Hi,
could somebody reupload zip tools from this dead link (second point)?
mediafire.com/?n100jj66130lgra
Click to expand...
Click to collapse
Okay i missed another post with attachment. Well it's quite simple job, but it require a little knowledge, especially linux basics. But could it be possible to rebuild argentinian sbf with modded CM37? After it root will be possible using SuperOneClick.
radkyz said:
Hi,
could somebody reupload zip tools from this dead link (second point)?
Okay i missed another post with attachment. Well it's quite simple job, but it require a little knowledge, especially linux basics. But could it be possible to rebuild argentinian sbf with modded CM37? After it root will be possible using SuperOneClick.
Click to expand...
Click to collapse
Hmm but after flash this 200mb userdata i have only 200mb storage space... How to bring back full storage space?
Well, i flashed jackpot CM7 again, then restored my backup and i have 1,05GB, and i think i had more storage space before, could somebody confirm thattotal storage space on CM7 jackpot is 1,05
GB?
dettofatto said:
; 2. Once you got your CG37.smg in the SD card, you will have to boot into linux (so you can use sbf_flash).
Click to expand...
Click to collapse
Can somebody help me with this? Boot linux where and how? On PC? Do I need drivers? Or on phone...? What linux?
dettofatto said:
; 4. Then you need to copy the CG37.smg and your original SBF (the non rooted one) to that folder.
Click to expand...
Click to collapse
Original sbf? Original rom that is on phone, right?
dettofatto said:
; and then you need to start your phone into bootloader and connect it to the computer, then you type
Click to expand...
Click to collapse
Please explain this part?
Please please somebody help me about this, I have problems with this Rom (week signal) and I cant do anything until I root my phone...
Ok I manage to root this phone. So I will write down some explanation for future members.
----------------
1.First of all, you must have bootable dvd to boot up Knoppix Linux on your PC.
2.You have to download attachment (Root236ArgEuro.zip) from this post: http://forum.xda-developers.com/showpost.php?p=26551654&postcount=5
3.Download file http://www.mediafire.com/download/aweayb68szubuci/CG37.smg
4.You need your rom in .sbf format (that you currently have, in this case 2.3.6 Argentinian).
5.Extract Root236ArgEuro.zip in one new folder named "root" and put your rom .sbf file in there and also CG37.smg file in that folder. Copy that folder to usb flash memory (because you will need those files in Linux)
6.Boot up in Knoppix Linux. Copy folder from your usb memory to desktop.
Now follow steps from here in original post (I'll write some notes to be all clear):
5. Now you'll have to start a terminal with root permissions, and move to the folder by typing
Code:
cd <desktop/root>
(you have to find your folder that you just copy)
4. Then you need to resize that partition to 200 Mb, since sbf_flash won't allow you to flash a big image (approx. 1,1 Gb). You have to type this
Code:
efsck -f CG37.smg
resize2fs CG37.smg 200M
5. Then you need to type
Code:
chmod +x sbf_flash
and then you need to start your phone into bootloader ( to enter bootloader:turn off your phone, press and hold volume up and down together with power on)
and connect it to the computer (with usb cable), then you type
Code:
./sbf_flash -r --userdata CG37.smg ORIGINAL.sbf
(where ORIGINAL corresponds to the name of your SBF) Instead ORIGINAL.sbf you have to write exact name of your rom name...easiest way is to simply rename your rom name to ORIGINAL.sbf (all capital letters) and code above will work as it is.
and let it its work.
5. Once the phone started up, you now need to run this command
Code:
bash finishroot.sh
And let it finish the work.
6. Now you have your phone rooted. You can just reboot into recovery mode and do a double wipe, because the files that we needed are now in system partition. If your root pass correctly, you will have new icons:SUPERUSER and DROID 2 BOOTSTRAP. Enter DROID 2 BOOTSTRAP; press bootstrap Recovery, allow superuser permision; then REBOOT Recovery; When you enter recovery do wipe user data/factory reset. Then reboot your device. Go to settings/privacy/ and do factory data reset. This should restore your internal memory from 200mb to 1Gb
[/QUOTE]
Yes, confirmed. Factory reset brings back storage.
@android:/ $ export PATH=/data/local/bin:$PATH
@android:/ $ cd mnt/sdcard/ubuntu
@android:/mnt/sdcard/ubuntu $ su
@android:/mnt/sdcard/ubuntu # sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh mnt/sdcard/ubuntu/ubuntu.img
Error: Image file not found!(mnt/sdcard/ubuntu/ubuntu.img)
1|@android:/mnt/sdcard/ubuntu #
this is my error. i've tried many things, any suggestions?
the image file is there, and ive downloaded it again, checked permissions, it is the large image from the complete linux installer app.
now i did some other things, and have gotten the responce:
$ export PATH=/data/local/bin:$PATH
$ cd mnt/sdcard/ubuntu
$ su
Segmentation fault
$ sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh mnt/sdcard/ubuntu/ubuntu.img
sh: can't open /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh
$
i re- rooted my device and am now coming up with the original error message again.
so, i added a \ to before mnt and now it says:
[email protected]:/ $ export PATH=/data/local/bin:$PATH
[email protected]:/ $ cd /mnt/sdcard/Ubuntu
[email protected]:/mnt/sdcard/Ubuntu $ su
[email protected]:/mnt/sdcard/ubuntu # sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /mnt/sdcard/Ubuntu/ubuntu.img
Validating image checksum... /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh: line 74: /data/data/com.zpwebsites.linuxonandroid/files/busybox: Permission denied
FAILED!
Error: Checksum failed! The image is corrupted!
1|[email protected]:/mnt/sdcard/ubuntu #
so im going to download and add the large ubuntu file to the directory
same error: "dirname : not found"
I have the same error, "/data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh[29]: dirname : not found"
freewalk said:
I have the same error, "/data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh[29]: dirname : not found"
Click to expand...
Click to collapse
Use root explorer or es file explorer to check if
the folder exists. Also, running sh script should be written like this: sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh
ireakhavok said:
@android:/ $ export PATH=/data/local/bin:$PATH
@android:/ $ cd mnt/sdcard/ubuntu
@android:/mnt/sdcard/ubuntu $ su
@android:/mnt/sdcard/ubuntu # sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh mnt/sdcard/ubuntu/ubuntu.img
Error: Image file not found!(mnt/sdcard/ubuntu/ubuntu.img)
1|@android:/mnt/sdcard/ubuntu #
this is my error. i've tried many things, any suggestions?
the image file is there, and ive downloaded it again, checked permissions, it is the large image from the complete linux installer app.
now i did some other things, and have gotten the responce:
$ export PATH=/data/local/bin:$PATH
$ cd mnt/sdcard/ubuntu
$ su
Segmentation fault
$ sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh mnt/sdcard/ubuntu/ubuntu.img
sh: can't open /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh
$
i re- rooted my device and am now coming up with the original error message again.
so, i added a \ to before mnt and now it says:
[email protected]:/ $ export PATH=/data/local/bin:$PATH
[email protected]:/ $ cd /mnt/sdcard/Ubuntu
[email protected]:/mnt/sdcard/Ubuntu $ su
[email protected]:/mnt/sdcard/ubuntu # sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /mnt/sdcard/Ubuntu/ubuntu.img
Validating image checksum... /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh: line 74: /data/data/com.zpwebsites.linuxonandroid/files/busybox: Permission denied
FAILED!
Error: Checksum failed! The image is corrupted!
1|[email protected]:/mnt/sdcard/ubuntu #
so im going to download and add the large ubuntu file to the directory
Click to expand...
Click to collapse
" $ su
Segmentation fault" This error prevents you from having real superuser. Try to reinstall the ROM without wiping data.
" Error: Image file not found!(mnt/sdcard/ubuntu/ubuntu.img)"
Make sure that the image really is there with root explorer or es file explorer.
" line 74: /data/data/com.zpwebsites.linuxonandroid/files/busybox: Permission denied"
It seems that the script is trying to use its own busybox. That is all I know from this issue.
Sent from my GT-I9100 using xda app-developers app
julle131 said:
Use root explorer or es file explorer to check if
the folder exists. Also, running sh script should be written like this: sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
The folder and the script exist, "…linuxonandroid/files/bootscript.sh". I have installed the app, "Complete Linux Installer", to my Galaxy Tab 10.1 (P7500). I have rooted my Galaxy Tab ("TAB"). The app also confirms that the path contains the target image (i.e. /mnt/sdcard/ubuntu/ubuntu.img).
However, when the app runs the bootscrip, there is an error message "/data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh[29]: dirname : not found". The code line is at below.
export imgfile=$(dirname $0)/ubuntu.img # Default image file, another can be set by using an argument
Could you please kindly let me know what goes wrong? Thanks in advance.
freewalk said:
The folder and the script exist, "…linuxonandroid/files/bootscript.sh". I have installed the app, "Complete Linux Installer", to my Galaxy Tab 10.1 (P7500). I have rooted my Galaxy Tab ("TAB"). The app also confirms that the path contains the target image (i.e. /mnt/sdcard/ubuntu/ubuntu.img).
However, when the app runs the bootscrip, there is an error message "/data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh[29]: dirname : not found". The code line is at below.
export imgfile=$(dirname $0)/ubuntu.img # Default image file, another can be set by using an argument
Could you please kindly let me know what goes wrong? Thanks in advance.
Click to expand...
Click to collapse
I can't test it in my tablet, because I'm not home. But when I get there I will test the app myself. You could try using the native Ubuntu from development section. Its kernel can dual boot ICS test 4.0.4.
Edit: worked for me. Here is the log
http://snipurl.com/24sad15
Remember that /mnt/sdcard is externalsd and /sdcard/ is internal memory.
Delete everything you downloaded and the app. Then redo everything, following the guide perfectly.
Sent from my GT-I9100 using xda app-developers app
Thanks and How to try native Ubuntu in Galaxy Tab?
julle131 said:
I can't test it in my tablet, because I'm not home. But when I get there I will test the app myself. You could try using the native Ubuntu from development section. Its kernel can dual boot ICS test 4.0.4.
Edit: worked for me. Here is the log
snipurl.com/24sad15
Remember that /mnt/sdcard is externalsd and /sdcard/ is internal memory.
Delete everything you downloaded and the app. Then redo everything, following the guide perfectly.
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
Thanks a lot. I shall try again.
One more thing. How to try the native Ubuntu?
freewalk said:
Thanks a lot. I shall try again.
One more thing. How to try the native Ubuntu?
Click to expand...
Click to collapse
Its like installing a custom ROM. There is a topic for it in development section. You put archos.ext4 to /data/local (or was it /mnt/storage? Just read from the topic.) Then flash kernel from the same topic. To return just flash stock ROM and reinstall custom ROM. It doesn't affect to sde.
Sent from my GT-I9100 using xda app-developers app
freewalk said:
The folder and the script exist, "…linuxonandroid/files/bootscript.sh". I have installed the app, "Complete Linux Installer", to my Galaxy Tab 10.1 (P7500). I have rooted my Galaxy Tab ("TAB"). The app also confirms that the path contains the target image (i.e. /mnt/sdcard/ubuntu/ubuntu.img).
However, when the app runs the bootscrip, there is an error message "/data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh[29]: dirname : not found". The code line is at below.
export imgfile=$(dirname $0)/ubuntu.img # Default image file, another can be set by using an argument
Could you please kindly let me know what goes wrong? Thanks in advance.
Click to expand...
Click to collapse
I have the same issue, indeed that the 'dirname' can not be found.
the $PATH show the following 2 dirs '/system/bin:/system/xbin' and none of them contain 'dirname'.
might it be because I have rooted my galaxy note 2 N8000 with the stock image according method 1 on rootgalaxynote.com ?
rootgalaxynote.com galaxy-note-10-1-root/how-to-root-galaxy-note-10-1/
any help would be appreciated....
freewalk said:
"/data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh[29]: dirname : not found".
export imgfile=$(dirname $0)/ubuntu.img # Default image file, another can be set by using an argument
Click to expand...
Click to collapse
C'mon folks, It's all there for you in the error message!
It breaks down like this ; dirname is a program the tells you the directory name of an executable file location, well in reality it probably just trims the value pass in looking the last / the print everything before that i.e calling
Code:
dirname /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh
will give an out put of
Code:
/data/data/com.zpwebsites.linuxonandroid/files
this is normally part of busybox. Is suspect however that whatever busybox binary it's attempting to use does has not been configured to include dirname or at the very least the symlink hasn't been created so it would need to be called with a busybox prefix , i.e
Code:
export imgfile=$([B]busybox dirname[/B] $0)/ubuntu.img
or just save the f*****g about and hardcore imgfile to the path of the image file, for example
Code:
export imgfile=/mnt/sdcard/ubuntu/ubuntu.img
or wherever you're ubuntu.img is located, should be that simple, If you run into further trouble post the full content of the /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh shell script. I suppose someone could tell the dev to add some sanity checking to his scripts if alot of people are running into this problem!
metacm said:
I have the same issue, indeed that the 'dirname' can not be found.
the $PATH show the following 2 dirs '/system/bin:/system/xbin' and none of them contain 'dirname'.
might it be because I have rooted my galaxy note 2 N8000 with the stock image according method 1 on rootgalaxynote.com ?
rootgalaxynote.com galaxy-note-10-1-root/how-to-root-galaxy-note-10-1/
any help would be appreciated....
Click to expand...
Click to collapse
already found the issue, busybox installation went wrong.... 'Busybox Installer' app didn't worked out, but luckly 'BusyBox free' did the work.
which version of busybox is installed
metacm said:
already found the issue, busybox installation went wrong.... 'Busybox Installer' app didn't worked out, but luckly 'BusyBox free' did the work.
Click to expand...
Click to collapse
can you tell which version of busybox is installed
same error
Hi all,
Sorry for my poor language...
I have same all of you dirname issue, bootscript.sh is in the path (tested with root explorer).
Can somebody tell me what is exactly this error "/data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh[29]: dirname : not found".
Because we can understand 2 thinks :
1-dirname not found bootscript.
2-Busybox not found dirname.
Thank for your help.
Things you will need:
Cygwin- http://www.cygwin.com/setup.exe
ADB- http://developer.android.com/sdk/index.html
Loki Patch source- https://github.com/djrbliss/loki
These are the steps i took to compile and use loki_patch.
I will assume you have the android sdk setup and ready, I will assume your SDK is under c:/AndroidSDK(this is how mine is setup)
Pulling aboot.img using adb:
You can copy cmd.exe into the folder where adb is located and run it from there so you do not have to navigate to the folder manually, or just run cmd.exe and navigate to the adb folder, for me it is c:\AndroidSDK\sdk\platform-tools.
Once you are in your adb file path and your phone is connected and in debug mode follow these instructions to pull aboot.img from your phone.
Original instructions from djrbliss here https://github.com/djrbliss/loki
[email protected]:~$ adb shell
[email protected]:/ $ su
[email protected]:/ # dd if=/dev/block/platform/msm_sdcc.1/by-name/aboot of=/data/local/tmp/aboot.img
[email protected]:/ # chmod 644 /data/local/tmp/aboot.img
[email protected]:/ # exit
[email protected]:/ $ exit
[email protected]:~$ adb pull /data/local/tmp/aboot.img
3293 KB/s (2097152 bytes in 0.621s)
Now you should have the file aboot.img in the platform-tools folder(where the adb.exe file is located)
Copy this file to your desktop so you know where it is.
Installing gcc with Cygwin:
Original Instructions came from here http://www.eecg.utoronto.ca/~aamodt/ece242/cygwin.html
Step 0: Download and run the cygwin installer.
Step 1: Select “Install from Internet”
Step 2: Install to default location
Step 3: Use default local package directory (click next)
Step 4: Use whatever internet connection settings (click next)
Step 5: Select a mirror (use the one already selected, click next)
Step 6 (a): In the “Select Packages” expand “Devel”:
Step 6 (b): Select gcc, gdb, and make
Step 7: click next and follow the rest of the installation instructions.
Ok, now that gcc is installed we can compile the loki_patch source to make the executable.
Go here https://github.com/djrbliss/loki
You should see a file called loki_patch.c, click this link and it will open and you can see all the code.
Select the code from top to bottom and right click, copy.
Now right click on your desktop and select new> text file.
Open this text file and paste the code into it, go to file and save as loki_patch.c (make sure you have your file extensions turned on so you can save this as a c source and not a txt file).
We should now have a file called loki_patch.c on the desktop, keep it there for now.
Open up windows explorer and navigate to the following:
c:\cygwin\home\<username>\
(You will see a few files and a kitchen folder)
Create a new folder in here called compile.
Now, let's go back to the desktop and copy loki_patch.c and aboot.img and paste those into the compile folder you just created.
Go ahead and run cygwin.
Now we need to change directories, so let's type the following:
cd compile
We should now be in the compile folder.
Lets compile this code so we can use it, type the following command:
gcc loki_patch.c -o loki_patch
We should now have a file in the compile folder called loki_patch.exe( windows added this .exe, the file extension can be left alone or deleted)
Now you need a boot.img file to patch, grab one from a rom or kernal and copy this into the compile folder.
Once all the files are in the compile folder run the following command to patch the boot.img file:
./loki_patch boot aboot.img boot.img boot.lok
We should now have a boot.lok file in the compile folder, hope this helps and i hope i didnt leave anything out, i will try and update this with screen shots later.
Nice work..thanks
C13v3r0n3 first link is Broken: Cygwin, my friend!!
TheAxman said:
Nice work..thanks
Click to expand...
Click to collapse
And that's why you guys rock because that's all greek to me.
"If you ain't first yer last"
Sent from my rockin ATT S4