Single-User Mode
From PlugWiki
When I was configuring a GuruPlug for the company I work for I got stuck at the loginscreen. So I searched the world wide web for a way to access the debian installation in Single-User Mode so I can correct my misstake. After a while I found a some lines of code to do that. So here is a little HowTo how to get in Single-User Mode
Access single-user mode
- connect GuruPlug to your computer with the devkit
- Access the GuruPlug via UART on /dev/ttyUSBx
- Power on the GuruPlug
- Press any key at boot when promted to access the bootmanager
- add "init=/bin/bash" to the kernelparameters and boot by executing the following commands
> setenv x_bootargs ${x_bootargs} init=/bin/bash
> saveenv
- Boot the system in singel-user mode
> boot
Restore original kernelparameters
- reboot GuruPlug by executing the following command
> reboot -f
- As before press any key at boot when promted to access the bootmanager
- print the kernelparameters by executing the following command
> printenv x_bootargs
- Copy all parameters expect "init=/bin/bash"
- execute the following commands with the copied parameters to remove the "init=/bin/bash"
> setenv x_bootargs <copied kernelparameters> > saveenv
- Boot the system
> boot