I can enter the first two commands, mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system,flash_image recovery recovery.img and cd /sdcard but when i type in the last command i get this
cannot open /system/recovery.img no such file
Don't know what you're typing there.. missing some stuff.
Try this:
Code:
mount -o remount,rw /dev/block/mtdblock3 /system
cd /system
cat /sdcard/recovery.img > recovery.img
flash_image recovery recovery.img
Did you type SU before??
i did what the first reply did. what do you mean su?
i got it thanks
SU = root access.
Once you have rooted your phone and installed a custom image, you need to type "su" and press enter anytime you go to the command prompt to do something requiring root. Basically root is disabled by default so you don't break things - you need to specifically tell the phone you want root access to try and avoid breaking things by mistake.
Anyway, glad you got it working.
Related
ok i got this far
8. Type the following into Telnet (these commands will give you root access easier in the future):
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd sdcard
flash_image recovery recovery.img
cat recovery.img > /system/recovery.img
and on the last command i get a error "cannot create /system/recovery.img"
am i rooted already ????? or what needs to be done please help...
files i have on sd card are recovery.img and update.zip
read the threads and follow them step by step....STEP by STEP....
Verify that you command prompt has a "#" in front and not a "$"
# = root
$ = user.
make sure you type in mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system exactly like that. and be sure that it does not return any errors.
again type these in EXACTLY as shown.
cd sdcard
flash_image recovery recovery.img
cat recovery.img > /system/recovery.img
if you still have the problem, please respond.
i am following everything step by step and cant get it i just get cannot create recovery.img read only file system
if its not working then you arent following the steps correctly.
cat recovery.img > /system/recovery.img
i get this after ## is that a good thing???
if you are using the crappy built-in windows telnet client.. it will appear like this:
Code:
# # mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# # cd sdcard
# # flash_image recovery recovery.img
# # cat recovery.img > /system/recovery.img
# #
i recommend you use putty. Putty Homepage
this provides a cleaner telnet interface.
but yes.. that means it worked!
EDIT:
Now to explain just a bit what just happened:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system :: this mounts /dev/block/mtdblock3 in /system (lots of fun stuff available here, but i recommend you leave that to developers
flash_image recovery recovery.img :: this flashes the recovery image with JesusFreke's custom recovery image.
You should now proceed to downloading a modded RC30 (also available on this forum) and place it in the root of your SD card. Rename it to update.zip and turn off your phone.
Press (and hold) the Home and Power(red) keys until you see the recovery screen. Now slide out the keyboard and press ALT+S.
After it's complete press ALT+W, and reboot.
WARNING: this will wipe out all previous custom settings and restore you to factory defaults!
Ok, so I've decided I want to root my G1 too, and I'm having a similar problem. I broke my first G1, huge crack on the screen, but still functional. I have a replacement in hand, but want to test rooting on the old one so I don't risk the new one till I know I get it right. I had OEM RC30 installed and flashed down to OEM RC29. No problems there. Then I restarted, following instructions to the letter. Typed in "telnetd" :enter: No problems there. Downloaded Telnet app from the market and connected to local host on port 23. No problems. I even had the ## prompt. After typing in the commands listed in the tutorial with no problems, I installed HardSPL and update.zip into the sdcard and did all that. Then I upgraded to JF RC30. Now when I open the Terminal Emulator program, I get the $ prompt. What did I miss? Should I flash back down to RC29 and try again? I think I will just in case I'm an idiot, which is entirely possible.
polaris0352 said:
Ok, so I've decided I want to root my G1 too, and I'm having a similar problem. I broke my first G1, huge crack on the screen, but still functional. I have a replacement in hand, but want to test rooting on the old one so I don't risk the new one till I know I get it right. I had OEM RC30 installed and flashed down to OEM RC29. No problems there. Then I restarted, following instructions to the letter. Typed in "telnetd" :enter: No problems there. Downloaded Telnet app from the market and connected to local host on port 23. No problems. I even had the ## prompt. After typing in the commands listed in the tutorial with no problems, I installed HardSPL and update.zip into the sdcard and did all that. Then I upgraded to JF RC30. Now when I open the Terminal Emulator program, I get the $ prompt. What did I miss? Should I flash back down to RC29 and try again? I think I will just in case I'm an idiot, which is entirely possible.
Click to expand...
Click to collapse
type su in the terminal emulator. you'll get the # prompt.
Right... I'm just stupid. So I'm running 1.41 on my old G1 now. Nicely done, it feels just like the ota version (no hiccups or bugs so far) and I have multi touch. You're awesome jf!
or do it through pc like intended.. and remount
am having this problem but it says
recovery.img: no such file or directory
##
i am using rc8 uk model please help
For those still having trouble rooting there is an app that can root your G1 with "1 click", that's not what I used to root my phone but I hear it works I bet if you look for it you'll find it
Hello folks, i have a quick question... i have cyan mod 4.1.99 installed on my phone which im sure comes equipped with busybox. I am trying to find the commands that i would type into terminal emulator to push .apk files without having to use adb.. my pc went up and all i have is my g1 phone now. Is it possible to do what adb does like install, push, and pull files through terminal emulator and busybox? If so what are the commands, or is there a thread with a list of commands? Thanks in advance
to install an app
busybox install <path to apk>
there may be an arguement im missing.....but it should still work (if you put in a random argument or do -h or -help, it should give you the lists. i dont remember what they are though)
for moving files, use the mv and cp commands (mv = move, cp = copy paste)
ie
cp /sdcard/app/heroled.apk /system/sd/app
Click to expand...
Click to collapse
Im trying to copy a file to system/app/ but it says " read only file system"
So i type in a command i found " mount -o rw, remount -t yaffs2 /dev/black/mtdblock3 /system"
But then after i put in the command it stills says read only. Is there a non pc method to remount the system as read/write ? Or should that code work? Another thread said it should change the system
Im trying to copy a file to system/app/ but it says " read only file system"
So i type in a command i found " mount -o rw, remount -t yaffs2 /dev/black/mtdblock3 /system"
But then after i put in the command it stills says read only. Is there a non pc method to remount the system as read/write ? Or should that code work? Another thread said it should change the system
bbbblack said:
Im trying to copy a file to system/app/ but it says " read only file system"
So i type in a command i found " mount -o rw, remount -t yaffs2 /dev/black/mtdblock3 /system"
But then after i put in the command it stills says read only. Is there a non pc method to remount the system as read/write ? Or should that code work? Another thread said it should change the system
Click to expand...
Click to collapse
its block, not black
that should mount as rw
Hello all, I am about to plunge into rooting my G1. I have a question however. I found the guide http://forum.xda-developers.com/showthread.php?t=442480 and it lists the commands in telnet as:
* mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
* cd sdcard
* flash_image recovery recovery.img
* cat recovery.img > /system/recovery.img
I also found a video that someone had recommended at http://www.youtube.com/watch?v=xOo2V9qCauc
and it lists the telnet commands as:
Telnet Commands id
(Press enter)
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
(Press enter)
dd if=/system/bin/sh of=/system/bin/su
(Press enter)
chmod 4755 /system/bin/su
(Pres enter)
He then has you download and go into terminal emulator and then use these commands:
cd /system
(enter)
cat /sdcard/recovery.img > recovery.img
(enter)
flash_image recovery recovery.img
(enter)
The tutorial here is shorter and easier, but the people who tried that video have has success. Which is correct? Thanks all!
docgab said:
Hello all, I am about to plunge into rooting my G1. I have a question however. I found the guide http://forum.xda-developers.com/showthread.php?t=442480 and it lists the commands in telnet as:
* mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
* cd sdcard
* flash_image recovery recovery.img
* cat recovery.img > /system/recovery.img
I also found a video that someone had recommended at http://www.youtube.com/watch?v=xOo2V9qCauc
and it lists the telnet commands as:
Telnet Commands id
(Press enter)
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
(Press enter)
dd if=/system/bin/sh of=/system/bin/su
(Press enter)
chmod 4755 /system/bin/su
(Pres enter)
He then has you download and go into terminal emulator and then use these commands:
cd /system
(enter)
cat /sdcard/recovery.img > recovery.img
(enter)
flash_image recovery recovery.img
(enter)
The tutorial here is shorter and easier, but the people who tried that video have has success. Which is correct? Thanks all!
Click to expand...
Click to collapse
follow the guide you found here .. used it a year ago for mines and numerous times for others and it never fails
and also, thank you so so much for posting in the correct forum ... you don't know how many people will post in the dev section and use the "i'm a noob" excuse lol
and lastly, when you get to this part: "What To Do Now That You Have Root" .. you don't have to install one of those roms .. you can go over to dev section and install one of those ... I'd recommend the CyanogenMod roms ... you could also try out a Hero, Pulse, or Blur rom but they will require a lot more prerequisites than the CM rom
xidominicanoix said:
follow the guide you found here .. used it a year ago for mines and numerous times for others and it never fails
and also, thank you so so much for posting in the correct forum ... you don't know how many people will post in the dev section and use the "i'm a noob" excuse lol
and lastly, when you get to this part: "What To Do Now That You Have Root" .. you don't have to install one of those roms .. you can go over to dev section and install one of those ... I'd recommend the CyanogenMod roms ... you could also try out a Hero, Pulse, or Blur rom but they will require a lot more prerequisites than the CM rom
Click to expand...
Click to collapse
Thanks much for your input.
If you compare both you can see that the image flashing commands are the same, the second method just chmods a couple of directories (which isn't essential), so you can use either.
Thank you AdrianK.
HOW DO I LOAD A CUSTOM LAUNCHER?????CAN SOMEONE HELP ME PLZ
Jerzdre said:
HOW DO I LOAD A CUSTOM LAUNCHER?????CAN SOMEONE HELP ME PLZ
Click to expand...
Click to collapse
You can use adb: (enter after each line) Put Launcher.apk in C: 1st.
adb shell
rwsystem or mount -o rw,remount /dev/block/mtdblock3 /system
exit
adb push C:\Launcher.apk /system/app
or you can use terminal: (enter after each line) Make sure Launcher.apk is on the root of your sd card 1st
su
rwsystem or mount -o rw,remount /dev/block/mtdblock3 /system
rm system/app/Launcher.apk
cp sdcard/Launcher.apk /system/app
exit
exit
Hope this helped.
Exiting out will cause problems. A lot!
Rather than typing exit type reboot instead.
Hi,
I have rooted Nexus One which runs on GingerBread. I can open 'adb shell' and then execute 'su' there.
But when I try to 'adb remount', it fails.
Code:
$ adb root
adbd cannot run as root in production builds
$ adb remount
remount failed: Operation not permitted
Basically, I want to copy a file from my Desktop (MacOSX) to /system/bin on the device, is there anyway to do that on my Nexus One?
You rooted a stock OS - it doesn't have insecure boot, so ADB doesn't allow remount and other root commands.
hap497 said:
Hi,
I have rooted Nexus One which runs on GingerBread. I can open 'adb shell' and then execute 'su' there.
But when I try to 'adb remount', it fails.
Code:
$ adb root
adbd cannot run as root in production builds
$ adb remount
remount failed: Operation not permitted
Basically, I want to copy a file from my Desktop (MacOSX) to /system/bin on the device, is there anyway to do that on my Nexus One?
Click to expand...
Click to collapse
It seems like you are trying a bunch of things without reading beforehand, and understanding what you are doing. As has been said to you before, you cannot use the adb remount command with a secure boot image. If you want read/write access to the /system partition, you need to do the following:
adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
Now you have read/write access to the /system partition. No you can copy files from your sdcard to the system partition if you want. When you are finished with whatever you have to do, don't forget to issue the following command:
mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system
There you have it. However, if you would have read a bit, instead of starting a new thread for each question you had, you would already have found what to do...