Goal
Hi my PI keeps rebooting after I added two lines to the rc.local file. Now i am trying to log into the boot shell and edit those two lines out.
Problem
I added init=/bin/bash
to the cmdline.txt and it looks like the following:
dwc_otg.lpm_enable=0 root=PARTUUID=61f5b861-02 rootfstype=ext4 elevator=deadline
fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles init=/bin/bash
I then can successfully log into the boot shell and type at the command line. However, whenever I've tried the following commands to remount the file system as read/write:
mount -n -o remount,rw /
it gave an error: mount: can't find PARTUUID=61f5b861-02
Then after I read some posts on the forum, I changed the root in my cmdline.txt to the following:
dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline
fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles init=/bin/bash
And then i ran the command: mount: mount point /dev/mmcblk0p2 /
It just worked...
Question
Can somebody explain what happened? This doesn't seem to be the solution for anybody else.
Reference: