Concerning the OP, not the dude in trouble above me:
I felt like throwing out an FYI:
You can cut out all of that copy/paste and command line junk and simply open up master.passwd as a text document in iFile (touch master.passwd and select to open in the text viewer).
From there you can easily edit your password hash following previous instructions.
1. Instal iFile
2. Navigate in iFile to /etc
3. Make backup of master.passwd if you want.
4. Open master.passwd in text viewer.
5. Put in new password hash for both root and mobile.