How To: Root the Samsung Nexus S (Updated 01.20.11)
I. Before You Begin
1. This will unlock your phone’s bootloader (so you can flash recoveries and ROMs), and can be undone very easily (unlike the Nexus One).
2. This WILL ERASE all your information on the phone.
II. Setup ADB
1. Head to our How To Setup ADB procedure, once you can see your phone’s serial number after typing adb devices then come back to this procedure and continue.
(MAKE SURE YOU FOLLOW ALL THE STEPS IN THE WRITTEN PROCEDURE AS THERE HAVE BEEN UPDATES ADDED).
III. Unlock the Bootloader
1. Turn off your phone.
2. Turn it on by holding Volume Up and Power until fastboot mode comes up.
3. Plug the phone in via USB cable to your computer while it is in fastboot mode.
4. Open a command prompt on your computer by clicking on the Start menu button and typing cmd and hitting enter in the search box.
5. In the command prompt that pops up, type the following with hitting enter at the end of each line:
cd c:\androidsdk\tools\
fastboot oem unlock
6. At this point the phone will ask you to confirm, select yes. You now have an unlocked bootloader.
IV. Flash a Custom Recovery Image
1. Download the custom recovery image and save it to your computer:
ClockworkMod Recovery for Nexus S
2. Copy the recovery.img file inside the tools folder of the sdk (so it is in the same folder as fastboot.exe)
3. Then in the command prompt that should still be open, type the following with hitting enter at the end of each line:
fastboot flash recovery recovery.img
4. Once it is flashed, leave the phone in plugged in and in fastboot mode.
V. Root the Phone
1. In fastboot mode, select Recovery using the volume buttons and power button and wait for it to boot into recovery mode.
2. Download the Superuser flashable zip file and save it to your computer.
Superuser for Android 2.0 and Up Flashable Zip
3. Once in recovery mode, select Mounts and Storage then select Mount USB Storage so we can transfer files to the sd while it is in recovery mode.
4. Copy the Superuser.zip file to the root of your internal storage (do NOT extract it, do NOT put it in any folders, just on the phone’s storage itself).
5. Select Unmount on the phone.
6. Select Mount System, then select Go Back to get back to the main menu.
7. Then scroll to flash zip from sdcard and then choose zip from sd card and select the superuser.zip file and wait for it to finish flashing.
8. Once it is done, select Go Back then Reboot System and wait for the phone to reboot.
VI. Stop the Phone from Uninstalling the Custom Recovery Image
1. Once the phone is booted up, plug it in via USB cable and do NOT mount the storage.
2. Open a command prompt on the computer and type the following with hitting enter at the end of each line:
adb shell
cd etc
mount -o rw,remount /dev/block/mtdblock3 /system
mv install-recovery.sh install-recovery-no.sh
3. That will mount the system as writable and rename the file that overwrites the recovery image on reboot so that our custom recovery will stay.
4. Turn off the phone and turn it back on by holding down Volume Up and Power to get into fastboot mode.
5. Plug the phone in via USB cable while in fastboot mode and open the command prompt again and type the following with hitting enter at the end of each line:
cd\
cd c:\androidsdk\tools\
adb reboot bootloader
fastboot flash recovery recovery.img
5. Once it is done, you have just reflashed the recovery image and it will now stick. You are all done! You have an unlocked bootloader, a custom recovery image, and root access! If you want to now load a custom ROM head to the next procedure linked below.
VII. (Optional) Load a Custom ROM
1. Head to our How To Load a Custom ROM on the Nexus S procedure.
Thanks Koush for the rooting images!





I have followed the video guide and got to the point where I am looking for install-recovery.sh in the system/etc directory but its not there. What have I done wrong and how do I get it there?
Thanks for any help!
rooted it, thanks!
will this method work if im at android 2.3.4 ? or will i have to downgrade ?
step 6 help please anyone?
I am stuck I did all the above but I cant find the ” install-recovery.sh” file… I also read I cant revert back to stock without this file.. so what can I do?
I had an ota update to v2.3.4 I clicked install when the phone rebooted to start it, it went into clockwork recovery??
Yes I am a newbie I hope some one can point me in the right direction.
after typing fastboot oem unlock it says waiting for device in the command prompt but stays there forever. i know it’s not supposed to take this long.
stuck at cd etc says cannot find path
that file that’s supposed to be in the android mate app doesn’t exist when i go to rename it. it’s not there. was something updated since the day this was made and now? i mean i have the super user and recovery img on my phone but how will i know if it’ snot being written over or not?
i unlocked my nexus s and installing recovery , after i hited reboot
system now but the system does not load and every time come to recovery
mode again,
please help.
ROOTING & UNLOCK BOOTLOADER FOR NEXUS S
http://download-apk.blogspot.com/2011/05/tutorial-rooting-unlock-bootloader-for.html
this does not work. I can get to fast boot mode, when I type fastboot oem unlock it says I am missing a .dll. I copy fastboot.exe to the same dir as the dll and run again, nothing happens. my phone does not prompt me for anything. bogus instructions
This does not work, wrong information. they got the info from another incorrect website to get you to come here to sell advertising. does not work, tried it 20 times.
Hey! I have the problem that when I do step VI. that my cmd says that no file or directory “install-recovery.sh” can be found… please help me!
ok im in the iv part and it keeps telling me access denied on all of it is usb debiging suppose to be on or ???
nexus s
I just a samsung nexus s, my husbands number is showing up as “my number” in the settings, does anyone know how to change this setting?
This worked for me as well!! Watch the video closely when he trys to rename the file in the “etc” it says failed to rename!!!! If you use this other root explorer you have to click the mount r/w button then edit the file name with the -no.. Worked like a champ. David please watch the video cause alot of ppl depend on you for good info myself included and you have always been good but this could really set ppl off. I worked on this for awhile before noticing it, Thanks for all the good work! And yes work if your on 2.4 or w/e
Holy crap, my bad guys. Nice catch Louie! What file explorer did you use and I’ll make an edit to the procedure. Thanks!
EDIT: So I just noticed that for some reason in the written procedure I put how to do it using ADB, and in the video I used the file explorer… Not sure why I did that honestly. For people having issues in the meantime, just follow the written procedure (Section VI), instead of using the file explorer.
Hey David,
The written instructions are not working for me. I am getting the same error with renaming as well. Did you update them? Or could you shed some light on how to do this using the Explorer app? Any info would be greatly appreciated.
same here…now what??
MR. UNLOCKR please read my post ^^
I have done everything in the description and in the video as well, i have changed the install-recovery.sh to install-recovery-no.sh but when i trying to install it, im getting denied and i cant find my device in fastboot mode when im trying to flash the recovery image again. Please Help??
I did this and now my phone is stuck on the google screen…i tryed pulling my battery and no luck
wow completely fucked up my phone
WARNING TO ALL: Had problems with the clockwork mod listed here (version 3.0.0.0). It did not work! You need to get the latest clockworkmod from http://www.clockworkmod.com and then everything will work awesome.
Windows Vista can’t find drivers for fastboot mode. The drivers for Android device installed just fine. I then booted into fastboot and then connected my Nexus S to my PC and Windows Vista needs to install drivers…but said drivers aren’t found.
Here is a solution: http://forum.xda-developers.com/showpost.php?p=12347750&postcount=2. There “extrasgoogleusb_driver” is “c:androidsdkextrasgoogleusb_driver”.
Please help. (See screenshot)
I cannot progress beyond step VI (Item 2)
(STOP THE PHONE FROM UNINSTALLING THE CUSTOM RECOVERY IMAGE)
adb shell
cd etc
PROBLEM BEYOND NEXT LINE (tried both variations!)
mount -o rw,remount/dev/block/mtdblock3/system
mount -o rw,remount /dev/block/mtdblock3 /system
CMD DISPLAYS:
Usage: mount [-r] [-w] [-o options] [-t type] device directory
IS THIS OK TO CARRY ON FROM?
mv install-recovery.sh install-recovery-no.sh
CMD DISPLAYS:
failed on ‘install-recovery.sh’ – No such file or directory
THE ICONS ON MY SCREEN DOES DISPLAY “Superuser,” and the phone is working fine.
I want to get to the end, but am stuck here at present.
Can anyone help/advise me.
Many Thanks.
Great guide, but i’m having an issue. when i type mount “-o rw,remount/dev/block/mtdblock3 /system” i get the message “mount: Operation not permitted”
any help is appreciated. thanks in advance.
I get the same response. It seems that we do not have root access to our phones.
Did either of you ever figure this out? i’m having the same issue
I can not get it to rename my recovery in the step where you type install-recovery I get failed read only error can anyone help me with this.
Can I root or unlock my Samsung nexus s Android with out a computer just with the phone or I need a computer. And how can I use any service provider instead of Fido?
I worked on this for awhile before noticing it, Thanks for all the good work! And yes work if your on 2.4 or w/e
How can I access and edit the ASEC files/Game files on my Nexus?
You can try to gain root access using this method and then downloading Root Explorer from the market
not sure if this is a driver issue or not but when i setup adb and go into a command prompt and type “adb devices” i see a serial number which im guessing is my nexus s. Now when i power the phone off and type in adb devices again i get nothing ? is that normal or should i still see my device serial number there
You are not going to see your phone listed when you type ‘adb devices’ while your phone is off because your phone is off. adb devices lists all the phones it is connected to. when your phone is on, and not in fastboot, if adb sees the phone, it will list it. hope that helps
i cant access mines either the cmd says path not recognized what am i doing wrong?