Thanks for your time David. However, I am still missing something and I don't know what is it. The script still stays in "Waiting for device". I believe I have all drivers installed because if I run adb devices I get the following responsedan@dan ~/Downloads/r1-g300-superrecovery $ adb devices List of devices attached 10C61F515938 device
I guess this proves that my Ubuntu recognises OK the device. I have also ticked USB debugging option in Android settings. Is there anything else I can be missing?
OK, I have dug a bit more and I think I know what is going wrong. As I said earlier, when I run adb devices if I have my phone USB plugged in when it is in normal mode, it does show me correctly the list of devices attached. However, when I boot into bootloader mode, if I run adb devices it shows an empty list, and then obviously the "rooting script" waits forever for a device.
Any idea why in bootloader mode my computer does not detect the phone? Is there any other option in Android settings I am missing?