I am trying to change the password on a Pi sd card. However, each time I edit the cmdline.txt with init=/bin/sh, I eject, put it into my pi and it loads up right to the normal user sign in. So, I inserted the card into my computer and noticed that any time I eject the card the changes are not saved. The file is not marked as read only.
Here is what I have tried:
Renaming the file... After ejecting, and reinserting, a new cmdline.txt had been generated.
Editing it in sudo... Doesn't save changes.
I am editing the files in Ubuntu 16.04
Any suggestions?
Thanks!